get_identity_details
Retrieve detailed information about a specific identity in a Kubernetes cluster, enabling precise security analysis and management through the RAD Security MCP server.
Instructions
Get detailed information about a specific identity in a Kubernetes cluster
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identity_id | Yes | Identity ID to get details for |
Implementation Reference
- src/operations/identities.ts:41-54 (handler)The main handler function that executes the tool logic by making an API request to fetch identity details.export async function getIdentityDetails( client: RadSecurityClient, identityId: string ): Promise<any> { const identity = await client.makeRequest( `/accounts/${client.getAccountId()}/identities/${identityId}` ); if (!identity) { throw new Error(`No identity found with ID: ${identityId}`); } return identity; }
- src/operations/identities.ts:15-17 (schema)Zod schema defining the input parameters for the tool (identity_id: string).export const GetIdentityDetailsSchema = z.object({ identity_id: z.string().describe("Identity ID to get details for"), });
- src/index.ts:147-150 (registration)Tool registration in the listTools handler, defining name, description, and input schema.name: "get_identity_details", description: "Get detailed information about a specific identity in a Kubernetes cluster", inputSchema: zodToJsonSchema(identities.GetIdentityDetailsSchema), },
- src/index.ts:444-449 (registration)Tool execution routing in the CallToolRequest switch statement, parsing args and delegating to the handler.case "get_identity_details": { const args = identities.GetIdentityDetailsSchema.parse(request.params.arguments); const response = await identities.getIdentityDetails(client, args.identity_id); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], };