Skip to main content
Glama

rr_inspect

Returns the current stack, selected-frame locals, thread summary, and stop reason after replay or execution movement, providing compact evidence for root-cause analysis.

Instructions

Return the current stack, selected-frame locals, thread summary, and stop reason.

Call after replay_start and after each execution movement. This compact evidence bundle is the best starting point for root-cause analysis.

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": {
      "session_id": "<session_id>"
    },
    "name": "rr_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. 'Return' implies a non-mutating inspection, and the enumerated payload effectively serves as a return contract in the absence of an output schema, but nothing is said about session validity requirements, failure modes, or whether inspecting alters debugger state.

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?

Three short sentences, front-loaded with the returned content before the timing advice and the routing pitch. Every sentence contributes; only the mildly promotional 'best starting point' phrasing is expendable.

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?

With no output schema and no annotations, the description compensates well by enumerating exactly what evidence comes back, which is the key unknown for this tool. The remaining gaps are session lifecycle and error behavior, minor for a one-parameter inspection call.

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?

Schema description coverage is 0% for the single required parameter session_id, and the description never explains it. The reference to replay_start weakly implies a session must already be live, but the agent is left to infer what the identifier denotes and where it comes from.

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 uses a specific verb ('Return') and enumerates the exact payload: current stack, selected-frame locals, thread summary, and stop reason. That is far more useful than a tautology, though it never names a sibling (e.g. rr_root_cause_hint or rr_evaluate) to sharpen the boundary.

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 gives explicit timing guidance: 'Call after replay_start and after each execution movement,' which tells the agent the lifecycle condition for invocation. It also positions itself as 'the best starting point for root-cause analysis,' implicitly steering priority, but it states no when-not-to-use case or named alternative.

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