Skip to main content
Glama

layout.struct.field.rename

Rename a field in a Ghidra structure by supplying the session, target structure, and new field name.

Instructions

Rename a structure field.

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>",
      "new_name": "<new_name>"
    },
    "name": "layout.struct.field.rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNo
ordinalNo
new_nameYes
old_nameNo
session_idYes
struct_nameNo
struct_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.1/5.0
Behavior2/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 and delivers almost none of it. "Rename" implies a mutation, but nothing is said about whether offsets/ordinals are preserved, whether references to the old field name are updated, whether the operation is reversible, or what permissions/session state are needed. This is the same disclosure level that earned a 2 for a comparable unannotated mutation tool.

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 that is front-loaded and free of padding, so it is not verbose. But its brevity comes from omission rather than discipline; the sentence is too thin to earn its place against a 7-parameter schema.

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

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Seven parameters, zero schema descriptions, no annotations, and no output schema mean the description is the only explanatory artifact — and it provides one clause. An agent cannot reliably determine how to address the target field or what side effects to expect.

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?

Schema description coverage is 0% and the description mentions no parameters at all. With 7 parameters, it never explains how a field is identified — old_name versus offset versus ordinal versus struct_path/struct_name — which is the single most important semantic question for this call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb plus resource ("Rename a structure field"), so the basic operation is understandable. However, it adds essentially nothing beyond the tool name and does not distinguish this from siblings like layout.struct.field.replace, layout.struct.field.add, or the various symbol/function/type rename tools. Purpose is legible but not sharpened.

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 guidance on when to use this tool versus layout.struct.field.replace (which could also change a name) or the other rename tools. No prerequisites, no session requirement, and no exclusions are stated anywhere in the description.

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