Skip to main content
Glama
acartine
by acartine

read_file_chunk

Read paginated data from a spilled file (stdout or stderr) using a cursor and byte limit to safely stream contents.

Instructions

Reads paginated data from a spilled file (stdout or stderr). Accepts cursor and limit_bytes to safely stream contents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriYesURI of the spilled file (e.g., 'mcp://tmp/exec-abc123.out' or 'mcp://tmp/exec-abc123.err')
cursorNoPosition marker indicating where to start reading from the file.
limit_bytesNoMaximum bytes to read
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It clearly indicates a non-destructive read operation with pagination and streaming. While it does not detail error handling or edge cases, it adequately discloses the core 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?

Two concise sentences that front-load the core purpose. No redundant or extraneous information. Every word serves a purpose.

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

Completeness3/5

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

The description explains input parameters and general function but does not describe output format or behavior (e.g., how data is returned, whether pagination state is provided). Given no output schema, this is a moderate gap.

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%, so the baseline is 3. The description briefly mentions 'cursor and limit_bytes' but adds no significant meaning beyond the schema's detailed definitions (e.g., not explaining cursor format or limit_bytes range).

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 clearly states 'Reads paginated data from a spilled file (stdout or stderr)', specifying the action and resource. It distinguishes from sibling tools (shell_exec, shell_info) by focusing on file reading rather than execution or info retrieval.

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

Usage Guidelines3/5

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

The description implies usage for streaming large file contents safely but does not explicitly state when to use this tool over siblings or provide exclusions. The phrase 'safely stream contents' hints at context but lacks clear guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/acartine/shemcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server