Skip to main content
Glama

stackframe.variable.create

Create a stack-frame variable at a specific stack offset to define local data types and names within a function's stack frame.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
nameYes
data_typeYes
session_idYes
stack_offsetYes
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 provided, so the description carries the full behavioral burden for a mutation tool, yet it says nothing about permissions, what happens when a variable already exists at that offset, whether the operation is reversible, or how session_id scopes the effect. Only the creation target is disclosed.

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?

One short, front-loaded sentence with no filler, which is structurally clean. Brevity here comes at the cost of substance rather than from efficiency alone, but the sentence itself is tight.

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?

For a five-required-parameter write tool with no annotations and no output schema, the definition is far too thin — an agent has no basis for formatting function_start, understanding data_type syntax, or anticipating failure modes. Completeness is not met relative to the tool's complexity.

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 five required parameters, so the description must compensate, but it only sheds light on stack_offset (and loosely name). session_id, function_start (a oneOf of integer or string), and data_type are left entirely unexplained, including the ambiguous address-format choice for function_start.

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 ('Create') and resource ('stack-frame variable') plus a scoping detail ('at a specific stack offset'), enough to separate it from siblings like variable.local.create or stackframe.variable.clear. It stops short of naming which sibling to use instead, so a 4 rather than a 5.

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, when-not-to-use, or alternative routing guidance, despite several closely named siblings (variable.local.create, stackframe.variable.clear, stackframe.variables) that an agent could confuse with this tool. The agent must infer selection from the name alone.

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