Skip to main content
Glama

Search Cves

search_cves
Read-onlyIdempotent

Search NVD for CVE vulnerabilities by product or component name. Returns CVE ID, description, severity, and CVSS score. Search terms are matched against CVE description text and EVERY word must appear, so pass the product name ("OpenSSL", "log4j", "nginx") optionally with a technical term ("buffer overflow"), not a plain-English question. Use when researching security threats or checking if a known vulnerability affects your systems.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "log4j"
    },
    "name": "search_cves"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default 10, max 2000)
queryYesProduct, component or technical term to match against CVE descriptions, e.g. "OpenSSL" or "log4j deserialization". Every word must appear in a CVE's description, so question words ("latest critical vulnerabilities in ...") match nothing and are stripped automatically.

Output Schema

NameRequiredDescriptionDefault
cvesYesList of CVE records matching the search
returnedYesNumber of CVEs returned in this response
total_resultsYesTotal number of CVEs matching the search query

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Keyword(s) to search in CVE descriptions"New value: +"Product, component or technical term to match against CVE descriptions, e.g. \"OpenSSL\" or \"log4j deserialization\". Every word must appear in a CVE's description, so question words (\"latest critical vulnerabilities in ...\") match nothing and are stripped automatically."
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "cves": {
      +      "description": "List of CVE records matching the search",
      +      "items": {
      +        "properties": {
      +          "cvss_score": {
      +            "description": "CVSS base score (v3.1 preferred, falls back to v2)",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "description": {
      +            "description": "English description of the vulnerability",
      +            "type": "string"
      +          },
      +          "id": {
      +            "description": "CVE identifier",
      +            "type": "string"
      +          },
      +          "last_modified": {
      +            "description": "Last modification date in ISO 8601 format",
      +            "type": "string"
      +          },
      +          "published": {
      +            "description": "Publication date in ISO 8601 format",
      +            "type": "string"
      +          },
      +          "severity": {
      +            "description": "Severity rating (CRITICAL, HIGH, MEDIUM, LOW, NONE)",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "status": {
      +            "description": "Vulnerability status (e.g., PUBLISHED)",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "published",
      +          "last_modified",
      +          "status",
      +          "description",
      +          "cvss_score",
      +          "severity"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "returned": {
      +      "description": "Number of CVEs returned in this response",
      +      "type": "number"
      +    },
      +    "total_results": {
      +      "description": "Total number of CVEs matching the search query",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "total_results",
      +    "returned",
      +    "cves"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "query": "log4j"
      +  },
      +  {
      +    "limit": 50,
      +    "query": "Apache Struts remote code execution"
      +  }
      +]
  4. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so safety is covered. The description adds genuinely non-obvious behavior: matching is AND across every word in the CVE description text, and results include ID, description, severity, and CVSS score. It doesn't discuss result ordering or how large result sets behave.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with purpose, then return fields, then query shaping, then usage context. Every sentence contributes, though the AND-matching rule is stated twice (here and in the schema), which is mild redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be spelled out, yet the description still summarizes them helpfully. For a two-parameter read-only search the coverage is close to complete; only result ordering and pagination behavior are left unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents the AND-matching rule, the question-word stripping, and the limit bounds (default 10, max 2000). The description reinforces query intent with examples like 'OpenSSL' plus a technical term, but adds little that the schema does not already say, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Search NVD for CVE vulnerabilities') plus the search key ('by product or component name'), which implicitly separates it from an ID-based lookup like get_cve. It never explicitly names a sibling such as recent_cves, so the differentiation is inferable rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear use context ('researching security threats or checking if a known vulnerability affects your systems') and warns against plain-English questions. It stops short of exclusions or naming alternatives, so an agent must infer when recent_cves or get_cve would be better.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.