Skip to main content
Glama
OSV Supply Chain Vulnerabilities MCP

OSV Supply Chain Vulnerabilities MCP

Check fixed versions and upgrade targets

check_fixed_versions
Read-onlyIdempotent

Find patched versions and unpatched advisories for a package ecosystem, with an optional installed version, and get the highest recommended upgrade target from OSV.dev.

Instructions

Query OSV.dev for a package and ecosystem (with optional current version) and return a clean summary of patched versions, unpatched advisories, and the highest recommended upgrade target.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ecosystem": "<ecosystem>",
      "package": "<package>"
    },
    "name": "check_fixed_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesPackage name within the ecosystem (e.g. "lodash", "requests").
versionNoOptional currently installed version to inspect for upgrade targets (e.g. "4.17.20").
ecosystemYesPackage ecosystem (e.g. "npm", "PyPI", "Go", "crates.io", "Maven", "NuGet", "Packagist").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety bar is already covered. The description still adds real value beyond them by naming the external data source (OSV.dev) and describing the shape of the response — patched versions, unpatched advisories, and a highest recommended upgrade target — which compensates for the absent output schema. It stops short of covering failure behavior (unknown package, no advisories found) or any rate/pagination expectations.

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?

A single, front-loaded sentence that leads with the action, the source, and the required inputs, then states what is returned. It is dense but every clause contributes; only the parenthetical about the optional version is slightly redundant with the schema.

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?

For a three-parameter read-only lookup with no output schema, the description is nearly complete: inputs, data source, and return contents are all covered, and annotations handle safety semantics. The remaining gap is edge-case behavior when no advisories or fixed versions exist, which an agent would need to know to interpret an empty result.

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 description coverage is 100%, so all three parameters are already documented in the schema, including the optionality of 'version'. The description's '(with optional current version)' merely restates schema behavior without adding format, constraint, or interpretation guidance. Baseline 3 is appropriate when the schema carries the parameter burden.

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 ('Query OSV.dev') plus the resource (package + ecosystem vulnerability data) and the exact deliverable: patched versions, unpatched advisories, and a highest upgrade target. This remediation-oriented output focus implicitly separates it from siblings like query_package_vulns or get_vulnerability, but no sibling is named, so differentiation is inferred 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 Guidelines3/5

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

The use case (find fixed versions and an upgrade target for a package) is clearly implied, and the optional version parameter signals the 'what should I upgrade to' scenario. However, there is no explicit when-to-use guidance, no statement of when to prefer batch_query_packages or query_package_vulns instead, and no prerequisites mentioned.

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