Skip to main content
Glama

docs_resolve_id

Resolves a library name to its Context7 documentation library ID for documentation lookup. Returns a setup hint when CONTEXT7_API_KEY is not configured.

Instructions

Resolve library name to Context7 docs library ID. Uses Context7 API when CONTEXT7_API_KEY is set; otherwise returns error with setup hint.

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": "docs_resolve_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNo
libraryNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does disclose a genuinely useful trait: it calls the Context7 API only when CONTEXT7_API_KEY is set, and otherwise fails with a setup hint. That auth prerequisite and failure mode are exactly the kind of context annotations would normally provide. It stops short of describing the response shape or rate/latency 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?

Two short sentences, front-loaded with the purpose, followed by the auth/error condition. No filler or redundant restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no output schema and no annotations, the description covers purpose and the API-key failure mode but leaves the 'query' parameter and the expected return value (an ID string?) unaddressed. Adequate to attempt a call, not complete enough to call confidently.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for two undocumented parameters. It only implies what 'libraryName' means ('library name') and says nothing at all about 'query', which is left completely unexplained despite being the first-listed property.

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?

The description gives a specific verb and resource: 'Resolve library name to Context7 docs library ID.' An agent can tell this is an ID-lookup step distinct from a docs retrieval. It does not explicitly name the sibling docs_query as the consumer of the result, so differentiation is clear but not spelled out.

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: you resolve a library name in order to obtain an ID, presumably before querying docs. There is no explicit statement of when to choose this over docs_query, nor any prerequisite workflow ordering beyond the API-key note.

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