Skip to main content
Glama

read_multiple_files

Read-only

Read up to 20 files in one call, each under its own path header with its own error if it fails. Same formats as read_file; offset/length apply to every file.

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
pathsYes
lengthNo
offsetNo
deviceIdNoComputer name or id
maxBytesNo
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
    • removedInput schema / properties / paths / maxItems
      Removed value: -20
    • removedInput schema / properties / paths / minItems
      Removed value: -1
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Changed1 schema field changed
    • addedInput schema / properties / workSessionId
      Added value: +{
      +  "description": "Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  4. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive, closed-world behavior. The description adds genuinely non-obvious traits beyond that: the 20-file ceiling and per-file error isolation so one bad path doesn't sink the call. It omits what happens when more than 20 paths are supplied (error vs truncation) and how maxBytes affects output.

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, front-loaded with the batch limit and followed by the failure model and parameter scoping. No filler and nothing repeated from the annotations.

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

Completeness3/5

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

With no output schema, the description does well to mention path headers and per-file errors, but for a six-parameter tool it leaves maxBytes, deviceId, and workSessionId unaddressed. The omissions matter because maxBytes plausibly changes what is returned per file.

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 description coverage is 33%, so the schema leaves most of the six parameters bare. The description compensates for the key ambiguity by stating offset/length apply uniformly to every file, but says nothing about maxBytes, deviceId, or workSessionId, leaving three undocumented params unexplained.

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?

"Read up to 20 files in one call" names a specific verb and resource plus the batch scope that separates it from read_file, and "each under its own path header with its own error if it fails" describes the result shape. An agent can tell this is the batch counterpart to read_file without opening the schema.

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 batch-vs-single distinction relative to read_file is only implied by "up to 20 files in one call." Nothing states when the batch tool is preferable, whether there is a cost penalty for passing a single path, or any prerequisite for paths.

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