get_dashboard_template
Retrieve detailed information about a specific security dashboard template to monitor Kubernetes and cloud environments through the RAD Security MCP server.
Instructions
Get detailed information about a specific dashboard template
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dashboard_template_id | Yes | ID of the dashboard template |
Implementation Reference
- src/operations/dashboards.ts:101-108 (handler)The handler function that executes the core logic of the 'get_dashboard_template' tool by making an API request to retrieve the specific dashboard template.export async function getDashboardTemplate( client: RadSecurityClient, dashboard_template_id: string ): Promise<any> { return client.makeRequest( `/accounts/${client.getAccountId()}/dashboards/templates/${dashboard_template_id}` ); }
- src/operations/dashboards.ts:25-27 (schema)Zod schema defining the input validation for the tool, requiring 'dashboard_template_id'.export const GetDashboardTemplateSchema = z.object({ dashboard_template_id: z.string().describe("ID of the dashboard template"), });
- src/index.ts:676-682 (registration)Registration of the tool in the ListTools handler, specifying name, description, and input schema.{ name: "get_dashboard_template", description: "Get detailed information about a specific dashboard template", inputSchema: zodToJsonSchema( dashboards.GetDashboardTemplateSchema ),
- src/index.ts:1644-1656 (registration)Handler for CallToolRequest in the switch statement, which parses input, calls the tool handler, and formats the response.case "get_dashboard_template": { const args = dashboards.GetDashboardTemplateSchema.parse( request.params.arguments ); const response = await dashboards.getDashboardTemplate( client, args.dashboard_template_id ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2) }, ], };