Skip to main content
Glama

variable.local.remove

Remove a local variable from a function by specifying the session, function start address, and variable name to update the decompiled code.

Instructions

Remove a local variable from a function.

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": "variable.local.remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
storageNo
session_idYes
function_startYes

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 it discloses almost nothing: it does not say whether the call fails when the variable is absent, whether it affects only the current frame, whether the change is persisted to the debug target, or whether it is reversible. For a mutation tool with zero annotation coverage, this is a substantial gap.

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 no bloat. However, its brevity comes at the cost of the operational detail this tool needs, making it terse rather than efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With four parameters, three of them required, no annotations, no output schema, and 0% schema coverage, the definition should explain session scoping and the storage parameter. It does not, so an agent has enough to recognize the operation but not enough to call it confidently.

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 four parameters, and the description only loosely implies two of them ('name' via 'local variable', 'function_start' via 'from a function'). The required session_id and the optional storage parameter are undocumented in both the schema and the description, leaving the agent to guess their meaning and accepted values.

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 and resource: 'Remove a local variable from a function.' An agent can tell this is a deletion of a local (not stackframe-level) variable, which distinguishes it from variable.local.create. It stops short of naming or contrasting with the closest sibling, stackframe.variable.clear, so it is clear but not fully differentiated.

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 tool rather than stackframe.variable.clear or variable.rename, and no stated prerequisites such as needing an active/paused debug session. The agent must infer the usage context entirely from the name and the required parameters.

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