Skip to main content
Glama

read_text_page

Reads one page of a large UTF-8 text file by byte offset (up to 65536 bytes) within allowed read roots. Use the returned cursor to continue when the whole file is too large to load at once.

Instructions

Read one page of a large UTF-8 text file by byte offset (up to 65536 bytes per page) inside the configured Owner read roots. Use when a file is too large for read_text_file and you need to walk it from the start or from a known offset; continue with the returned byte cursor instead of guessing offsets. For the end of a file (logs, growing files) use read_text_chunk instead. Read-only; no approval window.

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": "read_text_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the target within the already-configured Owner read/edit roots; path alone grants no access.
offsetNoByte offset in UTF-8 file, 0 to 4194304; default 0. Use continuation offset.
max_bytesNoMaximum UTF-8 bytes per page, 1 to 65536; default 16384.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does state the safety profile ('Read-only; no approval window'), the access constraint (configured Owner read roots, path alone grants no access), and the pagination contract (continue from the returned byte cursor, don't guess). It stops short of error behavior, e.g. what happens when offset exceeds EOF or when a page boundary splits a multi-byte UTF-8 character.

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 sentences, front-loaded with the core operation, then selection guidance, then the safety note. Every clause carries information — size cap, root scope, cursor discipline, sibling routing — and none is repeated.

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 3-parameter read tool with a full output schema, the description covers scope, sizing, pagination and safety adequately; return format needn't be explained. The remaining gap is edge-case behavior at EOF and UTF-8 character boundaries, which matters for an offset-based pager that agents can easily drive out of range.

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 the schema already documents path, offset (0 to 4194304, default 0) and max_bytes (1 to 65536, default 16384). The only added meaning is procedural: offsets should come from the returned cursor rather than being guessed, which the schema already gestures at with 'Use continuation offset.' 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 one page of a large UTF-8 text file by byte offset'), plus the page-size ceiling and the access boundary ('inside the configured Owner read roots'). It distinguishes itself from read_text_file (whole-file read) and read_text_chunk (tail reads) 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?

Gives an explicit triggering condition ('when a file is too large for read_text_file'), a walking strategy ('from the start or from a known offset'), and an explicit exclusion with a named alternative ('For the end of a file (logs, growing files) use read_text_chunk instead'). Nothing about tool selection is left to inference.

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