Skip to main content
Glama

Read several files

files_readMany
Read-onlyIdempotent

Read SEVERAL files in one call. Pair it with files.tree: look at the layout, then pull the handful of files you actually need in a single round instead of one call each. Binary files are reported, never returned as text.

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

Input Schema

NameRequiredDescriptionDefault
idYes
pathsYesAbsolute paths inside the volume, as shown by files.tree.
maxBytesNoTotal budget across all files. Default 120000. Files past it come back unread.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds behavior the annotations cannot convey: binary files are reported but never returned as text, and the byte budget causes files past it to come back unread, which changes how an agent must interpret results.

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?

Three short sentences, front-loaded with the core capability, then the recommended workflow, then the binary caveat. Every sentence carries information an agent needs and there is 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 read-only batch tool with no output schema, the description covers the essential call-site concerns: sequencing with files.tree, batching, binary handling and budget truncation. Only the semantics of the required `id` volume parameter and result shape are left unaddressed.

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 67%, with paths and maxBytes already documented in the schema (including the default and the "unread" consequence). The description adds no further parameter detail and says nothing about the required `id` volume parameter, so it only marginally exceeds the schema baseline.

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?

"Read SEVERAL files in one call" gives a specific verb and resource and makes the batch-vs-single distinction explicit through "in one call" / "one call each." It stops short of naming files_read as the single-file alternative, so the differentiation is implied rather than stated.

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 prescribes a concrete workflow: use files.tree first to inspect layout, then batch-read only the handful of files actually needed in one round. That is clear when-to-use guidance, but there is no exclusion such as "use files_read when you need exactly one file."

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