Skip to main content
Glama

dependency-trust

Get Package Version

get_package_version
Read-onlyIdempotent

Get license, security advisories, and source links for one package version.

Returns detailed metadata for a single version: SPDX licenses, security advisoryKeys (known vulnerabilities), homepage/issue-tracker/source-repo links, registries, publish date, and deprecation status. Pass any advisoryKey returned here to get_advisory for the vulnerability details.

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": {
      "system": "<system>",
      "package": "<package>",
      "version": "<version>"
    },
    "name": "get_package_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
systemYesPackage ecosystem.
packageYesPackage name, raw and unencoded (the gateway URL-encodes it). Use scoped or namespaced names as-is, e.g. npm '@angular/core', Maven 'group:artifact'.
versionYesExact version string, e.g. '18.2.0'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / system / enum
      Added value: +[
      +  "npm",
      +  "pypi",
      +  "go",
      +  "maven",
      +  "cargo",
      +  "nuget",
      +  "rubygems"
      +]
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world behavior, so the bar is lower. The description still adds real value by listing what the response contains (SPDX licenses, advisoryKeys, homepage/issue-tracker/source links, registries, publish date, deprecation status) and by disclosing the chaining contract to get_advisory. It omits nothing critical for a single-version lookup, though error behavior for a nonexistent version is unstated.

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?

Two sentences, front-loaded with the purpose and then the payload contents, with no filler. There is slight overlap between the first sentence's 'license, security advisories, and source links' and the second sentence's fuller field list, but the second sentence earns its space by naming fields the first omits.

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?

With no output schema, the description carries the burden of describing return values, and it does so with an explicit field enumeration plus the advisoryKey hand-off. All three required parameters are documented in the schema, so nothing an agent needs to call it correctly is missing; only failure/miss behavior is left uncovered.

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%: the schema itself documents the system enum, the raw/unencoded package-name convention with scoped examples, and the exact version format. The description adds no parameter-level detail beyond what the schema already provides, so the baseline 3 applies.

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?

The opening sentence states a specific verb (Get) plus the exact resource and scope: license, security advisories and source links for one package version. The scope word 'one ... version' separates it from the sibling get_package, and the second sentence enumerates the returned fields so an agent knows precisely what it retrieves.

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?

The description gives explicit follow-up routing: 'Pass any advisoryKey returned here to get_advisory for the vulnerability details,' which tells the agent exactly when the next tool is needed. It does not state when to prefer get_package or get_dependencies over this one, so the version-level vs package-level distinction is only implied by the word 'version'.

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