Skip to main content
Glama

batch_plan_rename

Plan multiple renames in one call by mapping old names to new names, then return classified edit locations for each.

Instructions

Plan renames for multiple strings in one call. Takes a mapping of old_name -> new_name pairs and returns classified edit locations for each. More efficient than calling plan_rename repeatedly.

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": {
      "repo": "<repo>",
      "renames": "<renames>"
    },
    "name": "batch_plan_rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name (as shown in list_repos)
renamesYesMapping of old names to new names, e.g. {"get_symbol": "read_symbol", "get_toc": "doc_toc"}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

A4/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 disclosure burden. It implies a read-only planning operation by using 'plan' and by describing returned 'classified edit locations' rather than applied edits, which is useful, but it never states explicitly that no files are modified, what happens on ambiguous matches, or any size limits on the batch.

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?

Three short sentences, no filler, with scope and input shape front-loaded and the sibling comparison last. Every sentence contributes new information.

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

Completeness4/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 appropriately characterizes the return value as 'classified edit locations for each' input pair. It could go one step further by indicating what an agent should do with those locations, but for a two-parameter planning tool this is close to complete.

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 both parameters carry descriptions and examples, so the schema already does the heavy lifting. The description adds only the conceptual framing of renames as old_name -> new_name pairs, which the schema example already conveys.

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?

States a specific verb and resource ('plan renames for multiple strings'), the input shape ('mapping of old_name -> new_name pairs'), and the output ('classified edit locations'). The closing sentence distinguishes it from the sibling plan_rename by scope, so an agent can choose without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Explicitly names the alternative (plan_rename) and the condition that favors this tool (multiple strings in one call, avoids repeated calls). It stops short of stating when NOT to use it — e.g. a single rename or a case where batching loses per-call control.

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