Skip to main content
Glama
paramount-engineering

Roku Dev Studio MCP Server

Debugger: Get Variables

debugger_get_variables
Read-onlyIdempotent

Get variables in scope at a halted stack frame, including locals and m; drill into containers by passing a variablePath for nested values.

Instructions

Return variables in scope at a stack frame while HALTED. With no variablePath, returns the frame's locals (incl. m); each entry has name, type, value, and for containers a childCount. To drill into a container, pass its variablePath (e.g. ["m","top"]; a quoted "key" segment forces a case-sensitive AA lookup, a bare number indexes an array) — the response is [container] whose .children is the next level. Optional stackFrameIndex (default 0 = top) and threadIndex.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceNoOptional. Roku IP or serial; must match a connected Dev Studio tab. Omit to use the focused tab.
threadIndexNoOptional thread index (default the stopped/primary thread).
variablePathNoOptional path segments to drill into a container (e.g. ["m","top","count"]). Omit for the frame's locals.
stackFrameIndexNoStack frame to read (default 0 = top frame).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly, openWorld, and idempotent hints, so safety is covered. The description adds substantial behavioral detail beyond annotations: response entry structure (name, type, value, childCount), container response format, path segment semantics (quoted key case-sensitive AA lookup, bare number array index), and defaults for stackFrameIndex and threadIndex. No contradictions.

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?

The description is dense but every clause earns its place: purpose, response format, path mechanics, and defaults. It is front-loaded with the core action, and the optional parameters are listed at the end. No redundancy or filler.

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

Completeness5/5

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

For a debugger inspection tool with no output schema, the description fully covers what an agent needs: the halted prerequisite, response shape, how to traverse containers, and all parameter defaults. Nothing critical is missing for correct invocation.

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

Parameters5/5

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

Schema coverage is 100% with descriptions for all four parameters, so baseline is 3. The description enriches this by explaining variablePath semantics in detail (e.g., ['m','top'] vs quoted 'key' forcing case-sensitive lookup) and stating defaults for stackFrameIndex (0 = top) and threadIndex (stopped/primary thread), which are not in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb and object: 'Return variables in scope at a stack frame while HALTED.' It clearly distinguishes this from siblings like debugger_get_callstack (stack frames) and debugger_evaluate (expressions) by focusing on variable inspection, and it specifies the halted condition.

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

Usage Guidelines4/5

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

Provides clear context: use when halted, and explains how to drill into containers via variablePath. It does not explicitly contrast with sibling tools, but the purpose is unambiguous and the description gives a concrete scenario ('while HALTED') and optional drill-down behavior.

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