Skip to main content
Glama

get_paused_info

Read-only

Inspect the current call stack, source locations, and selected frame scopes when execution is paused at a breakpoint. Use it to read frameIndex values and scopes before stepping or resuming.

Instructions

Inspects the current call stack, source locations, and selected call-frame scopes after a code/XHR breakpoint or explicit pause has stopped execution. It neither creates a pause nor resumes one. Returned frameIndex values and callFrameIds belong only to the current pause and expire after any step or resume; use evaluate_script with frameIndex for a focused expression, then step or pause_or_resume(action="resume").

Input Schema

NameRequiredDescriptionDefault
frameIndexNoZero-based frame from this pause whose scopes should be read (default: top frame). Frame indices change after a step and expire on resume.
includeScopesNoInclude bounded variables from the selected call frame (default: true). Set false when only the stack and source locations are needed.
maxScopeDepthNoScope categories to include for frameIndex (default: 2): 1 reads arguments/locals, 2 also reads closures, and 3+ includes other non-global scopes. Increase only when the needed value is absent.

Output Schema

NameRequiredDescriptionDefault
okYesWhether the tool completed successfully.
dataNo
toolYesStable MCP tool name.
errorNo
summaryYesConcise human-readable outcome.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.5

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description is fully consistent with them. Beyond that it discloses non-obvious behavioral traits: returned frameIndex values and callFrameIds are valid only for the current pause and expire after any step or resume, which is exactly the kind of statefulness an agent cannot infer from annotations or schema.

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 sentences, front-loaded with what the tool returns, then the negative boundary, then the expiry caveat and next step. No sentence restates the name or repeats schema content verbatim.

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?

Output schema exists, so return shape needn't be explained; annotations cover the safety profile; schema covers all parameters. What remains for the description — pause state dependency, ephemeral handles, and the escape hatch to evaluate_script — is all present.

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?

Schema coverage is 100%, so all three parameters are documented in structured fields and the baseline is 3. The description adds real value by tying frameIndex to the pause lifecycle (expires on step/resume) and by pointing at evaluate_script as the consumer of that index; includeScopes and maxScopeDepth are left to 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?

States a specific verb (inspects) plus three concrete resources (call stack, source locations, call-frame scopes) and the precondition that execution is already paused. It also explicitly negates the two adjacent capabilities (creating a pause, resuming), which separates it from pause_or_resume and step without the agent needing to inspect schemas.

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

Usage Guidelines5/5

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

Gives the trigger condition (after a code/XHR breakpoint or explicit pause), the two things it does not do, and a concrete follow-on path: use evaluate_script with frameIndex for an expression, then step or pause_or_resume(action="resume"). Alternatives are named explicitly rather than implied.

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