Skip to main content
Glama
paramount-engineering

Roku Dev Studio MCP Server

Debugger: Get Call Stack

debugger_get_callstack
Read-onlyIdempotent

Retrieve the call stack frames (function, file, line) for a halted thread. Specify an optional thread index to inspect a different thread; defaults to the primary stopped thread.

Instructions

Return the call-stack frames (function, file, line — top frame first) for the halted thread. Requires the target to be HALTED. Optional threadIndex (default the stopped/primary thread). A frame index from here feeds stackFrameIndex in debugger_get_variables / debugger_evaluate.

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).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.2

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint=true, idempotentHint=true, and openWorldHint=true, covering safety. The description adds valuable behavior: the requirement for the target to be halted, the ordering of frames (top first), and that the frame index is used as input elsewhere. This goes beyond the annotations without contradicting them.

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?

Three concise sentences: purpose, requirement, and downstream usage. No fluff. The primary action is front-loaded, and each sentence adds distinct value. Efficient and well-structured.

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 read-only introspection tool with only two optional parameters and no output schema, the description covers all essential aspects: output content and ordering, prerequisite (halted), and how the result is used. Nothing critical is missing for an agent to call it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters (device, threadIndex) are already documented. The description mentions threadIndex's default (stopped/primary thread) but that is already in the schema. It doesn't add new parameter meaning beyond what the schema provides, so baseline 3 is appropriate.

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 clearly states the action ('Return the call-stack frames') with specific details (function, file, line, top frame first) and the context (halted thread). This distinguishes it from sibling tools like debugger_get_variables and debugger_evaluate, which serve different purposes. No ambiguity about what the tool does.

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?

It explicitly requires the target to be HALTED, a critical precondition, and explains how the output feeds into other tools (stackFrameIndex for debugger_get_variables/debugger_evaluate). It doesn't explicitly state when not to use it, but the halted requirement and output usage give clear context. Alternatives are implied through sibling tool names.

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