Skip to main content
Glama

docs_read

Read a documentation section by its chunk_id returned from a docs search, optionally including up to five neighbouring sections for added context.

Instructions

Read a docs section by chunk_id from docs_search. context: neighbouring sections to add (0-5).

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": {
      "chunk_id": "<chunk_id>"
    },
    "name": "docs_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNo
chunk_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. 'Read' implies a non-mutating operation and the context parameter's effect on output is explained, but return shape, error behavior for invalid chunk_ids, and whether adjacent-section expansion is bounded by document edges are all unstated.

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 terse clauses, front-loaded with the core action, then the optional parameter note. No filler, no repetition of the tool name, and nothing an agent must read past to find the essential 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?

For a two-parameter read-only tool with no output schema and no annotations, the description covers the essential call mechanics and the one non-obvious parameter's effect. The remaining gap is the absence of any statement about what the response contains or how large a context-expanded read can get.

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 description coverage is 0%, so the description must compensate, and it does for both parameters: chunk_id's origin is given as docs_search, and context is defined as the number of neighbouring sections to add with a 0-5 range that the schema lacks. The chunk_id format/prefix convention is still unspecified.

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 names a specific verb and resource ('Read a docs section') and ties the required input to its provenance ('by chunk_id from docs_search'), which distinguishes it from the sibling search tool. It stops short of an explicit 'not for searching' statement, so sibling differentiation is implied rather than declared.

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?

Mentioning that the chunk_id comes from docs_search implies the expected two-step workflow (search then read), which is useful context. However, there is no explicit when-to-use/when-not guidance, no statement about what to do if a chunk_id is stale, and no named alternative for fetching multiple sections.

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