Skip to main content
Glama

read_many_text_files

Reads up to eight small UTF-8 text files in one call so you get the gist of several config or source files at once instead of opening them one by one.

Instructions

Read up to eight existing UTF-8 text files in a single call, each capped at 8192 bytes, inside the configured Owner read roots. Use when you need the gist of several small files at once (for example a set of config or source files) and one call is better than many. Each file's cap is smaller than read_text_file's, so for one file, or for any file you need in full, use read_text_file instead. Read-only; no approval window.

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": {
      "paths": "<paths>"
    },
    "name": "read_many_text_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYesOne to eight distinct existing file paths in approved read roots.
max_bytes_per_fileNoPer-file output byte cap, 1 to 8192; default 8192.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the batch size limit, the per-file byte cap, the UTF-8 and Owner-root restrictions, and that it is read-only with no approval window. The main omitted behaviors are what happens when a path is missing, not UTF-8, or truncated at the cap, and whether results come back in the requested order.

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?

Four short sentences, front-loaded with the capability and its limits, then the when-to-use, then the sibling comparison, then the safety note. The byte cap is mentioned twice, but the second mention reframes it as a reason to prefer the sibling rather than repeating the number.

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?

An output schema exists, so return values need not be explained, and the description covers capability, limits, routing, and permission posture for a two-parameter read tool. It could go slightly further on partial-failure behavior across the batch, which matters precisely because eight files can fail independently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it states the hard upper bound (8 paths, 8192 bytes) and, crucially, that this cap is smaller than read_text_file's, which explains why paths or content may be truncated here but not there. It does not explain the max_bytes_per_file knob's tradeoffs beyond the schema's own range.

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 gives a specific verb ('Read') and resource ('up to eight existing UTF-8 text files in a single call') with explicit scope limits (8 files, 8192 bytes each, Owner read roots). It also distinguishes itself from read_text_file, so an agent can tell the two apart without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states exactly when to use it ('gist of several small files at once... one call is better than many') and exactly when not to ('for one file, or for any file you need in full, use read_text_file instead'). The alternative and the condition selecting it are both named explicitly.

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