Skip to content

Commit 4fcdee6

Browse files
committed
add feedback tools
1 parent bcdf19f commit 4fcdee6

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ https://github.com/user-attachments/assets/8b1b8ef2-9fba-4951-bc9a-beaed4f6aff6
2121
- [Token Management Tools](#token-management-tools)
2222
- [create-token](#create-token)
2323
- [list-tokens](#list-tokens)
24+
- [Feedback Tools](#feedback-tools)
2425
- [Local Processing Tools](#local-processing-tools)
2526
- [GeoJSON Preview tool (Beta)](#geojson-preview-tool-beta)
2627
- [Coordinate Conversion tool](#coordinate-conversion-tool)
@@ -100,6 +101,7 @@ The `MAPBOX_ACCESS_TOKEN` environment variable is required. **Each tool requires
100101
- Reading styles requires `styles:read` scope
101102
- Creating styles requires `styles:write` scope
102103
- Managing tokens requires `tokens:read` and `tokens:write` scopes
104+
- Accessing feedback requires `user-feedback:read` scope
103105

104106
## Tools
105107

@@ -272,6 +274,51 @@ List Mapbox access tokens for the authenticated user with optional filtering and
272274
- "List the 5 most recently modified tokens"
273275
- "Show all public tokens in my account"
274276

277+
### Feedback Tools
278+
279+
Access user feedback items from the Mapbox Feedback API. These tools allow you to retrieve and view user-reported issues, suggestions, and feedback about map data, routing, and POI details.
280+
281+
**feedback_list_tool** - List user feedback items with comprehensive filtering, sorting, and pagination options.
282+
283+
**Parameters:**
284+
285+
- `feedback_ids` (array of UUIDs, optional): Filter by one or more feedback item IDs
286+
- `after` (string, optional): Cursor from a previous response for pagination
287+
- `limit` (number, optional): Maximum number of items to return (1-1000, default varies)
288+
- `sort_by` (string, optional): Sort field - `received_at` (default), `created_at`, or `updated_at`
289+
- `order` (string, optional): Sort direction - `asc` (default) or `desc`
290+
- `status` (array, optional): Filter by status - `received`, `fixed`, `reviewed`, `out_of_scope`
291+
- `category` (array, optional): Filter by feedback categories
292+
- `search` (string, optional): Search phrase to match against feedback text
293+
- `trace_id` (array, optional): Filter by trace IDs
294+
- `created_before`, `created_after` (ISO 8601 string, optional): Filter by creation date range
295+
- `received_before`, `received_after` (ISO 8601 string, optional): Filter by received date range
296+
- `updated_before`, `updated_after` (ISO 8601 string, optional): Filter by update date range
297+
- `format` (string, optional): Output format - `formatted_text` (default) or `json_string`
298+
299+
**Returns:** Paginated list of feedback items with pagination cursors.
300+
301+
**feedback_get_tool** - Get a single user feedback item by its unique ID.
302+
303+
**Parameters:**
304+
305+
- `feedback_id` (UUID, required): The unique identifier of the feedback item
306+
- `format` (string, optional): Output format - `formatted_text` (default) or `json_string`
307+
308+
**Returns:** Single feedback item with details including status, category, feedback text, location, and timestamps.
309+
310+
**⚠️ Required Token Scope:**
311+
312+
- **Both feedback tools**: Require `user-feedback:read` scope on the access token
313+
314+
**Example prompts:**
315+
316+
- "List all feedback items with status 'fixed'"
317+
- "Show me feedback items in the 'poi_details' category created after July 1st"
318+
- "Get feedback item with ID 40eae4c7-b157-4b49-a091-7e1099bba77e"
319+
- "Find feedback items containing 'apartment building' in the feedback text"
320+
- "List all routing issue feedback from the last month"
321+
275322
### Local Processing Tools
276323

277324
#### GeoJSON Preview tool (Beta)

TOOL_CONFIGURATION.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ The following tools are available in the Mapbox MCP Devkit Server:
4242
- `create_token_tool` - Create a new Mapbox access token
4343
- `list_tokens_tool` - List all Mapbox access tokens
4444

45+
### Feedback Tools
46+
47+
- `feedback_list_tool` - List user feedback items with filtering and pagination
48+
- `feedback_get_tool` - Get a single user feedback item by ID
49+
4550
### Geographic Tools
4651

4752
- `bounding_box_tool` - Calculate bounding box for given coordinates

0 commit comments

Comments
 (0)