Skip to main content
Glama

dependency-trust

Get Dependencies

get_dependencies
Read-onlyIdempotent

Get the resolved dependency graph for one package version.

Returns the full resolved dependency graph (direct and indirect) for a version. Each node has the dependency's exact version and its relation (SELF / DIRECT / INDIRECT). Use it to reason about transitive dependencies and supply chain.

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_dependencies"
  }
}

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

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered; the description adds return-shape behavior beyond that: the graph includes direct and indirect nodes, each with an exact version and a SELF/DIRECT/INDIRECT relation. It does not discuss graph size, cycles, or truncation, so it is strong but not complete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded and short, but sentence two largely restates sentence one ('full resolved dependency graph ... for a version') before adding the node detail. A tighter version would merge the two into one sentence without losing information.

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 and only three path parameters, the description adequately covers what is returned (node versions plus relation labels) and why an agent would call it. Minor gaps around graph size or error behavior are acceptable given the simple, read-only shape.

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%, including the ecosystem enum and the raw/unencoded package-name convention, so the schema carries the parameter burden. The description only reinforces that a single exact version is queried and adds no new syntax or format meaning, matching the baseline 3.

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?

States a specific verb and resource ('Get the resolved dependency graph') scoped to 'one package version', which is clearly distinct from sibling tools like get_package_version. It does not explicitly name or contrast with those siblings, keeping it just below a 5.

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?

The phrase 'Use it to reason about transitive dependencies and supply chain' gives a genuine use case, but there is no guidance on when NOT to use it or which sibling (e.g. get_package_version) to pick for non-graph needs. Usage is implied rather than directive.

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