Skip to main content
Glama

atlas_read

Read-onlyIdempotent

Read the Markdown content for a specific documentation anchor and paginate it by character budget to avoid loading entire raw files.

Instructions

Read the Markdown content of a single documentation section by its anchor with character-budget pagination.

Use this tool after obtaining an `anchor` from `atlas_where`, `atlas_search`, or `atlas_outline`.
Never read raw documentation files from disk when `atlas_read` can fetch the exact section.

Behavior & Output:
- Read-only lookup from the local documentation index.
- Returns a JSON string `{anchor, heading, breadcrumb, path, line, chars, total_chars, offset, truncated, body}`
  (plus `next_offset` when `truncated: true`). If the anchor does not exist, returns `{error, suggestions, hint}`.

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": {
      "anchor": "<anchor>"
    },
    "name": "atlas_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
anchorYesSection anchor identifier in `<doc_id>#<section-slug>` format (or `<doc_id>` for the document root), as returned by `atlas_where`, `atlas_search`, or `atlas_outline` (e.g. 'combat#damage-model').
offsetNoCharacter offset to start reading from (default 0). When a previous call returned `truncated: true`, pass its `next_offset` value here to read the next page.
max_charsNoMaximum number of characters to return in one call (default 3000).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.1
    • addedInput schema / properties / anchor / description
      Added value: +"Section anchor identifier in `<doc_id>#<section-slug>` format (or `<doc_id>` for the document root), as returned by `atlas_where`, `atlas_search`, or `atlas_outline` (e.g. 'combat#damage-model')."
    • addedInput schema / properties / anchor / minLength
      Added value: +1
    • addedInput schema / properties / max_chars / description
      Added value: +"Maximum number of characters to return in one call (default 3000)."
    • addedInput schema / properties / max_chars / maximum
      Added value: +50000
    • addedInput schema / properties / max_chars / minimum
      Added value: +100
    • addedInput schema / properties / offset / description
      Added value: +"Character offset to start reading from (default 0). When a previous call returned `truncated: true`, pass its `next_offset` value here to read the next page."
    • addedInput schema / properties / offset / minimum
      Added value: +0
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description goes further by disclosing the pagination contract (chars, total_chars, offset, truncated, next_offset) and the failure mode ({error, suggestions, hint}), which tells an agent how to detect and recover from a bad anchor. Minor deduction because the enumerated return fields overlap with the existing output schema.

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 core action, then a usage line, then a clearly headed 'Behavior & Output' block. No filler sentences, though the return-field enumeration is somewhat verbose relative to an output schema that already defines those fields.

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?

Covers the full calling loop an agent needs: where anchors come from, how to page through large sections, and what an error response looks like. Given a rich output schema and full annotation coverage, the description is more than sufficient; the redundant field listing is the only slight inefficiency.

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 description coverage is 100%, and the schema already explains the anchor format, offset chaining from next_offset, and the 100-50000 range for max_chars. The description adds only the high-level notion of 'character-budget pagination', which is a light restatement rather than new semantics, so the baseline 3 applies.

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?

States a specific verb and resource ('Read the Markdown content of a single documentation section') and adds the distinguishing constraint 'by its anchor with character-budget pagination.' This separates it cleanly from sibling tools like atlas_search or atlas_outline, which locate sections rather than fetch their body.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the prerequisite sources for an anchor (atlas_where, atlas_search, atlas_outline) and states the ordering ('use this tool after obtaining an anchor'). It also gives a negative rule: 'Never read raw documentation files from disk when atlas_read can fetch the exact section', which steers the agent away from a plausible wrong alternative.

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