Skip to main content
Glama
vulnerability-exposure-mcp

vulnerability-exposure-mcp

Am I affected?

am_i_affected
Read-onlyIdempotent

Checks whether software versions, lockfiles, or CycloneDX SBOMs are affected by known CVEs or a specified CVE, returning AFFECTED, NOT_AFFECTED, or CANT_CONFIRM with the deciding advisory.

Instructions

Is my software affected? Give the products and versions you run (typed, or pasted from a banner or Server header), a lockfile (requirements.txt, poetry.lock, uv.lock, package-lock.json, yarn.lock, pnpm-lock.yaml, Cargo.lock, Gemfile.lock, go.mod, go.sum) or a CycloneDX SBOM. With cve_id, answers whether that one CVE (e.g. one in the news) affects each of them; without it, lists the confirmed CVEs for each. Every product gets AFFECTED, NOT_AFFECTED or CANT_CONFIRM with the NVD range, package advisory or distro fix that decided it. Lockfile and SBOM packages are checked in one OSV.dev batch call. 'nginx 1.24.0 -> 1.26.2' also shows what the upgrade fixes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
pathNoOptional. The path to one lockfile (any of those above) or CycloneDX JSON file the user named, for files too large to pass as text. Read-only; folders are never searched.
sbomNoOptional. The text of a CycloneDX JSON SBOM, e.g. from 'syft dir:. -o cyclonedx-json'.
cve_idNoOptional. One CVE ID, e.g. 'CVE-2024-6387', to ask whether that CVE affects this software. Leave it out to check for every known CVE.
lockfileNoOptional. The text of a lockfile: a pinned requirements.txt, poetry.lock, uv.lock, package-lock.json, yarn.lock, pnpm-lock.yaml, Cargo.lock, Gemfile.lock, go.mod or go.sum.
softwareNoThe software you run, one entry per product: 'nginx 1.24.0', a banner such as 'OpenSSH_8.9p1 Ubuntu-3ubuntu0.6', an RPM as 'rpm -q' prints it ('openssh-8.7p1-38.el9_4.1.x86_64'), or a header such as 'Server: Apache/2.4.49 (Unix) OpenSSL/1.1.1k'. Add ' -> 1.26.2' to an entry to see what upgrading fixes. Up to 20 products.
investigation_idNoThe investigation_id from investigate_target. Pass it so the result counts toward that investigation's evidence, budget and key facts; without it the lookup runs on its own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.3.0
    • changedInput schema / properties / lockfile / description
      Previous value: -"Optional. The text of a pinned requirements.txt or a package-lock.json."New value: +"Optional. The text of a lockfile: a pinned requirements.txt, poetry.lock, uv.lock, package-lock.json, yarn.lock, pnpm-lock.yaml, Cargo.lock, Gemfile.lock, go.mod or go.sum."
    • changedInput schema / properties / path / description
      Previous value: -"Optional. The path to one requirements*.txt, package-lock.json or CycloneDX JSON file the user named, for files too large to pass as text. Read-only; folders are never searched."New value: +"Optional. The path to one lockfile (any of those above) or CycloneDX JSON file the user named, for files too large to pass as text. Read-only; folders are never searched."
    • changedInput schema / properties / software / description
      Previous value: -"The software you run, one entry per product: 'nginx 1.24.0', a banner such as 'OpenSSH_8.9p1 Ubuntu-3ubuntu0.6', or a header such as 'Server: Apache/2.4.49 (Unix) OpenSSL/1.1.1k'. Add ' -> 1.26.2' to an entry to see what upgrading fixes. Up to 20 products."New value: +"The software you run, one entry per product: 'nginx 1.24.0', a banner such as 'OpenSSH_8.9p1 Ubuntu-3ubuntu0.6', an RPM as 'rpm -q' prints it ('openssh-8.7p1-38.el9_4.1.x86_64'), or a header such as 'Server: Apache/2.4.49 (Unix) OpenSSL/1.1.1k'. Add ' -> 1.26.2' to an entry to see what upgrading fixes. Up to 20 products."
  2. Addedv1.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, open-world), and the description adds substantial behavior beyond them: three-state verdicts (AFFECTED/NOT_AFFECTED/CANT_CONFIRM) with the deciding NVD range, package advisory or distro fix, lockfile/SBOM packages resolved in one OSV.dev batch call, a 20-product cap, read-only path access with no folder search, and the effect on an investigation's evidence/budget/key facts. That is the kind of operational detail an agent cannot get from annotations alone.

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?

Dense but front-loaded: the core question, the input types, and the two modes come before the verdict semantics and the batch-call note. Some of the lockfile list and banner examples repeat what the schema already says, adding mild redundancy, but no sentence is filler.

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

Completeness5/5

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

With no output schema, the description carries the return-value burden and does so fully: it states the per-product verdict vocabulary, the evidence attached to each verdict, and the upgrade-diff output. Combined with the input coverage and investigation coupling, an agent has everything needed to call it correctly and interpret the result.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents all six parameters; the description nonetheless adds real meaning: the 20-product ceiling on software (not in the schema), the upgrade-arrow syntax, accepted banner/RPM/header formats, and the concrete consequence of supplying investigation_id. Minor duplication with schema text keeps it from a 5.

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

Purpose5/5

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

Opens with a specific question the tool answers ('Is my software affected?') and immediately names the accepted inputs (product/version strings, lockfiles, CycloneDX SBOM) and the two modes: single-CVE check with cve_id, full confirmed-CVE listing without it. An agent can tell this is a batch 'does X affect my stack' checker rather than a generic CVE lookup like cve_search or nvd_lookup.

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 clear situational guidance: pass typed products, a pasted banner/Server header, a lockfile, or an SBOM; use cve_id for a news CVE, omit it to enumerate; add ' -> 1.26.2' to see upgrade coverage; pass investigation_id to attach results to an investigation. It does not explicitly name alternative sibling tools or state when another tool would be a better choice, so it stops short of a 5.

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