Skip to main content
Glama
rad-security

RAD Security

Official
by rad-security

get_cluster_details

Retrieve detailed information about a specific Kubernetes cluster, including security insights and configuration data, to assess and manage security posture.

Instructions

Get detailed information about a specific Kubernetes cluster managed by RAD Security

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cluster_idYesID of the cluster to get details for

Implementation Reference

  • The handler function that executes the core logic of the get_cluster_details tool by making an API request to retrieve cluster details.
    export async function getClusterDetails(
      client: RadSecurityClient,
      clusterId: string
    ): Promise<any> {
      const response = await client.makeRequest(
        `/accounts/${client.getAccountId()}/clusters/${clusterId}`
      );
    
      if (!response) {
        throw new Error(`No cluster found with ID: ${clusterId}`);
      }
    
      return response;
    }
  • Zod schema defining the input parameters for the get_cluster_details tool (cluster_id). Used for validation in both registration and execution.
    export const GetClusterDetailsSchema = z.object({
      cluster_id: z.string().describe("ID of the cluster to get details for"),
    });
  • src/index.ts:154-158 (registration)
    Registration of the get_cluster_details tool in the list_tools handler, providing name, description, and input schema.
    {
      name: "get_cluster_details",
      description:
        "Get detailed information about a specific Kubernetes cluster managed by RAD Security",
      inputSchema: zodToJsonSchema(clusters.GetClusterDetailsSchema),
  • src/index.ts:769-782 (registration)
    Registration/handling of the get_cluster_details tool in the call_tool request handler, parsing args with schema and invoking the handler function.
    case "get_cluster_details": {
      const args = clusters.GetClusterDetailsSchema.parse(
        request.params.arguments
      );
      const response = await clusters.getClusterDetails(
        client,
        args.cluster_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