Skip to main content
Glama

rr_record

Records a failing or suspicious program run as an rr trace by running the given executable and arguments, then returns a trace ID and path for replay.

Instructions

Record a failing or suspicious program run with rr.

Pass the executable and each argument as separate array items. The command is executed directly, without a shell. Use the same build and inputs that reproduce the bug. Returns a trace_id and trace_path for replay_start.

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": {
      "command": "<command>"
    },
    "name": "rr_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
commandYes
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two real traits: the command is executed directly without a shell, and the tool returns a trace_id and trace_path. It omits important operational behavior for a recording tool — whether rr must be installed/permitted, what happens when the run exceeds the timeout, whether a non-zero exit is an error, and the performance overhead of recording.

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?

Front-loaded with the purpose, then the critical calling convention for the array parameter, then the return value. Every sentence is doing work; the only slack is that the trailing "Use the same build and inputs" advice is more advisory than operational.

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 output schema exists, and the description usefully names the two return fields, but it leaves the working-directory and timeout parameters uncharacterized and says nothing about failure or timeout behavior for what is a long-running capture operation. Adequate for a three-parameter tool, but not complete.

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 description coverage is 0%, so the description must compensate, and it does so only for `command`: pass the executable plus each argument as separate array items, with no shell interpretation. The `cwd` and `timeout_seconds` parameters receive no explanation at all, leaving a real gap given three undocumented parameters.

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 and resource ("Record a ... program run with rr") and scopes it to failing or suspicious runs. The closing sentence names the concrete artifact produced (trace_id, trace_path) and the sibling that consumes it (replay_start), so an agent can tell this apart from rr_replay_start or rr_list_traces without opening any schema.

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?

Gives a clear selection condition — capture a run that fails or looks suspicious, using the same build and inputs that reproduce the bug — and implicitly positions it as the step before replay_start. It stops short of explicit exclusions (e.g. don't use this to attach to an already-running process, or when a trace already exists), so it is clear context rather than full when/when-not guidance.

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