Ratel Docs
Guides

Investigate a session with your coding agent

Ask Claude Code about a failed session over the Ratel MCP server, and follow it to the fix.

Goal: find out why a session failed, and which fix addresses it, without leaving your editor.

Time: about 5 minutes.

You need:

  • Claude Code. Other MCP clients work the same way: see MCP server.
  • A project with traces in the last 7 days.

The prompts and answers below come from a real session on the Meridian Travel demo.

Connect Claude Code

Run this once, then run /mcp inside Claude Code, pick ratel and choose Authenticate:

claude mcp add --transport http ratel https://cloud.ratel.sh/api/mcp
Integrations in the organization: the MCP server endpoint and the snippet for each client

The same snippet, with your endpoint, is under Integrations in your organization.

Ask about the failed session

Prompt:

Find the most recent failed session of my agent in the last 7 days and tell me in 5 bullets what the user asked, which tools ran, and where it went wrong.

Claude Code calls three tools:

ratel · list_traces             { since: "2026-11-09T00:00:00Z", status: ["error"], includeDetails: true, limit: 5 }
ratel · get_trace_conversation  { traceId: "603396b2fb8b137133776326f390f33d" }
ratel · get_trace               { traceId: "603396b2fb8b137133776326f390f33d" }

Its answer, shortened:

  • The traveler asked for a flight from Dublin to New York on 10 December.
  • search_flights found 8 results. Then hold_seat ran twice.
  • The first hold_seat call failed with AirlineHoldTimeout after 30 seconds. The agent retried at once, and the second call worked.
  • The agent also held a seat nobody asked for.

Ask whether it is a pattern

Prompt:

Is the hold_seat failure a pattern? Check Agent health and the task it belongs to, and tell me which open fix addresses it. Answer in 4 bullets.

Claude Code calls five tools:

ratel · get_agent_health  { windowDays: 7 }
ratel · list_tasks        {}
ratel · list_fixes        { tool: "hold_seat" }
ratel · get_task          { taskId: "629adf0615f16a7c" }
ratel · get_fix           { fixId: "issue:3811e713-b8a9-4b7d-9ffe-b962aaf45bd1" }

Its answer, shortened:

  • In the task search_flights > hold_seat, hold_seat failed 31 of 141 calls (22%).
  • Agent health reports that after a hold_seat failure, the agent repeats the same call unchanged.
  • The open fix is Make hold_seat fail clearly, with Early evidence and no simulation yet.

Check it in the console

Open the task in Insights › Tasks to see the same numbers. hold_seat is marked Fails most, and the fix shows under Fixes as Make a tool fail clearly.

The task search_flights > hold_seat: runs, finish rate, its steps with hold_seat failing more often, and its issues and fixes

Every console page lists the MCP tools that read it under Over MCP. The MCP tools page lists all of them.

Result: you know what failed, how often, and which fix to work on, in two prompts. Next, ship that fix and measure it.

On this page