list_dashboard_templates
Browse available dashboard templates for security insights, with options to filter by category and paginate results.
Instructions
List dashboard templates with optional filtering by category
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) | |
| category | No | Filter by category |
Implementation Reference
- src/operations/dashboards.ts:77-96 (handler)Core handler function that executes the tool logic by calling the RAD Security API to list dashboard templates./** * List dashboard templates with optional filtering. */ export async function listDashboardTemplates( client: RadSecurityClient, limit: number = 50, offset: number = 0, category?: string ): Promise<any> { const params: Record<string, any> = { limit, offset }; if (category) { params.category = category; } return client.makeRequest( `/accounts/${client.getAccountId()}/dashboards/templates`, params ); }
- src/operations/dashboards.ts:17-22 (schema)Zod input schema used for validation in both tool listing and execution.// Schema for list_dashboard_templates export const ListDashboardTemplatesSchema = 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)"), category: z.string().optional().describe("Filter by category"), });
- src/index.ts:668-675 (registration)Tool registration in the list_tools handler, defining name, description, and input schema.{ name: "list_dashboard_templates", description: "List dashboard templates with optional filtering by category", inputSchema: zodToJsonSchema( dashboards.ListDashboardTemplatesSchema ), },
- src/index.ts:1628-1642 (registration)Tool handler dispatch in the call_tool request handler, parsing args and invoking the core handler.case "list_dashboard_templates": { const args = dashboards.ListDashboardTemplatesSchema.parse( request.params.arguments ); const response = await dashboards.listDashboardTemplates( client, args.limit, args.offset, args.category ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2) }, ], };