Skip to main content
Glama

batch_search

Run up to 10 read-only grep, find, and Git queries in one MCP round-trip to inspect code or repository state without repeated calls.

Instructions

Run up to 10 read-only queries (grep, find, git status/diff_stat/log) in a single MCP round-trip.

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": {
      "queries": "<queries>"
    },
    "name": "batch_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queriesYes
maxTotalCharsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the read-only safety profile and the 10-query cap, but says nothing about partial-failure behavior, result ordering/grouping, or how maxTotalChars truncation manifests in the response.

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?

One sentence, front-loaded with the action and the batch limit, with zero filler. Everything stated earns its place.

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

Completeness2/5

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

The tool has a nested per-query object with eleven fields, no annotations, and no output schema, yet the description addresses only the query kinds and the count limit. An agent still cannot tell how to construct a valid query object or interpret partial results from this definition alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and it largely does not. It only maps the kind enum values (grep/find/git, with the git modes) and the maxItems bound; rootDir, query vs pattern, isRegex, fileGlob, filesOnly, maxResults, contextLines, caseSensitive, and maxTotalChars are left entirely to the bare schema.

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 ('Run ... queries') plus the exact query families supported (grep, find, git status/diff_stat/log) and the batch cap of 10. It implicitly distinguishes itself from single-query siblings like grep_search and find_files by emphasizing the single round-trip, though it never names an alternative 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?

The phrase 'in a single MCP round-trip' implies when to reach for it (multiple independent read-only lookups), but there is no explicit when-to-use/when-not statement, no guidance on choosing between this and grep_search or find_files, and no note on whether queries execute in parallel or in order.

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