Skip to main content
Glama

rr_root_cause_hint

Returns an investigation checklist keyed to a recording's stop reason and observed symptom, guiding debugging for crashes, wrong values, or hangs.

Instructions

Return an investigation checklist based on stop reason and observed symptom.

symptom may be auto, segfault, assertion, wrong_value, or hang. Use wrong_value after a breakpoint/watchpoint exposes the incorrect state; use hang when replay is stopped at a chosen progress marker for a suspected stuck path.

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_root_cause_hint"
  }
}

Input Schema

NameRequiredDescriptionDefault
symptomNoauto
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 are supplied, so the description carries the full behavioral burden. It discloses that the output is a checklist derived from the session's stop reason and the supplied symptom, which is useful context. It does not state whether the session must be paused or running, whether the call is side-effect-free, or how large the checklist can be.

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 description is short and front-loaded: the return value comes first, followed by the allowed symptom values and their usage conditions. Every sentence carries information, and there is no redundant restatement of the tool name.

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?

For a simple two-parameter tool with no output schema and no annotations, the description covers what is returned and the main symptom semantics. It is still thin on the session precondition: whether replay must be stopped, and on what session_id must reference.

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 0% and the symptom parameter is a bare string with no enum, so the description does real work by enumerating auto, segfault, assertion, wrong_value, and hang and by explaining when two of them apply. It still leaves session_id entirely unexplained and does not say what 'auto' infers 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 states a specific verb and resource: 'Return an investigation checklist based on stop reason and observed symptom.' That is clearly distinguishable from the other rr_* siblings, which inspect, evaluate, or move. It could go further and say explicitly that it is advisory and read-only, but its purpose is unmistakable.

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?

It gives conditional guidance for two symptom values ('wrong_value after a breakpoint/watchpoint exposes the incorrect state'; 'hang when replay is stopped at a chosen progress marker'), which helps an agent pick the right value. However, it never says when to call this tool rather than rr_inspect or rr_evaluate, and it does not mention any precondition on the session beyond the implied replay state.

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