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
| 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 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; }
- src/operations/clusters.ts:9-11 (schema)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) }, ], }; }