Skip to main content
Glama

Package vulnerability check (OSV.dev)

osv_package_vulns
Read-onlyIdempotent

Open-source package vulnerability check via OSV.dev for npm, PyPI, Go, crates.io, Maven, RubyGems, NuGet, Packagist and more, by ecosystem+name+version, purl, or up to 10 purls. Useful before installing or upgrading a dependency. Returns vulnerable flag, count, CVE/GHSA aliases, CVSS score and severity, fixed versions and a verified upgradeTo version. Errors: 400 invalid input, 502 OSV unavailable. PAID: $0.001 USDC per call on Base via x402 (MCP transport: retry with params._meta["x402/payment"]). Same tool over plain HTTP: GET /v1/osv/package.

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

Input Schema

NameRequiredDescriptionDefault
nameNopackage name; Maven uses groupId:artifactId, Go uses the module path
purlNoalternative to ecosystem+name+version, e.g. pkg:npm/lodash@4.17.20
limitNomax vulns returned per package, default 50
versionNooptional exact version; omit for all known advisories
packagesNobatch: up to 10 comma-separated purls
ecosystemNoOSV ecosystem, case-insensitive: npm, PyPI, Go, crates.io, Maven, RubyGems, NuGet, Packagist, Hex, Pub, Debian:12 ...

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare read/idempotent/open-world; the description adds the things annotations cannot: the paid x402 model ($0.001 USDC per call on Base, with the exact _meta["x402/payment"] retry mechanism), 400 vs 502 error semantics, and the returned fields including the derived upgradeTo version. For a paid, network-dependent tool this is exactly the context an agent needs before calling.

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?

One dense paragraph ordered purpose → usage → returns → errors → payment, with the most decision-relevant facts up front. It is long but nearly every clause carries distinct information; the payment clause is slightly convoluted but not wasteful.

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 correctly compensates by enumerating the response shape (vulnerable flag, count, aliases, CVSS, severity, fixed versions, upgradeTo). Error codes and the payment requirement round out what an agent must know to call it successfully.

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 each of the six parameters is already documented, including the Maven groupId:artifactId and Go module-path caveats. The description restates the three lookup modes (ecosystem+name+version, purl, batch purls) but adds no syntax or precedence detail beyond what the schema already says. Baseline 3 is appropriate.

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?

States a specific verb+resource ('Open-source package vulnerability check via OSV.dev') and pins down the domain: ecosystems, lookup key modes, and what the response contains. No sibling in the catalog overlaps, and an agent can tell immediately this is the dependency-CVE tool.

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?

'Useful before installing or upgrading a dependency' gives a concrete trigger context for invocation, and the input modes tell the agent how to scope a call. There are no explicit when-not-to-use rules or named alternatives, but no sibling performs this function, so the gap is minor.

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.

Resources