Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Read older file version

read_file_version
Read-onlyIdempotent

Read a specific older file version by version_id for inspection or recovery, paging through its bytes like read_file. Use it to restore or examine previous content when the current version is not wanted.

Instructions

Read one older version of a file (from list_file_versions), paged like read_file. Use when: inspecting or recovering an older version. Instead: read_file for the current version. Behavior: read-only. offset, encoding and max_bytes (at most 4 MiB) work as in read_file; each page reads the version from its start, so later pages cost more. Refuses secret files, also by their content. Backends without versions fail. Time limit: 15 s. Returns: as read_file: {content_b64 or text, size, truncated, replaced, offset, next_offset}.

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": {
      "version_id": "<version_id>"
    },
    "name": "read_file_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe file to read (absolute, or relative to the MCP root). Required unless path_b64 is given.
offsetNoByte offset to start at; pass the previous call's next_offset.
backendNoBackend id from list_backends; omit for the default.
encodingNobase64 (default): the exact bytes. text: decoded as UTF-8, as read_file.base64
path_b64Nopath as base64 of its raw bytes, for non-UTF-8 names; replaces path.
max_bytesNoMost bytes to return; 0 or omitted means the ceiling, 4194304 (4 MiB).
version_idYesThe version_id of one entry from list_file_versions for this path.

Output Schema

NameRequiredDescriptionDefault
sizeYesbytes read
textNothe text (encoding=text)
offsetNo
replacedNotext: undecodable bytes replaced
truncatedYes
content_b64Nothe bytes (encoding=base64)
next_offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the annotations: discloses that later pages cost more because each page reads from the version's start, that secret files are refused even by content, that versionless backends fail, and a 15 s time limit. These are non-obvious operational facts an agent cannot get from readOnlyHint/idempotentHint. It stops short of 5 only because failure modes are summarized rather than given concrete error 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?

Labeled sections (Use when / Instead / Behavior / Returns) with the core purpose front-loaded in the first clause. Every sentence carries a distinct fact; nothing is redundant with the title or the annotations.

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

Completeness5/5

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

For a 7-parameter read tool with a full output schema, the definition covers the selection criteria, behavioral constraints, limits, and even summarizes the return payload. An agent has everything needed to call it correctly and to know when to fall back to read_file.

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 real meaning: offset/encoding/max_bytes behave as in read_file, the 4 MiB ceiling, and the cost implication of paging from the start. That cost note is behavior the schema's plain 'byte offset' description does not convey.

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 one older version of a file') plus the provenance constraint (from list_file_versions) and the paging model ('paged like read_file'). It explicitly contrasts with the sibling read_file, so an agent can separate the two without opening either 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?

Provides an explicit 'Use when: inspecting or recovering an older version' plus a named alternative with its selecting condition ('read_file for the current version'). This is the when/when-not/alternative triad done compactly.

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