Skip to main content
Glama

Read remote text file

read_file
Read-onlyIdempotent

Read text file contents from configured roots, displaying the beginning or a specified number of trailing lines for quick inspection.

Instructions

Read the beginning of a text file, or tail a requested number of lines, inside configured roots.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
maxBytesNo
tailLinesNo
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the agent knows it is safe. The description adds meaningful behavior beyond annotations: it supports reading from the beginning or tailing a specified number of lines, and it operates within configured roots, which aligns with openWorldHint=false. It does not mention return format or error behavior, but the core behavioral modes are disclosed.

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?

The description is a single sentence that front-loads the action ('Read') and packs both usage modes without waste. Every phrase earns its place; no filler.

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 simple read tool with readOnly/idempotent annotations, the description covers the primary behaviors (head/tail) and the root restriction. It lacks an explicit mention of return content or error handling, but given the tool's simplicity and the presence of a clear name and schema, it is reasonably complete.

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 has zero description coverage, so the description must compensate. It explains that tailLines controls the number of lines to tail, and that the tool reads from the beginning by default. However, it leaves maxBytes unexplained (its role in limiting the beginning read) and does not clarify the path format, so parameter semantics are only partially addressed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'Read' and identifies the resource ('remote text file') and key scope ('inside configured roots'). It distinguishes from siblings like write_file, search_files, and list_files by specifying both head and tail reading modes.

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 clearly implies when to use this tool (reading file contents within configured roots), which sets context. However, it does not explicitly name alternative tools like search_files for content searching or list_files for directory listing, nor does it state when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/exthnet/tcs_mcp_codex'

If you have feedback or need assistance with the MCP directory API, please join our Discord server