rollbar_get_deploy
Retrieve specific deployment details from Rollbar error tracking to monitor release status and analyze deployment impact.
Instructions
Get a specific deploy from Rollbar
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deployId | Yes | Deploy ID |
Implementation Reference
- src/rollbar.ts:610-626 (handler)The switch case handler for 'rollbar_get_deploy' that checks for projectClient, extracts deployId from arguments, calls the Rollbar API endpoint `/deploy/${deployId}`, and returns the response as formatted JSON text.case "rollbar_get_deploy": { // Project Token is required if (!projectClient) { throw new Error("ROLLBAR_PROJECT_TOKEN is not set, cannot use this API"); } const { deployId } = args as { deployId: number }; const response = await projectClient.get<DeployResponse>(`/deploy/${deployId}`); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/rollbar.ts:273-283 (schema)The Tool object definition providing the name, description, and inputSchema (requiring deployId as number) for the rollbar_get_deploy tool.const GET_DEPLOY_TOOL: Tool = { name: "rollbar_get_deploy", description: "Get a specific deploy from Rollbar", inputSchema: { type: "object", properties: { deployId: { type: "number", description: "Deploy ID" }, }, required: ["deployId"], }, };
- src/rollbar.ts:298-314 (registration)Registration of the rollbar_get_deploy tool (as GET_DEPLOY_TOOL) in the list of tools returned by the ListToolsRequestSchema handler.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, ], }));
- src/rollbar.ts:43-44 (helper)The tool name is listed in the SUPPORTED_APIS.projectApis array used for token validation warnings."rollbar_get_deploy", ],