Skip to main content
Glama

get_latest_30_cves

Retrieve the most recent 30 CVEs with CAPEC, CWE, and CPE expansions from cve-search.org for vulnerability analysis in Kubernetes and cloud environments.

Instructions

Get the latest/newest 30 CVEs including CAPEC, CWE and CPE expansions. Source: cve-search.org

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function that fetches the latest 30 CVEs from the cve-search.org API ('/last' endpoint). This is the exact implementation of the tool logic.
    export async function getLatest30Cves(): Promise<any> { const response = await fetch(`${BASE_URL}/last`); if (!response.ok) { throw new Error(`Failed to get last CVEs: ${response.statusText}`); } return response.json(); }
  • src/index.ts:318-322 (registration)
    Registers the tool in the MCP server's list of available tools, specifying name, description, and empty input schema.
    { name: "get_latest_30_cves", description: "Get the latest/newest 30 CVEs including CAPEC, CWE and CPE expansions. Source: cve-search.org", inputSchema: zodToJsonSchema(z.object({})), },
  • Wrapper handler in the main tool dispatch switch that calls the core cves.getLatest30Cves() and returns the response in MCP format.
    case "get_latest_30_cves": { const response = await cves.getLatest30Cves(); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], }; }
  • Defines the input schema as an empty object (no parameters required). Note: this line is part of the registration block.
    inputSchema: zodToJsonSchema(z.object({})),
  • Base URL constant used by all CVE tools, including getLatest30Cves.
    const BASE_URL = "https://cve.circl.lu/api";

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