Skip to main content
Glama

get_cluster_details

Retrieve comprehensive details about a Kubernetes cluster by specifying its cluster_id, enabling precise security and management insights in RAD Security environments.

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 core handler function that performs the API request to retrieve details for the specified cluster using the RAD Security client.
    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 validation for the tool: requires a cluster_id string.
    export const GetClusterDetailsSchema = z.object({ cluster_id: z.string().describe("ID of the cluster to get details for"), });
  • src/index.ts:133-137 (registration)
    Tool registration in the MCP server's listTools 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:429-435 (registration)
    Dispatch handler in the MCP server's CallToolRequest handler that validates input, calls the core handler, and formats the response.
    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