Skip to main content
Glama

read_doc_section

Retrieves a single documentation section by ID so you can read one heading instead of the entire file, reducing token usage.

Instructions

Retrieves the content of one documentation section by ID. Returns one heading's worth of content instead of the entire file. ~100 tokens vs ~2000 for reading the full doc.

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": {
      "section_id": "<section_id>"
    },
    "name": "read_doc_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
verifyNoVerify content hasn't drifted since indexing
section_idYesSection identifier (from search_sections or get_toc results)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

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 burden and does disclose the return shape (one heading's worth of content) and relative cost. It says nothing about behavior on an invalid or stale section ID, what 'verify' does when drift is detected, or whether content comes from an index versus live source — meaningful gaps for a retrieval tool with zero annotation coverage.

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 short sentences, front-loaded with the core action and then the scope and cost justification. Every sentence carries decision-relevant information and there is no padding.

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 simple two-parameter read tool with a fully described schema, this covers what the agent needs: what it returns, its granularity, and its cost profile. Only edge behavior (invalid ID, drift verification result) is left unexplained, which is minor given the tool's simplicity.

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, including where section_id comes from (search_sections or get_toc). The description adds no parameter-level meaning beyond the schema, which is the expected baseline when the schema does the work.

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?

States a specific verb and resource (retrieves the content of one documentation section by ID) and scopes it to 'one heading's worth' versus 'the entire file,' which implicitly distinguishes it from the plural sibling read_doc_sections. It stops short of naming that sibling explicitly, so the differentiation requires a small inference.

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 a clear selection rationale: use this when you want a single heading rather than the whole document, quantified as ~100 tokens vs ~2000. That is genuine when-to-use guidance, though it does not name the alternative tools (read_doc_sections, doc_table_of_contents) or state when a full-document read is still warranted.

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