Skip to main content
Glama

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
NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 10, min: 1)
offsetNoPagination offset (default: 0, min: 0)
categoryNoFilter by category

Implementation Reference

  • 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 ); }
  • 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) }, ], };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rad-security/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server