rollbar_list_users
Retrieve a list of users from Rollbar error tracking to manage team access and permissions for monitoring and debugging applications.
Instructions
List users from Rollbar
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/rollbar.ts:534-549 (handler)The handler function for the 'rollbar_list_users' tool. It verifies the account client is available, makes a GET request to Rollbar's /users endpoint, and returns the response data as formatted JSON.case "rollbar_list_users": { // Account Token is required if (!accountClient) { throw new Error("ROLLBAR_ACCOUNT_TOKEN is not set, cannot use this API"); } const response = await accountClient.get<ListUsersResponse>("/users"); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/rollbar.ts:237-244 (schema)Input schema and metadata definition for the 'rollbar_list_users' tool, specifying no input parameters are required.const LIST_USERS_TOOL: Tool = { name: "rollbar_list_users", description: "List users from Rollbar", inputSchema: { type: "object", properties: {}, }, };
- src/rollbar.ts:299-313 (registration)Registration of the 'rollbar_list_users' tool (as LIST_USERS_TOOL) in the listToolsRequestSchema handler, making it discoverable by MCP clients.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/types.ts:118-120 (schema)TypeScript interface defining the expected response structure for the Rollbar users list API.export interface ListUsersResponse { users: RollbarUser[]; }
- src/types.ts:1-6 (schema)TypeScript interface defining the structure of a Rollbar user object used in responses.export interface RollbarUser { id: number; username: string; email: string; access_level: number; }