list_dashboards
Retrieve and display dashboards from RAD Security to monitor security insights in Kubernetes and cloud environments.
Instructions
List dashboards for the account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (default: 10, min: 1) | |
| offset | No | Pagination offset (default: 0, min: 0) |
Implementation Reference
- src/operations/dashboards.ts:113-124 (handler)The handler function that executes the list_dashboards tool by calling the RAD Security API to list dashboards with pagination parameters.export async function listDashboards( client: RadSecurityClient, limit: number = 50, offset: number = 0 ): Promise<any> { const params: Record<string, any> = { limit, offset }; return client.makeRequest( `/accounts/${client.getAccountId()}/dashboards`, params ); }
- src/operations/dashboards.ts:30-33 (schema)Zod input schema for the list_dashboards tool, defining optional limit and offset parameters.export const ListDashboardsSchema = z.object({ limit: z.number().optional().default(10).describe("Maximum number of results to return (default: 10, min: 1)"), offset: z.number().optional().default(0).describe("Pagination offset (default: 0, min: 0)"), });
- src/index.ts:685-688 (registration)Registration of the list_dashboards tool in the MCP listTools handler, specifying name, description, and input schema.name: "list_dashboards", description: "List dashboards for the account", inputSchema: zodToJsonSchema(dashboards.ListDashboardsSchema), },
- src/index.ts:1658-1672 (registration)Dispatch handler in the MCP callTool request that parses arguments, calls the listDashboards function, and returns the JSON response.case "list_dashboards": { const args = dashboards.ListDashboardsSchema.parse( request.params.arguments ); const response = await dashboards.listDashboards( client, args.limit, args.offset ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2) }, ], }; }