Skip to main content
Glama

find_code_batch

Run multiple symbol searches in one call to find code across repos, applying per-query overrides and returning results grouped by query.

Instructions

Multiple symbol searches in one call. Each query runs independently with optional repo, kind, and language overrides. Returns results grouped by query.

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

Input Schema

NameRequiredDescriptionDefault
repoNoFilter to a specific repository (as shown in list_repos)
queriesYesList of search queries to run
max_results_per_queryNoDefault max results per query (default: 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

B3.2/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. It discloses the key output shape ('results grouped by query') and that queries are independent, which is genuinely useful. It does not say whether the operation is read-only, how partial failures are handled if one query errors, or whether queries execute in parallel, which matter 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?

Three short sentences, front-loaded with the batch purpose and ending with the return shape. Little waste, though the middle sentence spends words on overrides that do not exist in the schema.

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?

For a 3-parameter tool with no annotations and no output schema, the definition covers purpose, independence, and grouping, but omits failure behavior, whether max_results_per_query is a cap or a default that can be exceeded, and the kind/language mention is unsupported by the schema.

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 coverage is 100%, so the baseline would be 3, but the description claims 'optional repo, kind, and language overrides' while the schema exposes no kind or language parameters. This misleads the agent into expecting per-query overrides that cannot be supplied, and the description adds nothing about max_results_per_query semantics beyond the 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 ('Multiple symbol searches in one call') and adds the batching scope, which is the distinguishing feature versus the singular find_code sibling. It does not name that sibling explicitly, so an agent must infer the batch-vs-single tradeoff rather than being told it.

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 description implies when to use it (several searches at once) but never states the condition that selects it over find_code, nor any exclusion such as 'prefer find_code for a single query'. Usage is inferable from 'one call' but not spelled out.

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