Skip to main content
Glama

Read an app file

file_read
Read-only

Read a byte range from an app-stored file by specifying offset and length. Retrieve base64-encoded data windows and reassemble them to reconstruct the full file, verifying integrity with its SHA-256 hash.

Instructions

Read one file an app has stored, as a WINDOW of its bytes: offset/length select it, data_base64 carries exactly that window, next_offset continues (same window grammar as get_app, and for the same reason). Reassemble by concatenating decoded windows; sha256 is the WHOLE file's hash, so reassembly is checkable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appYes
pathYesthe file's logical name
lengthNomax bytes for this window (default fits the result budget)
offsetNobyte offset to read from (default 0)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
appYes
eotNo
mimeYes
pathYes
sizeYes
totalNo
offsetNo
sha256Yes
versionYes
returnedNo
data_base64No
next_offsetNo
Behavior5/5

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

The description goes beyond the readOnlyHint annotation by explaining the windowing behavior (offset/length, data_base64, next_offset) and the whole-file sha256 hash for reassembly verification. This provides deep insight into the tool's operational 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?

The description is compact but information-dense, efficiently conveying the windowed reading model and reassembly process in a few sentences. The reference to get_app avoids unnecessary repetition while maintaining clarity.

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?

The description covers the essential aspects of windowed reading, including offset/length, data_base64, next_offset, and the whole-file hash for validation. Given the output schema exists and the complexity is moderate, the description is sufficiently complete to guide an agent without ambiguity.

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?

While the schema already describes length and offset, the description adds the crucial windowing semantics ('offset/length select it', 'data_base64 carries exactly that window') that explain how these parameters interact. It also clarifies the meaning of the whole-file hash, adding value beyond the schema's basic parameter descriptions.

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 the tool's function with a specific verb+resource: 'Read one file an app has stored'. It also details the windowed byte access mechanism, distinguishing it from other app-related tools like get_app and file_write.

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

Usage Guidelines4/5

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

The description indicates the tool is for reading file content and mentions 'same window grammar as get_app' to signal related usage, but it does not explicitly enumerate when to use this tool over siblings. The context is clear enough for a tool specifically named 'file_read'.

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/2nd1st/open-mcp-apps'

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