Skip to main content
Glama
OSV Supply Chain Vulnerabilities MCP

OSV Supply Chain Vulnerabilities MCP

Query vulnerabilities by git commit

query_by_commit
Read-onlyIdempotent

Detect known vulnerabilities in vendored C, C++, Go, or open-source repository commits by querying OSV.dev with a git commit SHA.

Instructions

Query OSV.dev (/v1/query) by git commit SHA to detect known vulnerabilities in vendored C, C++, Go, or open-source repository commits.

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": {
      "commit": "<commit>"
    },
    "name": "query_by_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of vulnerabilities to return (1 to 100, default 20).
commitYesGit commit SHA hash (7 to 40 hexadecimal characters, e.g. "6879efc2c1596d11a6a6ad296f80063b558d5e0f").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds one piece of real context by tying it to the external OSV.dev /v1/query service, which explains the open-world behavior, but says nothing about result shape, empty-result handling, or service limits. That is adequate-but-thin given the annotation coverage.

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 with no filler, leading with the verb and resource before the endpoint detail. The language enumeration (C, C++, Go) is slightly arbitrary but supplies useful scope, so nothing is truly wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only two fully-documented parameters and rich annotations, the definition is largely sufficient. However, there is no output schema, so the description would be the only place to convey what a result looks like (vulnerability records vs. an empty list), and it omits that as well as any sibling routing.

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%, so both the commit SHA format (7-40 hex chars with an example) and the limit default/range are already documented in the schema. The description adds no param-level meaning beyond that, which is the expected baseline when the schema does the work.

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?

The description names a specific verb (Query), a specific resource (known vulnerabilities), and an explicit lookup key (git commit SHA), and it cites the underlying OSV.dev /v1/query endpoint. It implicitly distinguishes itself from package-based siblings by stating the commit-SHA axis, but it never names an alternative, so the differentiation is left to inference.

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 context is only implied through the clause about vendored C, C++, Go, or open-source repository commits, which suggests the scenario (auditing lockfile-pinned or vendored dependencies). There is no explicit when-to-use, when-not-to-use, or routing to query_package_vulns / get_vulnerability, so an agent must guess at selection boundaries.

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