Skip to main content
Glama

Search version-exact docs

docs
Read-only

Searches exact-version dependency documentation from lockfiles and installed packages, returning cited API signatures, README, changelog, and source sections to verify library behavior before coding.

Instructions

Answer a question from the docs of the exact installed version of a dependency: README, changelog, docs folder (public release-tag docs fetched on first use unless offline), and API reference (signatures + doc comments from .d.ts, Python, Rust and Go sources). Returns the most relevant sections within a token budget (hybrid keyword + embedding search), each cited as package@version path:line. Use it before using a library API you are not sure about for this version. Omit package to search all direct dependencies.

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": {
      "query": "<query>"
    },
    "name": "docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoAbsolute path of the project (defaults to the client's workspace root or the server's working directory).
queryYesWhat you need, in words or identifiers, e.g. "strict object unknown keys" or "cookies async".
tokensNoAnswer budget in tokens (default 1200).
offlineNoUse only installed and cached files for this call (no package or upstream downloads).
packageNoPackage name, optionally ecosystem- or version-qualified: zod, npm:zod, pydantic, tokio, github.com/gin-gonic/gin. Comma-separate several.
upgrade_toNolockdocs Pro: instead of searching, report the API changes between the pinned version of `package` and this target version (e.g. "15.0.0"), limited to the symbols this project calls, with call sites and migration-guide sections. `query` is ignored then. Needs `package`; the target's files must be cached, installed, or downloadable (fetching enabled).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, lowering the burden. The description still adds real behavior: public release-tag docs are fetched on first use unless offline, results are hybrid keyword + embedding search, and each hit is cited as `package@version path:line`. It does not cover failure modes when a package is unresolvable or fetch is blocked, so a 3 is not quite fair — but the coverage of fetching/caching semantics and citation format pushes it above baseline.

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 the purpose, then behavior/return shape, then the usage directive and the omit-package shortcut. Parenthetical asides are dense but each carries information an agent needs.

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 correctly explains the return shape (relevant sections within a token budget, cited as path:line). For a 6-parameter tool with a mode switch this is nearly complete; only error/empty-result behavior and guidance relative to the `api` sibling are missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: omitting `package` searches all direct dependencies, and `upgrade_to` ignores `query` and requires `package` plus cached/installed/downloadable target files. Those are genuine routing semantics beyond the field descriptions.

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?

Names a specific verb and resource — 'Answer a question from the docs of the exact installed version of a dependency' — and enumerates the sources covered (README, changelog, docs folder, API reference). An agent can distinguish this from the `api` and `resolve` siblings without opening any 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?

Gives an explicit trigger: 'Use it before using a library API you are not sure about for this version.' It also defines the alternative mode internally, stating that with `upgrade_to` it reports changes 'instead of searching' and that `query` is ignored then. It does not explicitly say when to prefer the `api` sibling, so not a 5.

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