get_dashboard
Retrieve detailed information about a specific security dashboard to monitor Kubernetes and cloud environment insights from RAD Security.
Instructions
Get detailed information about a specific dashboard
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dashboard_id | Yes | ID of the dashboard |
Implementation Reference
- src/operations/dashboards.ts:126-136 (handler)The handler function that implements the core logic of the 'get_dashboard' tool by calling the RAD Security API to retrieve details for a specific dashboard./** * Get details for a specific dashboard. */ export async function getDashboard( client: RadSecurityClient, dashboard_id: string ): Promise<any> { return client.makeRequest( `/accounts/${client.getAccountId()}/dashboards/${dashboard_id}` ); }
- src/operations/dashboards.ts:36-38 (schema)Zod schema defining the input validation for the 'get_dashboard' tool, requiring a dashboard_id string.export const GetDashboardSchema = z.object({ dashboard_id: z.string().describe("ID of the dashboard"), });
- src/index.ts:689-694 (registration)Registration of the 'get_dashboard' tool in the ListToolsRequestSchema handler, specifying name, description, and input schema.{ name: "get_dashboard", description: "Get detailed information about a specific dashboard", inputSchema: zodToJsonSchema(dashboards.GetDashboardSchema), },
- src/index.ts:1673-1685 (registration)Execution handler for the 'get_dashboard' tool in the CallToolRequestSchema switch statement, which parses input, calls the handler function, and formats the response.case "get_dashboard": { const args = dashboards.GetDashboardSchema.parse( request.params.arguments ); const response = await dashboards.getDashboard( client, args.dashboard_id ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2) }, ], };