Skip to main content
Glama

rename_everywhere

Finds every code location affected by renaming a symbol and returns exact file, line, old text, and new text edits across the import graph.

Instructions

Finds all edit locations needed to rename a symbol. Returns exact file, line, old_text, and new_text for each occurrence. Uses blast radius to find affected files across the import graph.

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": {
      "symbol_id": "<symbol_id>",
      "new_name": "<new_name>"
    },
    "name": "rename_everywhere"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_nameYesDesired new name (must be a valid identifier)
symbol_idYesSymbol identifier (from search_symbols or get_file_outline results)

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?

No annotations are supplied, so the description carries the full behavioral burden. It does valuable work by making clear the tool only 'finds' and 'returns' edit locations rather than applying the rename, and it discloses its mechanism (the blast radius across the import graph). However, it does not state whether it is guaranteed read-only, whether it can be large or slow on big graphs, or what it does with ambiguous symbols.

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 purpose, then the return fields, then the mechanism. Almost nothing is wasted, though 'for each occurrence' slightly repeats 'all edit locations' from the first sentence.

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?

For a two-parameter discovery tool with no output schema and no annotations, the description covers purpose, output fields, and the mechanism that determines which files are affected. What remains missing is how this relates to the actual rename-application tools and any limits on the scope of analysis.

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%, so symbol_id and new_name are already documented, including the source of symbol_id and the constraint that new_name is a valid identifier. The description adds no format, syntax, or validation detail beyond the schema, so the baseline of 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: it finds all edit locations needed to rename a symbol and returns per-occurrence edit data. It is clear what the tool produces, though it never names the related plan_rename or batch_plan_rename siblings, so differentiation depends on the agent inferring it from the names.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no mention of alternatives, even though similarly named siblings such as plan_rename and batch_plan_rename exist. The agent must infer that this is the discovery step before an actual rename, with no statement about what to do with the results.

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