Skip to main content
Glama

get_image_sbom

Generate a Software Bill of Materials (SBOM) for container images using the image digest to identify dependencies and components for security analysis.

Instructions

Get the SBOM of a container image

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
digestYesImage digest (required for SBOM)

Implementation Reference

  • The handler function that executes the tool logic by making an API request to download the SBOM for the specified image digest.
    export async function getImageSBOM( client: RadSecurityClient, digest: string ): Promise<any> { return client.makeRequest( `/accounts/${client.getAccountId()}/sboms/${digest}/download`, ); }
  • Zod schema defining the input parameters for the get_image_sbom tool (requires image digest).
    export const GetImageSBOMSchema = z.object({ digest: z.string().describe("Image digest (required for SBOM)"), });
  • src/index.ts:200-204 (registration)
    Tool registration in the listTools handler, defining name, description, and input schema.
    { name: "get_image_sbom", description: "Get the SBOM of a container image", inputSchema: zodToJsonSchema(images.GetImageSBOMSchema), },
  • src/index.ts:550-556 (registration)
    Dispatch handler in the CallToolRequest switch statement that parses args and calls the getImageSBOM function.
    case "get_image_sbom": { const args = images.GetImageSBOMSchema.parse(request.params.arguments); const response = await images.getImageSBOM(client, args.digest); 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