Skip to main content
Glama

doc_at

Read-only

Read a document as it was at a past date or revision, optionally a line range, to recover context a diff leaves out. Use read_doc for the current version.

Instructions

A document's content at a past point: pass rev (a sha from doc_history) or at (a date: the last revision on or before it). For the context a diff leaves out. start_line/end_line read a part; a long doc is cut, the header says where to read on. Use read_doc for the current version, doc_diff for what changed.

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": {
      "path": "<path>"
    },
    "name": "doc_at"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoA date ('2026-05-01', 'last tuesday'): use it rather than guess a sha.
revNoA revision; not with `at`. Prefer a sha from doc_history: HEAD~N counts the whole mind's commits, not this doc's.
pathYesPath of the doc, e.g. notes/cdc.md.
end_lineNoLast line, inclusive (omit: to the end).
start_lineNoFirst line to read, 1-based.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.8.0
    • changedInput schema / properties / path / description
      Previous value: -"The doc."New value: +"Path of the doc, e.g. notes/cdc.md."
    • changedInput schema / properties / rev / description
      Previous value: -"A sha or HEAD~N; not with `at`."New value: +"A revision; not with `at`. Prefer a sha from doc_history: HEAD~N counts the whole mind's commits, not this doc's."
  2. First observedv2.7.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), but the description adds genuinely non-obvious behavior: long documents are truncated and a header indicates where to continue, and HEAD~N counts the whole mind's commits rather than this document's. It stops short of describing the return shape or what happens when neither rev nor at is supplied, which keeps it from a 5.

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?

Dense and front-loaded — scope first, then parameter routing, then sibling disambiguation. The telegraphic fragment style ('For the context a diff leaves out') is efficient but slightly compressed, which is the only thing keeping it from a 5.

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 5-parameter read tool with no output schema, the description covers purpose, alternatives, parameter choice, and truncation behavior well. The notable gap is the default when neither rev nor at is supplied, which an agent would need before calling it blindly.

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 not present in the schema: that `at` resolves to the last revision on or before the given date, and that start_line/end_line exist to read a partial section rather than the whole doc. The rev/at exclusivity is largely restated from the schema, which caps it below a 5.

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?

The description gives a specific verb and resource — retrieving a document's content as of a past revision — and immediately distinguishes itself from three siblings (doc_history as a source of shas, read_doc for current, doc_diff for changes). An agent can tell exactly which tool to call without opening a schema.

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?

It names the alternatives and the condition that selects each: read_doc for the current version, doc_diff for what changed, this tool 'for the context a diff leaves out.' It also states the selection rule between the two time parameters (rev or at), giving explicit when-to-use routing rather than implied guidance.

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