Skip to main content
Glama

ida_rename

Renames functions, globals, or fields by address or existing name in IDA Pro and updates the database; call ida_save to persist changes.

Instructions

Rename an address (function, global, field). Writes to the database; call ida_save to persist.

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": {
      "target": "<target>",
      "name": "<name>"
    },
    "name": "ida_rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
targetYesAddress or name: '0x401000', 'sub_401000', a defined name, 'libUE4.so+0x1234', or a unique part of a function name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose the two most important facts: this is a write, and the change lives only in memory until ida_save. It omits whether renames propagate to cross-references, whether an existing name causes an error or overwrite, and what the call returns, which matters for a mutation tool with zero annotation coverage.

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?

Two sentences, both front-loaded with the essential action first and the persistence caveat second. Nothing is wasted and the write warning is not buried.

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 2-parameter mutation tool with no output schema and no annotations, the definition covers the action and the save lifecycle but leaves error conditions, return value, and reference-propagation behavior unspecified — gaps an agent would hit on first use.

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 coverage is 50% — the target parameter is well documented in the schema, but 'name' is bare. The description adds the kinds of symbols that can be renamed, which partly compensates, but it says nothing about new-name format constraints (valid identifier characters, length, whether it can collide).

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 (rename) plus the resource types it operates on (function, global, field) and the input form (address). This is clearly distinguishable from siblings like ida_comment or ida_set_type, which modify different artifacts.

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?

Offers forward workflow guidance — call ida_save to persist — which is genuinely useful sequencing. However, it gives no when-not-to-use guidance (e.g., preferring ida_set_type or ida_comment for other modifications) and no note on ambiguity when a name matches multiple symbols.

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