Skip to main content
Glama

Read a file

read_file
Read-only

Read a text file from the user's computer.

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
pathYes
deviceNoDevice name. Optional when the account has only one online device.
max_bytesNoDefault 200000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/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 the useful constraint that this reads *text* files (implying no binary support) from the user's machine, but says nothing about encoding, truncation, or how the 200000-byte default behaves on large files.

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?

A single front-loaded sentence with no filler. It is efficient, though arguably under-specified rather than maximally concise given the tool's device/file complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Wait—reconsidering: with no output schema, a read tool with three parameters and an important truncation default (200000 bytes) should ideally say what is returned or how oversized files are handled. 3 - Complete enough on what it does, but for a read tool with no output schema it omits return format and truncation behavior, which an agent calling it on a large file would want to know.

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 coverage is a moderate 67%: device and max_bytes carry inline descriptions, but path has none (though its meaning is self-evident). The description adds no parameter meaning at all, so it neither compensates for the path gap nor enriches the documented params.

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?

Clear verb+resource ('Read a text file') with a scope qualifier ('from the user's computer') that implies remote-device access. However, it does not distinguish itself from siblings like read_multiple_files or read_process_output, so an agent gets no help disambiguating between the read-family tools.

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?

No when-to-use guidance whatsoever. Nothing tells the agent when to pick read_file over read_multiple_files, when to use get_file_info, or that device may need specifying. The relationship to the many sibling read/search tools is left entirely to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources