Skip to main content
Glama

Read a file

read_file
Read-onlyIdempotent

Read a bounded UTF-8 text file in a locally permitted folder. URLs, PDF/Office parsing and binary formats are unavailable.

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
lengthNo
offsetNo
steerlatchDeviceNoOptional: name or deviceId of the computer that runs this action (from operatorlane_list_devices). Recommended when several computers are online or several conversations work at once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/non-open-world, so the safety profile is covered; the description adds real context on top: the file must be UTF-8 text inside a locally permitted folder, and remote URLs and parsed document formats will not work. It still omits what happens when the read is truncated or fails, and never explains the unusual negative-capable offset, so it is helpful but not complete.

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 short sentences, no padding, with the format/scope constraints front-loaded. "Bounded" is slightly vague but it is not wasted space.

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 simple read-only tool with rich annotations and no output schema, the format and location constraints are adequate, but the pagination parameters (length/offset) — which determine whether an agent can read a whole file — are left entirely undocumented.

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 coverage is only 25% (just steerlatchDevice is documented), so the description carries most of the burden — yet it explains nothing about length or offset, including why offset may be negative, which is the least intuitive part of the schema. "Bounded" vaguely gestures at the 2000-character cap but gives no usable meaning.

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?

A specific verb plus resource ("Read a ... UTF-8 text file") with an explicit scope constraint (local permitted folder) and an explicit exclusion list for unsupported inputs. It does not name read_multiple_files or get_file_info, so the boundary with siblings has to be inferred from those names alone.

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?

The description says what inputs are out of scope (URLs, PDF/Office, binary), which is useful negative guidance, but it never states when to choose this tool over read_multiple_files or get_file_info, and no prerequisites or alternatives are named.

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