Skip to main content
Glama

layout.struct.fill_from_decompiler

Build or extend a structure from decompiler-observed variable usage, turning inferred field accesses into a layout for analysis.

Instructions

Build or extend a structure from decompiler-observed usage of a variable.

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": "layout.struct.fill_from_decompiler"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
ordinalNo
storageNo
session_idYes
timeout_secsNo
function_startYes
create_new_structureNo
create_class_if_neededNo

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?

With no annotations at all, the description carries the full behavioral burden and mostly fails it: it does not say whether an existing structure is mutated in place, what happens when the variable's inferred layout conflicts with the current one, whether fields are added or overwritten, or what permissions/state are required. Only the vague 'extend' hints at mutation semantics.

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 free of filler, so there is nothing to trim. However, brevity here reads as under-specification rather than discipline, given the tool's complexity.

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?

For an 8-parameter mutation tool with zero annotation coverage, no output schema, and no parameter documentation, one sentence is wholly insufficient. An agent cannot safely decide between create_new_structure and create_class_if_needed or predict side effects on existing layouts.

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 8 parameters, and the description explains none of them — not function_start's integer-or-string form, not ordinal/storage, not the meaning of create_new_structure versus create_class_if_needed, and not timeout_secs. The two boolean flags in particular govern destructive-vs-additive behavior and are left entirely opaque.

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 states a specific verb pair ('Build or extend') applied to a concrete resource ('a structure'), and names the input source ('decompiler-observed usage of a variable'), which distinguishes it from a plain layout.struct.create. It stops short of explicitly naming siblings, but the operation is identifiable without opening the schema.

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 statement of when to prefer this over layout.struct.create or layout.struct.field.add, no prerequisites (e.g. must the decompiler have run, must the function be analyzed), and no exclusions. 'Build or extend' implies a context but leaves the agent to infer it.

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