Skip to main content
Glama

function.rename

Rename an existing function in a Ghidra session using its start address and new name to make reverse-engineered code easier to identify and document.

Instructions

Rename an existing function.

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": {
      "session_id": "<session_id>",
      "function_start": "<function_start>",
      "name": "<name>"
    },
    "name": "function.rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
session_idYes
function_startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it discloses almost nothing. It does not say whether the rename updates cross-references and callers, whether it can collide with an existing name, whether it is reversible, or what errors occur if the function does not exist. The single word "existing" is the only behavioral hint provided.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with zero filler and the object of the verb front-loaded, which is structurally sound. However, the brevity here reflects under-specification rather than disciplined conciseness, since substantive information is simply absent.

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?

For a mutation tool with three required parameters, no annotations, no output schema, and no schema descriptions, the description is far too thin to let an agent invoke it correctly. Nothing explains the identity or format of function_start, and nothing describes the result of a successful rename.

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

Parameters1/5

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

All three parameters (session_id, function_start, name) are required yet schema description coverage is 0%, and the description adds no parameter meaning at all. In particular the oneOf integer/string type of function_start is left unexplained, so an agent cannot tell whether it expects an address, an index, or a name. With zero compensation for a total coverage gap, this is the weakest dimension.

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 ("Rename" + "function") and names the required target, which lets an agent separate it from symbol.rename, type.rename, or variable.rename by resource type. It stops short of distinguishing it from the closest siblings such as decomp.global.rename or layout.struct.field.rename, so it is clear but not fully differentiated.

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?

No when-to-use guidance, no preconditions, and no alternatives are named. The description does not say how this differs from decomp.global.rename or the other rename tools in the catalog, so the agent must infer selection from the tool name alone.

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

Deploy Server

Other Tools