Skip to main content
Glama
OSV Supply Chain Vulnerabilities MCP

OSV Supply Chain Vulnerabilities MCP

Batch query packages for SBOM triage

batch_query_packages
Read-onlyIdempotent

Check up to 25 open-source packages in one OSV.dev batch request to triage known vulnerabilities across package.json, requirements.txt, go.mod, or Cargo.lock dependencies.

Instructions

Query OSV.dev (/v1/querybatch) for up to 25 open-source packages at once. Ideal for triaging package.json, requirements.txt, go.mod, or Cargo.lock dependencies.

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": {
      "packages": "<packages>"
    },
    "name": "batch_query_packages"
  }
}

Input Schema

NameRequiredDescriptionDefault
packagesYesArray of 1 to 25 package entries to check in a single batch request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive, so the safety profile is fully covered. The description adds the upstream endpoint and the batch cap, but the cap is already in the schema (maxItems 25), and it says nothing about result shape or how invalid ecosystem values are handled.

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

Conciseness5/5

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

Two short sentences with zero filler; the capability and the batch ceiling come first, followed by the triage use case. Nothing can be trimmed without losing information.

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 single-parameter, fully documented, well-annotated tool this is close to complete — an agent knows what it queries, the batch limit, and the intended input sources. The one gap is that no output schema exists and the description never indicates what comes back per package, leaving the reply shape to inference.

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% for the single packages parameter, including nested ecosystem, package, and optional version fields, so the schema carries the semantic load. The description only restates the 1–25 batch range and adds no meaning about version omission or ecosystem naming beyond the schema.

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 ("Query OSV.dev (/v1/querybatch)") and scopes it with "up to 25 open-source packages at once," which implicitly separates it from the single-package sibling query_package_vulns. No sibling is named explicitly, so differentiation is inferential 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 concrete usage context by naming the manifest files it is "ideal for" (package.json, requirements.txt, go.mod, Cargo.lock), which tells an agent when this tool fits. It stops short of exclusions — it never says to use query_package_vulns for a single package or get_vulnerability for details.

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