Skip to main content
Glama
hiyorineko

Rollbar MCP Server

by hiyorineko

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
NameRequiredDescriptionDefault
idYesItem ID

Implementation Reference

  • 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), }, ], }; }
  • 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, ], }));

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hiyorineko/mcp-rollbar-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server