Skip to main content
Glama

stackframe.variable.clear

Removes a stack-frame variable at a specified stack offset within a function, helping clear stale or incorrect variable definitions during reverse-engineering analysis.

Instructions

Clear a stack-frame variable at a specific stack offset.

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>",
      "stack_offset": "<stack_offset>"
    },
    "name": "stackframe.variable.clear"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes
stack_offsetYes
function_startYes

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 provided, the description carries the full behavioral burden, and it discloses almost nothing. It does not say whether the operation is destructive, whether the variable definition is removed or merely reset, whether it can be undone, or whether it requires an active debug session or specific permissions. The only behavioral fact conveyed is the targeting scope (a specific stack offset).

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, so nothing is wasted. Brevity here is achieved by omission rather than by tight writing, but structurally the core action leads the sentence.

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?

This is a mutation tool with zero annotation coverage, no output schema, and three undocumented parameters, so the description is the only source of behavioral information and it is far too thin. It leaves the effect of the operation, the return value, and the meaning of two of three inputs entirely unspecified.

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 three required parameters, so the description must compensate and largely fails. It echoes 'stack offset' for stack_offset without adding format or range meaning, and says nothing at all about session_id or the oneOf integer|string function_start, which is the parameter most in need of explanation.

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 names a specific verb ('Clear') and resource ('stack-frame variable') and scopes it to a stack offset, which separates it from the sibling stackframe.variables listing tool. However, 'clear' is ambiguous: it could mean deleting the variable definition, resetting its value, or removing a name binding, and the description never resolves this. It also does not distinguish itself from variable.local.remove, which sounds like it may overlap.

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 use this tool, when not to, or which sibling to prefer for related cleanup tasks. An agent gets no guidance on prerequisites such as whether a debug session or a prior stackframe.variable.create is required.

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