Skip to main content
Glama

get_local_variables

Reads local variables from the selected stack frame so you can inspect current values during embedded firmware debugging.

Instructions

Read local variables in the selected stack frame.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_local_variables"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full disclosure burden. The verb "Read" conveys a non-mutating operation, and the frame scoping tells the agent the result is context-dependent, but it says nothing about behavior when no frame is selected, when symbols are unavailable, or whether the target must be paused.

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

Conciseness5/5

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

A single short sentence with the scoping qualifier placed at the end rather than buried. No redundant restatement of the name or filler wording.

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

Completeness4/5

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

For a no-parameter read tool with no output schema and no annotations, the definition is close to sufficient: the agent knows what it gets and from where. The remaining gap is the lack of stated preconditions (active paused debug session with a selected frame), which matters for a debugger-dependent call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is nothing for the description to disambiguate beyond what the empty schema already conveys. Baseline 4 applies; the description's note that the frame is taken from current selection implicitly explains why no parameter is needed.

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 and resource ("Read local variables") plus the scope ("in the selected stack frame"), which clearly distinguishes it from a whole-process read. It does not explicitly contrast with the nearby get_stack_arguments or get_register_values siblings, so the boundary between locals and arguments is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase "in the selected stack frame" implies the prerequisite that a frame must already be selected and the target is stopped, but this is only implied, not stated. There is no explicit when-to-use versus a sibling such as get_stack_arguments, so the agent must infer the split between locals and arguments.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.