Skip to main content
Glama

get_container_details

Retrieve detailed information about a container secured by RAD Security by providing its ID, enabling visibility into runtime data and security insights for Kubernetes and cloud environments.

Instructions

Get detailed information about a container secured by RAD Security

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
container_idYesID of the container to get details for

Implementation Reference

  • Core handler function that retrieves detailed information for a specific container by making an API request to RAD Security's inventory endpoint filtered by container_id.
    export async function getContainerDetails( client: RadSecurityClient, containerId: string ): Promise<any> { const response = await client.makeRequest( `/accounts/${client.getAccountId()}/inventory_containers`, { filters: `container_id:${containerId}` }, ); if (!response || !response.entries || response.entries.length === 0) { throw new Error(`No container found with ID: ${containerId}`); } if (response.entries.length > 1) { throw new Error( `Found multiple containers with ID: ${containerId}. Please provide a more specific container ID.` ); } // Remove "id" from the response to avoid confusion const result = response.entries[0]; delete result.id; return result; }
  • Zod schema defining the input parameters for the get_container_details tool, specifically the required container_id.
    export const GetContainerDetailsSchema = z.object({ container_id: z.string().describe("ID of the container to get details for"), });
  • src/index.ts:120-124 (registration)
    Registration of the get_container_details tool in the MCP server's tool list, specifying name, description, and input schema.
    { name: "get_container_details", description: "Get detailed information about a container secured by RAD Security", inputSchema: zodToJsonSchema(containers.GetContainerDetailsSchema), },
  • src/index.ts:414-420 (registration)
    Handler case in the MCP server's CallToolRequest switch statement that parses arguments, calls the getContainerDetails function, and formats the response.
    case "get_container_details": { const args = containers.GetContainerDetailsSchema.parse(request.params.arguments); const response = await containers.getContainerDetails(client, args.container_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