Skip to main content
Glama
FileSystem MCP Server

FileSystem MCP Server

read_file

Read a local file's contents with optional encoding and byte range (offset and limit) to retrieve text or binary data.

Instructions

Canonical local file read (use instead of hela-nucleus terminal_cat). Read file content with optional encoding and range

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_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the file to read
limitNoMaximum number of bytes to read
offsetNoByte offset to start reading from
encodingNoFile encodingutf8

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It implies safe, partial reads via the range/encoding language, but says nothing about behavior on missing files, permission failures, undecodable bytes, truncation when limit is hit, or what shape the content comes back in (raw string vs base64 for binary encodings).

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?

Two compact sentences with the routing hint front-loaded and no filler. The second sentence largely paraphrases the tool name and parameters, but it does add the encoding/range scope economically.

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 4-parameter read tool with no output schema and no annotations, the definition covers purpose, the alternative it replaces, and the key read modes. The remaining gap is return-value shape and failure behavior, which matters more here because no output schema exists to document it.

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 schema already documents path, limit, offset, and encoding with an enum. The description only restates "optional encoding and range" without adding semantics like whether limit is bytes vs characters, whether offset is byte-aligned, or how binary encodings return data.

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?

"Canonical local file read" plus "Read file content with optional encoding and range" gives a specific verb (read) and resource (local file) with scope markers. It clearly differs from write_file/copy_file/delete_file by naming itself as the read path, though it does not disambiguate against read-adjacent siblings such as get_file_info or search_in_files.

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?

It explicitly routes the agent away from an alternative: "use instead of hela-nucleus terminal_cat," which is a real when-to-use instruction. It stops short of saying when to prefer this over in-repo readers like search_in_files or get_file_info, so the guidance is clear but incomplete.

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