Skip to main content
Glama

Read Multiple Files

read_many
Read-onlyIdempotent

Read multiple text files at once with content and metadata. Specify files, line ranges, or head/tail to extract specific portions efficiently.

Instructions

Read multiple text files in one request with contents and metadata. For a single file, use read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYesFiles to read. e.g. ["src/index.ts"]
headNoRead first N lines of each file
tailNoRead last N lines of each file
startLineNoStart line (1-based, inclusive) per file. Defaults to 1 when endLine is set.
endLineNoEnd line (1-based, inclusive) per file. Defaults to last line when startLine is set.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
resultsNo
summaryNo
Behavior3/5

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

Annotations already declare readOnly, idempotent, and non-destructive behavior. The description adds that it returns contents and metadata, but does not clarify error handling for missing files.

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?

Two sentences, no redundancy, and the main purpose is front-loaded.

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?

Given high schema coverage, output schema, and safe annotations, the description is complete for its purpose. Could mention error behavior, but not critical.

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 100% with descriptions for all parameters. The description summarizes that it returns contents and metadata, but does not significantly add beyond the schema.

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?

Clearly specifies reading multiple text files with contents and metadata, and distinguishes from the sibling 'read' tool for single files.

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?

Provides explicit guidance to use 'read' for single files, but lacks context on when to prefer this over other related tools like 'grep' or 'find'.

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/j0hanz/filesystem-mcp'

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