Skip to main content
Glama

batch_read

Read multiple files or specific line ranges in one round-trip, keeping context lean with item and character caps.

Instructions

Read multiple files or specific line ranges in a single MCP round-trip (up to 10 items, capped at 14000 chars total to keep context lean).

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": {
      "items": "<items>"
    },
    "name": "batch_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesList of files/ranges to read
maxTotalCharsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two real behavioral limits: a 10-item cap and a 14000-char total cap. It does not say what happens when the cap is exceeded (truncation vs. error), how per-file failures are reported, or whether the read is non-destructive — gaps that matter for a tool with zero annotation coverage.

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?

A single front-loaded sentence with the core action first and limits in a compact parenthetical; there is no filler and nothing an agent must scan past to reach the key constraint.

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?

There is no output schema, so the description should explain the return shape — whether results are keyed per file, concatenated, or truncated at the cap — and it does not. Given the tool's batching complexity and partial parameter coverage, the definition is workable but leaves the agent guessing about result structure and limit-exceeded behavior.

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 50%: filePath is documented but startLine, endLine, and maxTotalChars are not. The description partially compensates by naming 'specific line ranges' and the 14000-char cap, but it largely restates schema constraints (maxItems 10, default 14000) without explaining semantics such as default startLine=1, inclusive/exclusive line bounds, or that maxTotalChars is adjustable up to 24000.

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 multiple files or specific line ranges') and adds the batching scope ('in a single MCP round-trip'), which distinguishes it from the single-file read_file sibling without naming it. An agent can tell this is the multi-file variant, though the differentiation is implied by 'multiple' 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 Guidelines3/5

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

The phrase 'in a single MCP round-trip ... to keep context lean' implies the usage context (batch reads to save round-trips), but there is no explicit when-to-use versus read_file, no when-not guidance, and no advice on splitting work when the 10-item or 14000-char limits are hit.

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