Skip to main content
Glama
fs-mcp-server

fs-mcp-server

by qsrahman

Read Multiple Files

read_multiple_files
Read-onlyIdempotent

Read several files in one call instead of one at a time; results return under each path, and a failed read does not stop the others.

Instructions

Read several files in one call, instead of reading them one at a time; each is returned under its path, and a failed read does not stop the others. Output is capped at about 200,000 characters in total: a file that does not fit is cut, with the offset to continue from when you read it on its own.

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

Input Schema

NameRequiredDescriptionDefault
pathsYesPaths of the files to read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/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, yet the description still adds real value: per-file failure isolation ('a failed read does not stop the others'), a total output cap of ~200,000 characters, and truncation behavior with a continuation offset. The only minor gap is imprecision around the exact cap ('about') and result ordering.

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 the batch-read purpose front-loaded, followed by the truncation caveat. No filler and no repetition of schema or annotation content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter read tool with no output schema, the description covers what the agent needs: result keying, partial-failure tolerance, and the size cap with a recovery path. Nothing essential for a correct call is missing.

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% for the single `paths` array, so the schema already carries the parameter documentation. The description explains that results are keyed by path, which clarifies output shape more than parameter meaning, so baseline 3 applies.

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?

States a specific verb and resource (read several files) plus the batching rationale ('in one call, instead of reading them one at a time'), which directly separates it from the single-file read_file sibling without naming it.

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?

Gives clear selection guidance: use this for batch reads, and fall back to reading a file on its own with the returned offset when it exceeds the cap. It stops short of any explicit exclusion beyond the size case, but the routing logic is inferable.

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