Skip to main content
Glama

Resolve dependency versions

resolve
Read-only

Lists exact dependency versions pinned in project lockfiles and whether their docs are available locally, helping agents verify the library version code actually uses before writing against it.

Instructions

List the exact dependency versions this project pins (from package-lock.json, pnpm-lock.yaml, yarn.lock, bun.lock, Cargo.lock, uv.lock, poetry.lock, requirements*.txt, go.mod) and whether their docs are available locally. Call it to learn which version of a library the code actually uses before writing code against it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "resolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoAbsolute path of the project (defaults to the client's workspace root or the server's working directory).
filterNoSubstring of a package name; also searches transitive dependencies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description is consistent with that by describing a pure enumeration over local lockfiles/manifests. It adds real context beyond annotations: the exact file set scanned, the additional signal returned (local docs availability), and the default resolution of the root path. It does not cover output shape or ordering, but no output schema exists either.

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?

Front-loaded with the action and resource, then the file list, then the usage trigger. The long parenthetical file enumeration is dense but each entry earns its place by bounding scope; the two-sentence shape has no 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?

For a two-parameter, read-only, zero-required-parameter tool with no output schema, the description supplies what matters: what is read, what the result conveys, and when to reach for it. It is slightly thin on how results are structured when many dependencies match, but the essential contract is present.

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 parameters are already documented at the field level, which sets the baseline at 3. The description adds one useful nuance by framing the result as pinned versions rather than the declared ranges a manifest alone would show, but it says nothing about filter matching behavior beyond the schema's own note.

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?

"List the exact dependency versions this project pins" gives a precise verb and resource, and the enumerated lockfile/manifest sources make the scope concrete and hard to confuse with the sibling docs or api tools. It stops short of explicitly naming those siblings, so differentiation is inferred from "whether their docs are available locally" rather than stated.

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?

"Call it to learn which version of a library the code actually uses before writing code against it" gives a clear trigger and timing for invocation. There are no when-not conditions and no explicit pointer to the docs tool for reading the locally available documentation, so an agent must infer the handoff.

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

Deploy Server

Other Tools