Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Batch Read Multiple Files or Line Ranges

fs_batch_read

Read multiple files or specific line ranges in one concurrent call to reduce repeated AI read/write round trips.

Instructions

在单次调用中并发读取多个文件或指定行区间,显著减少 AI 多次读写往返开销。

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": "fs_batch_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes要批量读取的文件清单(最多 30 个)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses only that reads are concurrent and cheaper, but says nothing about what happens when one path is missing or unreadable, whether the whole call fails, how results are ordered or mapped to inputs, or whether reads require any permission — significant gaps for a batch tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single well-formed sentence that front-loads the concurrency scope and then the benefit. Nothing is redundant, though the brevity leaves no room for the failure-mode context a no-annotation tool needs.

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?

The tool is conceptually simple and the schema fully documents its parameters, so the description is close to sufficient. But with no annotations and no output schema, the absence of partial-failure and result-shape information leaves real gaps for an agent designing a batch call.

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 100% and there is effectively one top-level parameter (an items array with path/startLine/endLine/withLineNumbers documented in the schema). The description mentions files and line ranges, echoing the schema without adding format, ordering, or line-range conflict rules, so baseline 3 applies.

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?

The description gives a specific verb and resource ('并发读取多个文件或指定行区间' — concurrently read multiple files or specified line ranges) and states the scope of a single call. It implicitly differentiates itself from single-file siblings like fs_read_file/fs_read_lines by emphasizing multiple files or ranges, but it never names those alternatives explicitly.

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?

Usage is implied: batch-read when you would otherwise issue several reads, justified by reduced round-trip overhead. There is no explicit when-not guidance (e.g. use fs_read_file for a single file, or fs_read_tail for tailing) and no prerequisites, so an agent must infer the routing.

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