Skip to main content
Glama
finch-shell-mcp
by hlint

Read a file by bytes

fs_read
Read-only

Read up to 2 MB of file content from a specified byte offset in text, hex, or auto mode, with length and encoding controls and a short whole-file hash.

Instructions

Read from a byte offset. mode is text, hex, or auto. At most 2 MB per call. A failed decode does not fail the call. hash is the short hash of the whole file.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fs_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNomode
pathNopath
lengthNolength
offsetNooffset
encodingNoencoding
max_bytesNomax_bytes
include_bomNoinclude_bom

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

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 the description adds genuinely useful behavior: a 2 MB per-call cap, the three mode values, tolerance of decode failures, and the meaning of hash. It stops short of explaining offset-beyond-EOF behavior or error conditions, which would complete the picture.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, front-loaded with the core read behavior, with no filler. The final hash sentence is slightly cryptic in isolation but still carries information.

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 seven-parameter read tool with no output schema, the definition covers mode, size limits, decode resilience, and hash, but leaves encoding, include_bom, path requirements, and partial-read semantics undocumented. It is adequate but has clear gaps.

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% but the schema descriptions merely repeat parameter names, so the description's enumeration of mode values (text, hex, auto) and the 2 MB limit add real meaning. The hash sentence clarifies a non-obvious concept, though encoding, include_bom, and offset semantics remain unexplained.

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 read operation scoped to a byte offset, and the title clarifies it is file reading. It distinguishes itself from mutating siblings like fs_patch and fs_write, though it never explicitly names the file/path resource in the body.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no routing to alternatives such as fs_stat for metadata or fs_read for content. The 2 MB cap hints at paging but the agent must infer that behavior.

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