Skip to main content
Glama

rr_breakpoint

Set a GDB breakpoint by function, source file and line, or address expression to pause deterministic rr debugger replays at the exact point where a bug occurs.

Instructions

Set a GDB breakpoint by function, source.cpp:line, or address expression.

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>",
      "location": "<location>"
    },
    "name": "rr_breakpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
locationYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/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 does not say what happens on an unresolvable location, whether the breakpoint persists across replay steps, whether it errors on duplicates, or whether the tool requires an active session — all material for a debugger mutation.

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?

A single front-loaded sentence with zero filler; the most decision-relevant information (what is set and how to address it) comes first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-required-parameter debugger tool with no annotations and no output schema, the definition should cover both parameters and basic session expectations. It covers only `location` partially and leaves `session_id` and failure behavior entirely undocumented.

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 coverage is 0%, so the description must compensate, and it does partially by spelling out the three accepted forms for `location`. However, `session_id` is never explained, and no concrete syntax examples (e.g., a literal `file.cpp:42` or address format) are given, leaving a real gap.

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 names a specific verb and resource ("Set a GDB breakpoint") and enumerates the accepted location forms (function, source.cpp:line, address expression). It does not distinguish itself from the close sibling rr_watchpoint, so an agent must infer the breakpoint/watchpoint split.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no mention of prerequisites (e.g., that a session must exist), and no routing to alternatives such as rr_watchpoint for data access or rr_when for conditional stops. Only the location format hint implies usage.

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