Skip to main content
Glama

Read file chunk

fs_read_chunk
Read-only

Read any byte range from text or binary files, enabling large-file access in chunks without loading the entire file into memory.

Instructions

Read an arbitrary byte range from a text or binary file. Repeated calls can read files of any size without loading the whole file into memory.

Input Schema

NameRequiredDescriptionDefault
fileYes
offsetNo
deviceIdNo
encodingNoutf8
maxBytesNo
deviceNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavioral context about memory behavior and repeat-call chunking, though it omits bounds semantics and any concurrency/rate notes.

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 tight sentences, front-loaded with the core capability and followed by the use case rationale. No filler or redundancy.

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?

For a read-only tool whose annotations cover safety, the description is serviceable but thin against a 6-parameter schema at 0% coverage. The device-selection parameters and encoding semantics remain unexplained, so an agent could call it ambiguously for cross-device reads.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for all six parameters. It loosely implies offset/maxBytes ('byte range') and encoding ('text or binary'), but says nothing about deviceId, deviceName, the utf8/base64 enum meanings, or the unusual negative offset bounds - leaving half the parameters undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Read an arbitrary byte range from a text or binary file'), which clearly frames this as a partial/chunked read rather than a whole-file read. It implicitly distinguishes itself from full-read siblings like read_file, though it never names them explicitly.

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?

Usage is only implied: 'Repeated calls can read files of any size without loading the whole file into memory' hints this is for large files, but it never states when to prefer this over read_file or fs_read_many, nor any exclusions.

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

Deploy Server

Other Tools