Skip to main content
Glama
OSV Supply Chain Vulnerabilities MCP

OSV Supply Chain Vulnerabilities MCP

Query package vulnerabilities

query_package_vulns
Read-onlyIdempotent

Queries OSV.dev for known vulnerabilities in an open-source package by ecosystem, package name, and optional version to support dependency risk checks.

Instructions

Query OSV.dev (/v1/query) for known vulnerabilities in an open-source package by ecosystem, package name, and optional version.

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": "query_package_vulns"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of vulnerabilities to return (1 to 100, default 20).
packageYesPackage name within the ecosystem (e.g. "lodash", "django", "stdlib", "serde", "org.apache.logging.log4j:log4j-core").
versionNoOptional specific package version to check (e.g. "4.17.20"). Omit to list all known advisories for the package.
ecosystemYesPackage ecosystem (e.g. "npm", "PyPI", "Go", "crates.io", "Maven", "NuGet", "Packagist", "RubyGems").
page_tokenNoOptional OSV.dev pagination token from a previous response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so much of the safety profile is pre-supplied. The description adds that this hits an external service endpoint and that version is optional, but says nothing about rate limits, auth, or pagination behavior beyond the bare page_token in the schema.

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 states the backing service, action, and keying parameters with no filler. Slightly dense but nothing wasted.

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 five-parameter read-only query tool whose schema is fully documented and whose safety hints are covered by annotations, the description is nearly sufficient. The only minor gap is that return shape and pagination continuation are left entirely implicit.

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 ecosystem, package, version, limit, and page_token are all already documented with examples. The description restates the same three parameters without adding format or constraint detail, 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?

Specific verb and resource: 'Query OSV.dev (/v1/query) for known vulnerabilities' scoped by ecosystem, package, and optional version. An agent can immediately tell this is a single-package vulnerability lookup rather than the batch or commit-based variants, though it never names those siblings explicitly.

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?

Usage is implied by the required ecosystem+package framing and the note that omitting version lists all advisories, but there is no explicit when-to-use versus when-to-use-alternatives guidance. Nothing steers the agent toward batch_query_packages or query_by_commit.

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