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
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_id | Yes | ID of the cluster to get details for |
Implementation Reference
- src/operations/clusters.ts:25-38 (handler)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; }
- src/operations/clusters.ts:9-11 (schema)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) }], }; }