rollbar_list_projects
Retrieve all projects from Rollbar error tracking to monitor and manage application health across your development environment.
Instructions
List projects from Rollbar
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/rollbar.ts:463-478 (handler)The switch case handler that executes the rollbar_list_projects tool by calling the Rollbar account API to list projects and returns the JSON response.case "rollbar_list_projects": { // Account Token is required if (!accountClient) { throw new Error("ROLLBAR_ACCOUNT_TOKEN is not set, cannot use this API"); } const response = await accountClient.get<ListProjectsResponse>("/projects"); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/rollbar.ts:204-211 (schema)The Tool definition including name, description, and empty input schema for rollbar_list_projects.const LIST_PROJECTS_TOOL: Tool = { name: "rollbar_list_projects", description: "List projects from Rollbar", inputSchema: { type: "object", properties: {}, }, };
- src/rollbar.ts:298-314 (registration)The ListToolsRequestHandler that registers the rollbar_list_projects tool (via LIST_PROJECTS_TOOL) by including it in the list of available tools.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, ], }));