Skip to main content
Glama

dependency-trust

Get Package

get_package
Read-onlyIdempotent

List every version of a package and whether each is deprecated.

Returns all published versions of a package with publish date, the default-version flag, and deprecation status. Use it to find the latest version or check if a package is deprecated. Coding agents should call this before recommending a package or version.

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

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'.

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.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuine value by describing the payload — publish date, default-version flag, and deprecation status — which matters because there is no output schema. It omits pagination, result-size limits, and not-found behavior.

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?

Three sentences, front-loaded with what the tool returns, then purpose, then a call-to-action for coding agents. Every sentence carries information an agent would act on, with no restated title or filler.

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 only two required, fully documented parameters and no output schema, the description covers enough: what comes back, what it is for, and when to call it. The remaining gap is operational detail such as pagination or behavior for unknown packages, which is minor for a read-only lookup.

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%, and the enum of ecosystems plus the encoding note for scoped/namespaced names are already documented there. The description adds no parameter-level meaning beyond the schema, 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 description opens with a specific verb and resource ('List every version of a package') and immediately scopes the result ('whether each is deprecated'). The phrase 'every version' implicitly separates it from the sibling get_package_version, so an agent can tell which one returns the version list without opening either schema.

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?

It gives explicit task contexts — 'find the latest version' and 'check if a package is deprecated' — plus a proactive trigger, 'call this before recommending a package or version.' It never names a when-not condition or a specific alternative tool, which keeps it short of a 5.

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