Skip to main content
Glama

Read Many Files

read_many_files
Read-onlyIdempotent

Reads multiple text files in a single call and returns per-file errors instead of failing the whole batch.

Instructions

Read several text files in one round-trip. Errors are reported per file, not raised.

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_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYesUp to 50 file paths to read in one call.
max_chars_eachNoCut each file after this many characters.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive, so the safety profile is covered; the description still contributes the important detail that failures are reported per file rather than raised, which changes how an agent must handle partial results. It stops short of noting encoding, binary-file handling, or behavior for nonexistent paths.

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 tight sentences with no filler, and the batch scope is front-loaded before the error-behavior caveat.

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?

Output schema exists so return shape needn't be explained, and the partial-failure semantics are covered. Minor gap: nothing is said about how unreadable or missing files appear in the per-file error report, which an agent would want before relying on batching.

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%, so the 50-path cap and per-file character truncation are already documented in the schema; the description adds no additional meaning about paths or max_chars_each. Baseline 3 applies since the schema does the work.

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?

States a specific verb and resource ('Read several text files') plus the defining scope trait ('in one round-trip'), which separates it from the single-file sibling read_file without naming it. Slightly short of 5 because it never explicitly contrasts with read_file by name.

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 efficiency rationale ('one round-trip') implies you should batch reads rather than loop over read_file, but no when-to-use or when-not condition is stated, and no prerequisite is given. Usage must be inferred rather than read.

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