Skip to main content
Glama

layout.union.member.add

Adds a member to a union data type, enabling reverse engineers to define overlapping fields for binary analysis.

Instructions

Add a member to a union 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>",
      "data_type": "<data_type>"
    },
    "name": "layout.union.member.add"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthNo
commentNo
data_typeYes
field_nameNo
session_idYes
union_nameNo
union_pathNo

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 are supplied, so the description carries the full behavioral burden. "Add" implies a mutation, but the description does not say what permissions are needed, whether adding a duplicate member is rejected, whether the union is created implicitly, or what the call returns.

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 front-loaded sentence with zero wasted words, but the brevity stems from under-specification rather than disciplined editing. There is no structure to speak of beyond the one clause.

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?

A seven-parameter mutation tool with no annotations, no output schema, and 0% schema coverage gets only a nine-word description. Nothing an agent needs to call it correctly — addressing mode, required preconditions, parameter meanings — is present.

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% across seven parameters, and the description explains none of them. Critically, it gives no hint about how union_name and union_path relate (alternate addressing modes?), nor what data_type, field_name, length, or comment mean in this context.

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: "Add a member to a union data type." An agent can distinguish it from layout.union.member.remove by the verb, but the description does not explicitly differentiate it from the similarly-named layout.enum.member.add, so sibling routing relies partly on the tool name.

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 when-to-use guidance, no prerequisites (e.g., that the union must already exist, presumably via layout.union.create), and no mention of when to prefer this over other member-adding siblings. The agent must infer all usage context.

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