Skip to main content
Glama

Read a file

read_file
Read-onlyIdempotent

Read a file (up to 1 MB). Binary files come back base64. Read only the files the task needs; do not read or return payment card numbers, government ID numbers, health or biometric data, private keys or passwords from a file, and never ask the user for them.

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
serverNoServer name or id. Optional when the account has one server.

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?

The annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds behavior the annotations cannot: a 1 MB size ceiling, the fact that binary content is returned base64-encoded, and a firm data-handling prohibition on sensitive fields. It still does not describe failure modes for a missing path or how the 1 MB limit is enforced (truncation vs error).

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 sentences, front-loaded with the operation and its size limit. The second sentence is long but carries the compliance constraint that materially affects what the agent should read, so it earns its place; the phrasing could be tightened slightly.

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?

With no output schema, the description does well to state the base64 behavior for binary files and the size cap. However, for a file-reading tool it omits the path resolution model and any indication of error behavior, which are the details an agent most needs before calling it.

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 description coverage is 50%: 'server' is documented but 'path' is a bare string with no description, and the tool description says nothing about path format, whether it is relative to a server root, or how it interacts with the optional server parameter. With half the parameters undocumented, the description should compensate but does not.

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 opens with a specific verb and resource ('Read a file') and immediately bounds the scope with a 1 MB cap, which lets an agent distinguish this from write_file and content_get. It does not explicitly name any sibling or state what makes it different from other read tools, so it falls short of a 5.

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?

'Read only the files the task needs' is a real usage constraint, but it is about scope discipline rather than when to choose this tool over alternatives. There is no guidance on when not to use it (e.g. large files, non-text content) beyond the implicit 1 MB limit, and no named alternative for cases this tool does not fit.

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