get_top_vulnerable_images
Identify and prioritize the most vulnerable container images in your Kubernetes or cloud environment using AI-powered security insights from RAD Security.
Instructions
Get the most vulnerable images from your account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/operations/images.ts:103-115 (handler)The handler function that executes the tool logic by making an API request to retrieve the top vulnerable images.export async function getTopVulnerableImages( client: RadSecurityClient ): Promise<any> { return client.makeRequest( `/accounts/${client.getAccountId()}/reports/top_vulnerable_images`, {}, { headers: { "Accept": "application/json", }, } ); }
- src/index.ts:195-199 (registration)Registers the tool in the MCP server's listTools response, defining its name, description, and input schema (empty object).{ name: "get_top_vulnerable_images", description: "Get the most vulnerable images from your account", inputSchema: zodToJsonSchema(z.object({})), },
- src/index.ts:198-198 (schema)Defines the input schema for the tool as an empty object using Zod.inputSchema: zodToJsonSchema(z.object({})),
- src/index.ts:544-549 (registration)Registers the tool handler in the MCP server's CallToolRequest switch statement, dispatching to the images.getTopVulnerableImages function.case "get_top_vulnerable_images": { const response = await images.getTopVulnerableImages(client); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], }; }