Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

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
NameRequiredDescriptionDefault
dashboard_idYesID of the dashboard

Implementation Reference

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

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