Skip to main content
Glama
Claude File Manager MCP

Claude File Manager MCP

by wafuv

Read a file

read_file

Reads a text file. An optional line range can be specified (1-based). Large files are truncated.

Instructions

Reads a text file. An optional line range can be specified (1-based). Large files are truncated.

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
pageNoFor PDF files: 1-based page number to read (default: all pages)
pathYesFile path
end_lineNoLast line (inclusive)
start_lineNoFirst line (1-based)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.1
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "For PDF files: 1-based page number to read (default: all pages)",
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. First observedv1.3.0

TDQS

B3.4/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 behavioral burden; it does disclose that large files are truncated, which is real information about the result shape that the agent could not get from the schema. It omits the truncation threshold, encoding assumptions, error behavior for missing or binary files, and says nothing about the PDF page parameter despite advertising only "text file" support.

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?

Three short sentences with zero filler: purpose first, then the optional range mechanism, then the truncation caveat. Every sentence carries information an agent needs.

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 four-parameter read tool with no annotations and no output schema, the description covers the essentials: what it reads, how to scope the read, and that results may be truncated. The main gap is that the schema supports PDF page reads while the description frames the tool as text-only.

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 all four parameters are already documented in the input schema, setting the baseline at 3. The description restates the 1-based line-range concept but adds no semantics for the page/PDF parameter and no interaction rules such as precedence between page and start_line/end_line.

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?

"Reads a text file" pairs a specific verb with a specific resource, and the parenthetical about an optional 1-based line range narrows the scope further. It does not name the closest alternative (read_image for binaries, file_info for metadata), so the agent must infer the boundary from the word "text" alone.

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?

The description explains how to request a partial read (line range, 1-based) but never says when to choose this tool over read_image, file_info, or search_content, and states no exclusions or prerequisites. Usage is implied by the purpose sentence only.

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