rollbar_get_item
Retrieve a specific error item from Rollbar using its internal ID to analyze and resolve issues in your application.
Instructions
Get a specific item (error) from Rollbar using the internal item ID maintained by Rollbar's system.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Item ID |
Implementation Reference
- src/rollbar.ts:357-373 (handler)Handler for 'rollbar_get_item' tool: validates project token, extracts item ID from arguments, fetches item data from Rollbar API endpoint '/item/{id}', and returns JSON response.case "rollbar_get_item": { // Project Token is required if (!projectClient) { throw new Error("ROLLBAR_PROJECT_TOKEN is not set, cannot use this API"); } const { id } = args as { id: number }; const response = await projectClient.get<ItemResponse>(`/item/${id}`); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/rollbar.ts:141-151 (schema)Schema definition for 'rollbar_get_item' tool, specifying input requirements: object with required 'id' property of type number.const GET_ITEM_TOOL: Tool = { name: "rollbar_get_item", description: "Get a specific item (error) from Rollbar using the internal item ID maintained by Rollbar's system.", inputSchema: { type: "object", properties: { id: { type: "number", description: "Item ID" }, }, required: ["id"], }, };
- src/rollbar.ts:298-314 (registration)Registration of 'rollbar_get_item' tool (as GET_ITEM_TOOL) in the listTools response handler, making it discoverable by MCP clients.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [ LIST_ITEMS_TOOL, GET_ITEM_TOOL, GET_ITEM_BY_UUID_TOOL, GET_ITEM_BY_COUNTER_TOOL, LIST_OCCURRENCES_TOOL, GET_OCCURRENCE_TOOL, LIST_PROJECTS_TOOL, GET_PROJECT_TOOL, LIST_ENVIRONMENTS_TOOL, LIST_USERS_TOOL, GET_USER_TOOL, LIST_DEPLOYS_TOOL, GET_DEPLOY_TOOL, ], }));