Skip to main content
Glama

Saasment Security MCP

Query OSV.dev for a package

query_osv
Read-onlyIdempotent

Query OSV.dev for known vulnerabilities affecting an open source package, by ecosystem and name, optionally for one version. Results are sorted by modified descending (then id). When truncated is true, pass nextPageToken (opaque offset) for the next page. Ecosystem names are normalised (pypi→PyPI). Returns ids, aliases (CVE, GHSA), summaries, severity, CWE ids, fixed versions, and links. Read-only. Fetched on demand and cached for up to an hour.

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>",
      "name": "<name>"
    },
    "name": "query_osv"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name as published in the ecosystem, for example jinja2, @angular/core, or org.apache.logging.log4j:log4j-core.
limitNoMaximum vulnerabilities to return (default 20).
versionNoOptional version; only vulnerabilities affecting it are returned. Omit to list all known for the package.
ecosystemYesOSV ecosystem name (case-insensitive; pypi→PyPI, maven→Maven). Common values: PyPI, npm, Maven, Go, crates.io, NuGet, RubyGems, Packagist, or versioned forms such as Debian:12, Alpine:v3.20.
pageTokenNoOpaque nextPageToken from a previous result (offset into the sorted set: modified desc, then id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (read-only, open-world, idempotent, non-destructive), yet the description still adds real behavior: result ordering (modified desc, then id), the opaque offset nature of nextPageToken, ecosystem name normalisation, the fields returned, and caching for up to an hour. That caching and sort-order detail is exactly the kind of context annotations cannot express.

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?

Five tight sentences, front-loaded with the verb and resource, then pagination, normalisation, return shape, and read-only/caching notes. No filler and no repeated schema content.

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?

There is no output schema, and the description compensates by enumerating the returned fields (ids, aliases, summaries, severity, CWE ids, fixed versions, links). With pagination, version filtering, and caching all covered, an agent has everything needed to call this correctly.

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 description coverage is 100%, so the baseline is 3; the description still adds meaning by explaining that pageToken is an offset into a set sorted by modified desc then id, which tells an agent the pagination window is stable. Ecosystem normalisation is largely restated from the schema's own note, so it does not go much beyond.

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 and resource — query OSV.dev for known vulnerabilities affecting an open source package — and pins the lookup key to ecosystem plus name with an optional version. Naming OSV.dev as the source also implicitly separates it from the NVD-oriented siblings (get_cve, search_cves).

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 conditional context: include version to narrow to vulnerabilities affecting that version, omit it to list all known for the package, and pass nextPageToken when truncated is true. It stops short of naming alternatives (e.g., when to prefer search_cves or get_cve for CVE-centric data), so no exclusions are stated.

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