Skip to main content
Glama

rr_watchpoint

Set a watchpoint on a value to stop on writes, reads, or access, then continue or reverse through an rr trace to pinpoint the instruction that changes it.

Instructions

Watch a value and stop when it is written, read, or accessed.

A write watchpoint is useful after observing a corrupted variable: set it while the value is still correct, then continue or reverse through the trace to identify the instruction that changes it. Hardware watchpoint limits vary.

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>",
      "expression": "<expression>"
    },
    "name": "rr_watchpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
accessNowrite
expressionYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose that execution stops on hit and that hardware watchpoint limits vary, which is useful operational context. It omits whether the watchpoint persists across replay, how many can be set, and what a hit returns.

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 core behavior and followed by the motivating workflow. The closing line about hardware limits is relevant but slightly dangling without specifics.

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?

No annotations and no output schema, so the description is the only behavioral source, and it covers intent and workflow adequately. However, with three undocumented parameters it leaves the agent guessing on access modes and expression form for a debugging tool where those details matter.

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%, so the description must compensate. It hints at the access parameter via 'written, read, or accessed' but never names it, its accepted values, or its 'write' default, and says nothing about session_id or the expression syntax.

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: watch a value and stop on write, read, or access, which precisely distinguishes a watchpoint from a plain breakpoint. It never names a sibling tool, so differentiation from rr_breakpoint relies on the agent's prior knowledge.

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 a concrete when-to-use scenario (after observing a corrupted variable) and a workflow: set the watchpoint while the value is still correct, then continue or reverse through the trace. It does not state when not to use it, nor explicitly route to rr_breakpoint or rr_when.

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