Skip to main content
Glama

layout.enum.member.add

Adds a named value to an existing enum data type in a Ghidra session, letting reverse-engineering workflows define enum members by name, value, and optional comment.

Instructions

Add a named value to an enum data type.

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>",
      "name": "<name>",
      "value": "<value>"
    },
    "name": "layout.enum.member.add"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
valueYes
commentNo
enum_nameNo
enum_pathNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/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 behavioral burden, and it says nothing about mutation of session state, whether duplicate names or values are rejected or overwritten, whether an existing enum must be located first, or what happens on failure. 'Add' only implies a write operation; none of the side effects or constraints are disclosed.

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?

The single sentence is front-loaded and contains no wasted words, but its brevity reflects under-specification rather than disciplined concision. There is no structure to help an agent scan requirements before calling.

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 six-parameter mutating tool with no annotations, no output schema, and no parameter descriptions, one sentence is not sufficient. An agent cannot determine which parameters to use to identify the target enum, nor what to expect after the call succeeds.

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

Parameters2/5

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

Schema description coverage is 0% across 6 parameters, and the description only implicitly maps 'named value' to name/value and 'enum data type' to enum_name/enum_path. It never explains the relationship or mutual exclusivity of enum_name versus enum_path, the meaning of comment, or what session_id identifies, leaving three required parameters semantically undocumented.

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 concrete verb and resource: 'Add a named value to an enum data type', which tells an agent exactly what operation is performed. It does not, however, contrast itself with adjacent siblings such as layout.enum.member.remove or layout.union.member.add, so the scope boundary is left to inference from the name alone.

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 versus alternatives, no preconditions (e.g. the enum must already exist via layout.enum.create), and no exclusions. The only usable cue is the tool name itself, which the description merely restates.

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