Skip to main content
Glama

get_dependencies

Lists dependencies from Maven, Gradle, Go, and npm build files, grouped by scope so you can inspect project dependencies.

Instructions

List dependencies from a build file: pom.xml (Maven), build.gradle / build.gradle.kts (Gradle), go.mod (Go), package.json (npm). Results grouped by scope.

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": {
      "path": "<path>"
    },
    "name": "get_dependencies"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the build file: pom.xml (Maven), build.gradle or build.gradle.kts (Gradle), go.mod (Go), package.json (npm)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden; it does add one real behavioral fact not in the schema — "Results grouped by scope" — which hints at return organization. However, it says nothing about read-only semantics, whether dependency versions/transitives are resolved, error behavior on unparseable files, or the fact that the input is limited to four formats.

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?

Two sentences, front-loaded with the core action and then the supported inputs and output shape. Every clause earns its place and nothing is padded.

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?

For a one-parameter local file parser with no output schema, the description covers supported inputs and how results are organized, which is enough to call it correctly. The only remaining gap is edge-case behavior (unsupported or missing files), which is minor at this complexity level.

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% for the single `path` parameter, so the baseline is 3. The description's format list is essentially a verbatim duplicate of the schema's own parameter description, adding no syntax, resolution, or validation detail beyond what structured data already provides.

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 dependencies from a build file") and immediately enumerates the exact supported file types, so an agent knows precisely what the tool returns. None of the listed siblings (git status, docker state, env summary) overlap with this behavior, so no sibling disambiguation is needed.

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 is only implied by the enumeration of supported build files — there is no statement of when to prefer this tool, what preconditions exist (file must exist on disk, must be one of the four formats), or what happens for unsupported manifests. For a single-purpose reader the intent is inferable, but it never says when-not to call it.

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