Skip to main content
Glama

layout.struct.field.clear

Remove a structure field by offset, ordinal, or field name to reset layout data before redefining or patching the structure.

Instructions

Clear a field from a structure by offset, ordinal, or field name.

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

Input Schema

NameRequiredDescriptionDefault
offsetYes
session_idYes
struct_nameNo
struct_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 does not meet it. It never explains what 'clear' actually does - whether the field is deleted (shifting subsequent offsets) or merely reset, whether the change is reversible, or whether it requires a decompiler/type re-sync. For a mutation tool with zero annotation coverage this is a significant gap.

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

Conciseness4/5

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

A single front-loaded sentence with no filler or redundancy, which is structurally clean. Its brevity is also its weakness, since a one-line statement is thin for a four-parameter mutation operation.

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?

With no annotations, no output schema, and 0% parameter documentation, the description is the only source of semantics and leaves the mutation's effects, required parameter interplay, and alternative selection mechanisms unexplained. An agent could call it but could not predict the result.

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%, so the description must compensate for all four parameters, and it only partially does. It references 'ordinal' and 'field name', but no such parameters exist in the schema (which has session_id, offset, struct_name, struct_path), and it never explains struct_name versus struct_path, the required session_id, or whether the selection methods are mutually exclusive.

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 specific verb ('Clear') and resource ('a field from a structure') plus the selection axes ('by offset, ordinal, or field name'), so it reads clearly against siblings like layout.struct.field.add or layout.struct.field.replace. It stops short of explicitly saying how it differs from those siblings, keeping it out of 5 territory.

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 or when-not-to-use guidance, no prerequisites, and no pointer to alternatives such as layout.struct.field.rename or layout.struct.resize for structurally different edits. The agent must infer usage entirely from the tool name.

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