Skip to main content
Glama

Debug Get Variables

debug_get_variables

Retrieve local variable values from the most recently hit breakpoint without resuming execution, so you can inspect live Python state during debugging.

Instructions

Devuelve las variables locales del ultimo breakpoint alcanzado (no reanuda nada).

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": {
      "file_path": "<file_path>"
    },
    "name": "debug_get_variables"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the entire behavioral burden. It does disclose one important trait, that the call is non-resuming ('no reanuda nada'), which lowers the risk of an agent accidentally advancing execution. It says nothing about failure modes (for example, no active breakpoint), about whether the debugger must be paused, or about freshness of the returned values.

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?

The definition is a single short sentence with the non-resumption caveat placed up front in parentheses, so nothing is wasted. It is efficient, but its brevity comes at the cost of the missing parameter and precondition detail, which borders on under-specification.

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?

An output schema exists, so return-value documentation is not required, and the tool has only one parameter, which keeps complexity low. Even so, the undefined file_path and the unstated precondition that execution must be paused at a breakpoint leave real gaps for an agent to fill in.

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?

There is a single required parameter, file_path, with 0% schema description coverage, and the description never mentions it. An agent cannot tell whether file_path selects the source file whose breakpoint to read, the script being debugged, or something else entirely. This is the clearest gap in the definition.

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: it returns the local variables of the last breakpoint reached. The parenthetical '(no reanuda nada)' works as a negative differentiator against the debug_continue sibling without naming it. It falls short of 5 because the scope of the request is not fully pinned down, such as which stack frame or when the data is considered stale.

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 'del ultimo breakpoint alcanzado' implies the tool is only meaningful after execution has stopped at a breakpoint, which is useful context. However, it never states what happens when no breakpoint has been reached, nor does it point to any alternative for inspecting other variable scopes. Usage is therefore implied rather than explicitly guided.

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