MCP tools
Every tool the Ratel Platform MCP server exposes, with its scope and parameters.
The MCP server exposes 98 tools: 75 read tools and 23 write tools.
A project API key needs mcp:read for read tools and mcp:write for write tools.
Generated from ratel-cloud@a213fd5f (2026-11-14).
Account and projects
Find out what the credential reaches.
| Tool | Kind | What it does |
|---|---|---|
whoami | read | Who am I |
list_projects | read | List projects |
get_project_overview | read | Project overview |
whoami
Who am I · read · scope mcp:read
Identify the credential calling this server: which project and organization it can reach. Most tools act on a project, and this tells you which one you have.
No parameters.
list_projects
List projects · read · scope mcp:read
List the projects this credential can reach, with their ids and slugs. Use the returned id as projectId for other operations.
No parameters.
get_project_overview
Project overview · read · scope mcp:read
Counts of skills and active experiments for a project, plus whether it has ingested any telemetry yet. The best first call to orient in a project.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
Catalog
Read and change skills, declared tools and catalog overrides.
| Tool | Kind | What it does |
|---|---|---|
list_skills | read | List skills |
get_skill | read | Get skill |
get_catalog_status | read | Catalog status |
list_declared_tools | read | Tools the runtime declares |
list_invoked_tools | read | Tools telemetry has seen called |
list_catalog_overrides | read | List retrieval-description overrides |
list_runtime_catalog | read | Catalog tools and skills |
create_skill | write | Create skill |
update_skill | write | Update skill |
publish_skill | write | Publish skill |
archive_skill | write | Archive skill |
import_skills | write | Import skills |
set_catalog_override | write | Override a catalog entry's searchable description |
list_skills
List skills · read · scope mcp:read
Cloud skills in the project catalog with their status, tags, and a preview of the body. Filter by status or end user, search by name or description, sort by name, runs or last update. Use get_skill for a full body.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
status | "draft" | "published" | "archived" | no | Restrict to one lifecycle status. |
endUserId | string | no | Restrict to a single end user id, when the project segments by one. (max 200 chars) |
query | string | no | Case-insensitive text matched against the name, the searchable description and the agent description. (max 200 chars) |
sort | "name" | "runs" | "updated" | no | Order as the Skills table does. Omitted: most recently updated first. |
direction | "asc" | "desc" | no | Sort direction. Defaults to ascending for name and descending otherwise. |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
offset | integer | no | Default 0. |
get_skill
Get skill · read · scope mcp:read
One skill in full, including the complete body text and both descriptions.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
skillId | string | yes | (UUID) |
get_catalog_status
Catalog status · read · scope mcp:read
One-call health check for a project's catalog: how many skills and tools exist, how many tools carry a usable description, the published catalog version, and whether the runtime has adopted it.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
list_declared_tools
Tools the runtime declares · read · scope mcp:read
Tools the runtime has declared to Ratel, with their definitions and freshness. Flags any with no description text, which is the single most common reason a tool is never retrieved. This is what the runtime says exists; list_invoked_tools is what telemetry has seen actually called.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
includeInactive | boolean | no | Default false. |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
list_invoked_tools
Tools telemetry has seen called · read · scope mcp:read
Tools telemetry has actually seen invoked, with call counts, token usage, cost, and last-seen time. Compare against list_declared_tools to find declared-but-unused or used-but-undeclared tools.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
list_catalog_overrides
List retrieval-description overrides · read · scope mcp:read
Searchable-description overrides set in Ratel Platform for runtime catalog entries, which replace the description the runtime would otherwise match on.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
list_runtime_catalog
Catalog tools and skills · read · scope mcp:read
The tools and skills the Catalog page shows, with each one's entryId, agent description, searchable description in effect and where it comes from, the runtime default, any override and whether the runtime adopted it, tags, staleness and usage. Take entryId from here for set_catalog_override.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
kind | "tool" | "skill" | "all" | no | Restrict to tools or skills. Default "all". |
query | string | no | Case-insensitive text matched against the name, the searchable description and the agent description. (max 200 chars) |
source | "managed" | "observed" | "cloud" | "all" | no | managed: synced from the runtime, editable with set_catalog_override. observed: seen in traces only. cloud: skills created in Ratel Platform. Default "all". |
sort | "name" | "calls" | "tokens" | "cost" | "lastSeen" | no | Skills sort by runs for calls; tokens and cost apply to tools. Default "calls". |
direction | "asc" | "desc" | no | Sort direction. Defaults to ascending for name and descending otherwise. |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
offset | integer | no | Default 0. |
create_skill
Create skill · write · scope mcp:write
Add a skill to the project catalog. Subject to the organization's skills-per-project plan limit. Creates as a draft unless status is set to published.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
skill | object | yes | — |
update_skill
Update skill · write · scope mcp:write
Change one or more fields of an existing skill. Pass expectedVersion to make the edit conditional on the version you read, which is how concurrent edits are detected.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
skillId | string | yes | (UUID) |
patch | object | yes | — |
publish_skill
Publish skill · write · scope mcp:write
Move a skill to published so the retrieval engine can serve it. Publishing bumps the project's catalog version.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
skillId | string | yes | (UUID) |
expectedVersion | integer | no | (min 1) |
archive_skill
Archive skill · write · scope mcp:write
Move a skill to archived so it stops being served. Archiving is reversible by publishing again; it does not delete the skill.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
skillId | string | yes | (UUID) |
expectedVersion | integer | no | (min 1) |
import_skills
Import skills · write · scope mcp:write
Bulk upsert skills by name: each one is created if absent, updated if its content differs, and left alone if identical. Made for onboarding an existing folder of skill files in one call. The plan limit is checked against the whole batch first, so an import that would exceed it changes nothing at all.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
skills | object[] | yes | (max 100 items) |
set_catalog_override
Override a catalog entry's searchable description · write · scope mcp:write
Replace the searchable description (the text retrieval matches against) of one runtime-synced tool or skill. Take kind and entryId from list_runtime_catalog. Pass null to clear the override and fall back to the runtime's text. Does not change the description the agent reads.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
kind | "tool" | "skill" | "fact" | yes | Which catalog the entry belongs to, as reported by list_runtime_catalog. |
entryId | string | yes | The entry's entryId from list_runtime_catalog. A tool's name is not always its entryId. (max 512 chars) |
searchableDescription | string | null | yes | The replacement text, or null to clear the override. |
Traces, spans and cost
Read runs, spans, logs, token cost and ingest diagnostics.
| Tool | Kind | What it does |
|---|---|---|
get_trace_health | read | Latency and error rate |
list_traces | read | List traces |
get_trace | read | Get trace |
list_span_groups | read | Spans grouped by model, tool or operation |
get_span_totals | read | Span totals for a filtered slice |
get_cost_by_day | read | Cost and tokens per day |
get_cost_by_tool | read | Cost and tokens per tool |
get_traces_ingest_diagnostics | read | Trace ingest diagnostics |
get_run_summary | read | Run as a conversation |
get_span | read | Get span |
get_trace_conversation | read | Trace conversation |
list_spans | read | List spans |
list_logs | read | List logs |
compare_traces | read | Compare two traces |
get_trace_ranking | read | Trace ranking records |
get_turn | read | Get turn |
get_run_stats | read | Run totals for a filtered set |
get_session | read | Get session replay |
get_trace_health
Latency and error rate · read · scope mcp:read
Headline health over a window, from spans: trace count, error rate, p50 and p95 latency, plus token and cost totals. The cheapest answer to how a project is performing. For spend questions prefer get_cost_by_day, which reads the metrics the customer sees on their own dashboard and works even when trace surfaces are off.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
includeDaily | boolean | no | Also return a per-day series over the window. Default false. |
list_traces
List traces · read · scope mcp:read
Runs (traces) as the Runs page lists them: duration, status, spans, tokens, cost, variant. Filter by name, model, tool, experiment, variant, status, service, environment or duration, token and cost ranges; sort and page with cursor. includeDetails adds each run's ask and tools. get_run_summary opens one; get_run_stats totals the same filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
model | string | no | (max 200 chars) |
tool | string | no | (max 200 chars) |
errorOnly | boolean | no | Only traces containing an error span. |
experiment | string | no | (max 200 chars) |
rootName | string | no | Run (top-level span) name contains this text. (max 200 chars) |
spanName | string | no | Keep runs with a span whose name contains this text. (max 200 chars) |
arm | string | no | Experiment variant (arm) contains this text. (max 200 chars) |
status | ("unset" | "ok" | "error")[] | no | Span status, any of. (max 3 items) |
service | string[] | no | Exact service names, any of. (max 20 items) |
environment | string[] | no | Exact deployment environments, any of. (max 20 items) |
minDurationMs | number | no | Span duration at least this, in ms. |
maxDurationMs | number | no | — |
minTokens | number | no | Span tokens (input plus output) at least this. |
maxTokens | number | no | — |
minCostUsd | number | no | Span cost at least this, in USD. |
maxCostUsd | number | no | — |
sort | "started" | "duration" | "tokens" | "cost" | no | Default "started". |
direction | "asc" | "desc" | no | Default "desc". |
cursor | string | no | nextCursor from the previous call. Keep every other parameter the same; it carries the window. (max 4000 chars) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
includeFacets | boolean | no | Also return the available filter values for this window. Default false. |
includeDetails | boolean | no | Also return each run's ask (when content is captured), tools called, and status. Default false. |
get_trace
Get trace · read · scope mcp:read
The span breakdown for one trace: each span's name, kind, status, duration, tokens, and where they apply its step kind, model, tool, cost, error type and search. Payload bodies are not returned: get_span opens one span in full, get_trace_conversation shows the messages.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
traceId | string | yes | The 32-character hex trace id, as list_traces returns it. (max 64 chars) |
limit | integer | no | (1–200) Default 200. |
list_span_groups
Spans grouped by model, tool or operation · read · scope mcp:read
Span statistics grouped by operation name, model, or tool: call counts, error counts, latency and token usage. The one to reach for when the question is which model or tool dominates, and the only grouped view carrying latency. For per-tool token and cost totals that match the dashboard, prefer get_cost_by_tool.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
model | string | no | (max 200 chars) |
tool | string | no | (max 200 chars) |
errorOnly | boolean | no | Only traces containing an error span. |
experiment | string | no | (max 200 chars) |
groupBy | "name" | "model" | "tool" | no | Default "name". |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_span_totals
Span totals for a filtered slice · read · scope mcp:read
One row of span totals for a filtered slice: span count, error count, token totals and cost. Use it to size a specific slice (one model, one tool, errors only) rather than to browse. Same source as get_trace_health, so prefer that one for latency percentiles, or get_cost_by_day for spend.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
model | string | no | (max 200 chars) |
tool | string | no | (max 200 chars) |
errorOnly | boolean | no | Only traces containing an error span. |
experiment | string | no | (max 200 chars) |
get_cost_by_day
Cost and tokens per day · read · scope mcp:read
Per-day token counts and cost from the derived event metrics, broken down by context source. This is the series the project home page and dashboard render, so it is the number to quote for spend, and it is available whether or not trace surfaces are enabled. Use the span-based tools instead for latency or individual requests.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
get_cost_by_tool
Cost and tokens per tool · read · scope mcp:read
Token and call totals per tool over a window, from the derived event metrics, which is the source to quote for per-tool spend. Ratel gateway meta-tools are marked so they are not mistaken for the agent's own. Use list_span_groups grouped by tool instead when you need latency or error counts per tool.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_traces_ingest_diagnostics
Trace ingest diagnostics · read · scope mcp:read
Whether this project has received any agent events or OTel spans, and when the latest of each arrived. Answers whether a project that looks empty has received data at all. For why SDK events were refused or dropped, call list_sdk_events with view rejects or drops.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
get_run_summary
Run as a conversation · read · scope mcp:read
One run told as a conversation, as the run panel shows it: the ask, the answer, each model call, tool call and search in order with its timing, the run's error, and totals for duration, tokens and cost. The best first read of a run. get_span opens a step by its id; get_trace_conversation has the full messages.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
traceId | string | yes | The 32-character hex trace id, as list_traces returns it. (max 64 chars) |
maxSteps | integer | no | Steps to list (max 100). (1–100) Default 50. |
get_span
Get span · read · scope mcp:read
One span in full, as the step inspector and Details tab show it: identity, timing, status, model, tokens, cost, search query and hits, error type, tool arguments and result, and its attributes and experiment attributes, each value previewed. Use get_trace to find span ids.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
traceId | string | yes | The 32-character hex trace id, as list_traces returns it. (max 64 chars) |
spanId | string | yes | The span id, from get_trace or get_run_summary. (max 64 chars) |
attributePrefix | string | no | Only attributes whose key starts with this, e.g. gen_ai. or ratel. (max 200 chars) |
get_trace_conversation
Trace conversation · read · scope mcp:read
The Conversation tab of one trace: the system, user, assistant and tool messages in order, each once, and the tool calls with their arguments and results. Needs message content capture; without it the list is empty and get_run_summary still shows the steps. Page long conversations with offset.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
traceId | string | yes | The 32-character hex trace id, as list_traces returns it. (max 64 chars) |
offset | integer | no | Messages to skip, for the next page. Default 0. |
limit | integer | no | Messages to return (max 100). (1–100) Default 40. |
maxChars | integer | no | Characters kept per message. (200–4000) Default 1500. |
includeToolCalls | boolean | no | Default true. |
list_spans
List spans · read · scope mcp:read
Individual spans across runs, as the Spans page lists them: name, step kind, model, tool, duration, status, tokens and cost. All spans or top-level only, the same filters and sorts as list_traces, paged by cursor. For totals per model or tool use list_span_groups; get_span opens one.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
scope | "all" | "root" | no | root lists top-level spans only. Default "all". |
name | string | no | Span name contains this text. (max 200 chars) |
model | string | no | (max 200 chars) |
tool | string | no | (max 200 chars) |
errorOnly | boolean | no | Only spans with error status. |
experiment | string | no | (max 200 chars) |
arm | string | no | Experiment variant (arm) contains this text. (max 200 chars) |
status | ("unset" | "ok" | "error")[] | no | Span status, any of. (max 3 items) |
service | string[] | no | Exact service names, any of. (max 20 items) |
environment | string[] | no | Exact deployment environments, any of. (max 20 items) |
minDurationMs | number | no | Span duration at least this, in ms. |
maxDurationMs | number | no | — |
minTokens | number | no | Span tokens (input plus output) at least this. |
maxTokens | number | no | — |
minCostUsd | number | no | Span cost at least this, in USD. |
maxCostUsd | number | no | — |
sort | "started" | "duration" | "tokens" | "cost" | no | Default "started". |
direction | "asc" | "desc" | no | Default "desc". |
cursor | string | no | nextCursor from the previous call. Keep every other parameter the same; it carries the window. (max 4000 chars) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
list_logs
List logs · read · scope mcp:read
SDK logs and experiment records, as the Logs page lists them, newest first: name, time, trace and span, service, experiment and variant, with body and attributes previewed. Filter by name, experiment, or logs with no trace; paged by cursor. For one trace's ranking records use get_trace_ranking.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
eventName | string | no | Log name contains this text. (max 200 chars) |
experiment | string | no | Experiment name contains this text. (max 200 chars) |
tracelessOnly | boolean | no | Only logs not attached to a trace. Default false. |
cursor | string | no | nextCursor from the previous call. Keep every other parameter the same; it carries the window. (max 4000 chars) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
compare_traces
Compare two traces · read · scope mcp:read
Two traces side by side, as the Compare page shows them: name, duration, status, span and error counts, tokens, cost and experiment variant for each, the difference B minus A, and how many of each experiment record type each one has. Use it to compare a slow run with a fast one or two variants.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
traceIdA | string | yes | The 32-character hex trace id, as list_traces returns it. (max 64 chars) |
traceIdB | string | yes | The second trace id; must differ from traceIdA. (max 64 chars) |
get_trace_ranking
Trace ranking records · read · scope mcp:read
The Ranking tab of one trace: the experiment records it carries, in order (results, comparisons, skips, fallbacks, drops, outcomes), each with its variant, role and key attributes such as agreement and result counts. Empty when no experiment touched the run. list_logs searches these across runs.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
traceId | string | yes | The 32-character hex trace id, as list_traces returns it. (max 64 chars) |
limit | integer | no | Records to return (max 100). (1–100) Default 50. |
get_turn
Get turn · read · scope mcp:read
One agent turn call by call, as the turn page shows it: each search with its query and top hits, each tool or skill call with its outcome, timing, rank it was offered at and error, plus the session's previous and next turn. Turn ids come from Agent health insights and tasks. A call with a traceId opens with get_run_summary.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
turnId | string | yes | The turn id (a UUID). (max 64 chars) |
limit | integer | no | Calls to return (max 100). (1–100) Default 50. |
get_run_stats
Run totals for a filtered set · read · scope mcp:read
Totals for the runs matching the same filters as list_traces, as the Runs page header shows them: run count, failed runs, error rate, p50, p95 and p99 duration, tokens, cost, and runs per day or hour. For the unfiltered project get_trace_health is cheaper; for spend to quote prefer get_cost_by_day.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
model | string | no | (max 200 chars) |
tool | string | no | (max 200 chars) |
errorOnly | boolean | no | Only traces containing an error span. |
experiment | string | no | (max 200 chars) |
rootName | string | no | Run (top-level span) name contains this text. (max 200 chars) |
spanName | string | no | Keep runs with a span whose name contains this text. (max 200 chars) |
arm | string | no | Experiment variant (arm) contains this text. (max 200 chars) |
status | ("unset" | "ok" | "error")[] | no | Span status, any of. (max 3 items) |
service | string[] | no | Exact service names, any of. (max 20 items) |
environment | string[] | no | Exact deployment environments, any of. (max 20 items) |
minDurationMs | number | no | Span duration at least this, in ms. |
maxDurationMs | number | no | — |
minTokens | number | no | Span tokens (input plus output) at least this. |
maxTokens | number | no | — |
minCostUsd | number | no | Span cost at least this, in USD. |
maxCostUsd | number | no | — |
bucket | "day" | "hour" | no | Volume series granularity. Hourly applies to windows up to 7 days. Default "day". |
get_session
Get session replay · read · scope mcp:read
One session step by step: turns, model calls, searches and tool calls, what the context held at each model call, notes on unused or missing tools and why each tool choice was good or bad, with totals. Message text only with the content opt-in. Also What-if options and past runs, read only.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
sessionId | string | yes | The session id, as traces carry it. (max 256 chars) |
offset | integer | no | First step to return, for paging through a long session. Default 0. |
steps | integer | no | Steps to return (max 200). (1–200) Default 60. |
includeText | boolean | no | Include message text of model calls that kept it. Only honoured when the project's content opt-in is on. Default false. |
Agent health
Read health signals and their examples, and ask for a new analysis.
| Tool | Kind | What it does |
|---|---|---|
get_agent_health | read | Get agent health |
list_issue_examples | read | List issue examples |
set_health_signal_hidden | write | Hide or show a slow tool issue |
request_analysis | write | Request a fresh reading |
get_self_corrections | read | Get self-corrections |
get_analysis_freshness | read | Get analysis freshness |
get_agent_health
Get agent health · read · scope mcp:read
The Agent health page for a 7, 30 or 90 day window: tiles, turn shapes, flow map, capture level and what more capture unlocks, setup, page state, open issues (cut to the plan) and hidden ones, recent imports. Call list_issue_examples for an issue's turns.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
windowDays | 7 | 30 | 90 | no | Days to read: 7, 30 or 90. A window longer than the plan includes falls back to the longest it does. Default 7. |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
list_issue_examples
List issue examples · read · scope mcp:read
Example turns behind one or more Agent health issues, newest first: each step of the turn (search, tool call, outcome, rank) with the step the issue is about flagged. Turns per issue follow the plan; none on a plan without examples. Issue ids come from get_agent_health.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
issueIds | string[] | yes | Issue ids from get_agent_health or list_insights. (max 30 items) |
set_health_signal_hidden
Hide or show a slow tool issue · write · scope mcp:write
Hide an open slow tool issue (latency_outlier or wait_heavy) as slow by design, or show a hidden one again. Changes what the team's Agent health page lists, not what is measured. Hidden issues appear in get_agent_health as hiddenIssues.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
signalId | string | yes | The issue id from get_agent_health (issues or hiddenIssues). (UUID) |
hidden | boolean | yes | true hides the issue as slow by design; false shows it again. |
request_analysis
Request a fresh reading · write · scope mcp:write
Ask for a fresh reading of Agent health (what: health) or of Intents (what: intents), each with a 10 minute cooldown. Returns the job id to poll with get_job_status, or the cooldown. Then get_analysis_freshness.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
what | "health" | "intents" | yes | health: the Agent health reading. intents: the Intents reading. |
get_self_corrections
Get self-corrections · read · scope mcp:read
The Self-corrections page: how often the agent goes back on itself per 100 turns against the window before, by kind, after which tool, by task and by intent, top phrases (when replies are captured), recent examples and the fixes of open issues. Filter by tool, task or intent.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
windowDays | 7 | 30 | 90 | no | Days to read: 7, 30 or 90. A window longer than the plan includes falls back to the longest it does. Default 7. |
tool | string | no | Only after this tool: a catalog id, or skill:<id>. (max 200 chars) |
task | string | no | Only in this task id (get_agent_health tasks). (max 200 chars) |
intent | string | no | Only in this intent id (list_intents). (max 200 chars) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_analysis_freshness
Get analysis freshness · read · scope mcp:read
When the project's analysis last finished, whether it is working now and import progress; with section (overview, health, self_corrections, tasks, intents, fixes) also that page's last finished time and pending jobs. Poll after request_analysis; get_job_status follows one job.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
section | "overview" | "health" | "self_corrections" | "tasks" | "intents" | "fixes" | no | One page's analysis: its own background jobs. |
Intents and calibration
Read what users ask for and how well the judge agrees with people.
| Tool | Kind | What it does |
|---|---|---|
list_intents | read | List intents |
get_intent | read | Get intent |
list_calibrations | read | List calibrations |
get_calibration | read | Calibration detail |
list_calibration_mismatches | read | Calibration mismatches |
list_intents
List intents · read · scope mcp:read
The Intents page: what people want from the agent, each intent with turns, share, answered rate, sentiment, tasks, tools, self-corrections, asked again, what people ask next and trend, plus the Flows (where conversations go step by step). Call get_intent for one intent's breakdown.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
sort | "turns" | "answered" | "negative" | "name" | no | turns: busiest first. answered: least answered first. negative: most negative first. name: A to Z. Default "turns". |
includeFlows | boolean | no | Include the Flows: where conversations go, step by step. Default true. |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_intent
Get intent · read · scope mcp:read
One intent's panel: its numbers, what its asks are for and the ways people ask it, what else the same ask wants, the steps it is done in (usual tools and order, matching task) and a few example asks, cut short. Intent ids come from list_intents.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
intentId | string | yes | An intent id from list_intents. (max 128 chars) |
examples | integer | no | Example asks to include (0 to 5). (0–5) Default 3. |
list_calibrations
List calibrations · read · scope mcp:read
Experiments in this project that recorded ranking comparisons, with how many selections were compared and how many disagreed. The starting point for calibration work: find the experiment with a mismatch rate worth explaining, then open it with get_calibration.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_calibration
Calibration detail · read · scope mcp:read
How two arms of one experiment agreed over a window: per-arm-pair comparison and mismatch counts, top-1 and exact-order agreement, each side's latency and outcomes, the shadow's reliability, and recent comparisons. Use list_calibration_mismatches to see only the ones that disagreed.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
experimentName | string | yes | Experiment name, as returned by list_calibrations. (max 256 chars) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
list_calibration_mismatches
Calibration mismatches · read · scope mcp:read
The individual real queries where two arms returned different rankings, with both rankings and how they differ. This is the concrete work list for improving retrieval: take a query from here, reproduce it with test_retrieval, and test a description change against it.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
experimentName | string | yes | (max 256 chars) |
facets | ("top1" | "order" | "missing" | "added" | "outcome")[] | no | Narrow to particular kinds of disagreement. (max 5 items) |
match | "any" | "all" | no | How several facets combine: any matches one of them, all needs every one. Default "any". |
includeAgreements | boolean | no | Also return selections where the two arms agreed. Default false. |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
offset | integer | no | Default 0. |
Match quality and experiments
Measure retrieval quality, review description rewrites and run experiments.
| Tool | Kind | What it does |
|---|---|---|
get_experiment | read | Experiment detail |
get_selection | read | Selection inspector |
list_match_quality_runs | read | List match quality runs |
get_match_quality_run | read | Get match quality run |
get_quality | read | Quality: misses |
list_description_rewrites | read | Quality: description rewrites |
review_description_rewrite | write | Apply, dismiss or revert a description rewrite |
run_quality_analysis | write | Start a quality analysis |
create_experiment | write | Create experiment for a fix |
get_experiment
Experiment detail · read · scope mcp:read
One experiment over a window: per-arm traces, errors, latency, tokens and cost, each arm against the baseline, the capabilities whose rank moved, detected issues, shadow agreement and reliability, and conversion. Find names with list_calibrations; drill into disagreements with list_calibration_mismatches.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
experimentName | string | yes | Experiment name, as returned by list_calibrations. (max 256 chars) |
get_selection
Selection inspector · read · scope mcp:read
One shadow-tested search in full: the query, both arms' rankings with scores, how far they agreed at k, each arm's outcome and duration, its trace id, and its lifecycle records. Take a selectionId from list_calibration_mismatches or get_quality; reproduce it with test_retrieval.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
selectionId | string | yes | A selectionId from list_calibration_mismatches or get_quality. (max 200 chars) |
list_match_quality_runs
List match quality runs · read · scope mcp:read
Past analyses of search quality, each with the evidence census that bounds how much its proposals are worth. Read the census before the proposals: a run over a window with no invoked-tool records measured agreement with the baseline, not accuracy.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_match_quality_run
Get match quality run · read · scope mcp:read
One match quality analysis in full: what the run could see, what it concluded, and the searchable-description rewrites it proposed. Omit runId for the most recent run. Apply, dismiss or revert a proposal with review_description_rewrite.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
runId | string | no | (UUID) |
status | "pending" | "applied" | "dismissed" | "superseded" | "reverted" | no | — |
get_quality
Quality: misses · read · scope mcp:read
How often search put the right tool first over a window, the change vs the window before, the customer's own ranking beside ours, and the searches where it did not (right tool, rank, what came first, how we know). Filter with q or outcome. Fix one with list_description_rewrites.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
range | "7d" | "14d" | "30d" | "3m" | "12m" | no | The window, as the console's presets: 7d, 14d, 30d, 3m or 12m. Compared with the window before it. Default "7d". |
q | string | no | Case-insensitive text matched against the search and both tool names. (max 200 chars) |
outcome | "missing" | "lower" | no | missing: the right tool was not returned. lower: returned, but not first. |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
list_description_rewrites
Quality: description rewrites · read · scope mcp:read
The searchable-description rewrites waiting and applied: current vs proposed text, why, what a replay of past searches says each does, all pending ones together, and whether a runtime picks overrides up. Pass proposalId for one rewrite's missed searches, or tool for one tool's card. Act with review_description_rewrite.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
tool | string | no | A tool's catalog entry id (toolId here, rightTool.id in get_quality): only its rewrites, with their missed searches, and its card. (max 200 chars) |
proposalId | string | no | Only this rewrite, with the searches it missed. (UUID) |
range | "7d" | "14d" | "30d" | "3m" | "12m" | no | The window the tool card's search counts cover. Default "7d". |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
review_description_rewrite
Apply, dismiss or revert a description rewrite · write · scope mcp:write
Act on a searchable-description rewrite from list_description_rewrites: apply writes its text as the catalog override, dismiss closes it, revert restores the exact text it replaced, apply_all applies every pending one. Prefer this to set_catalog_override for a drafted rewrite.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
action | "apply" | "dismiss" | "revert" | "apply_all" | yes | — |
proposalId | string | no | The rewrite's proposalId. Required for apply, dismiss and revert; ignored by apply_all. (UUID) |
run_quality_analysis
Start a quality analysis · write · scope mcp:write
Queue a match quality analysis of the last 7, 14 or 30 days of searches: it judges which tool was right and drafts description rewrites. Counts against the plan's monthly runs. Returns the job id to poll with get_job_status, then read list_description_rewrites.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
windowDays | integer | no | Days of searches to analyse: 7, 14 or 30. (min -9007199254740991) Default 7. |
create_experiment
Create experiment for a fix · write · scope mcp:write
Declare an A/B experiment for a fix: a name and two arms the agent's runtime tags its spans with (ratel.experiment.id and ratel.experiment.arm), so the experiment pages compare them. Creates a record and its lineage link to the fix; does not change the agent. chain is oldest first: trace, insight, fix, experiment.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
fixId | string | yes | A fix id from list_fixes or get_fix, e.g. issue:<uuid>, craft:<uuid>, rewrite:<uuid>. (max 200 chars) |
name | string | no | The ratel.experiment.id value. Defaults to fix-<kind>-<short id>. |
baselineArm | string | no | Default "baseline". |
candidateArm | string | no | Default "fix". |
trafficPercent | integer | no | Share of traffic on the candidate arm. (1–100) Default 50. |
Tool usage
See which tools agents use together, in which order, and for which intents.
| Tool | Kind | What it does |
|---|---|---|
list_ranking_graphs | read | Adaptive ranking: graphs |
get_ranking_graph | read | Adaptive ranking: one graph |
list_tool_cousage | read | List tool co-usage |
list_tool_transitions | read | List tool transitions |
list_intent_tool_usage | read | List intent tool usage |
get_improvement_signals | read | What to fix |
list_search_queries_for_skill | read | Queries that retrieved a skill |
test_retrieval | read | Test retrieval against the live catalog |
list_ranking_graphs
Adaptive ranking: graphs · read · scope mcp:read
The project's intent graphs for adaptive ranking: who built each, whether a runtime ranks from it, revision, size and how much it has learned, plus the setup steps still open. Open one with get_ranking_graph to see whether it helps.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
get_ranking_graph
Adaptive ranking: one graph · read · scope mcp:read
Whether one intent graph helps: serving state, how often the right tool comes first with and without it, recall@1/3/5, nDCG@5 and MRR@5 both ways, the verdict, live recall before and after, warnings, facts, its busiest ask groups and the setup steps left.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
graphKey | string | no | A graphKey from list_ranking_graphs. Omit for the merged Cloud graph. (max 200 chars) |
list_tool_cousage
List tool co-usage · read · scope mcp:read
Tools that run together in the same turn or the same session, from real invocations: each set with how many units ran it, the task it is when its tools are a task's steps (taskId), and for pairs the overlap and each direction's conditional share. mergeCandidatesOnly keeps the pairs the agent never runs apart.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
scope | "turn" | "session" | no | turn: tools called in one turn; session: tools called anywhere in one session. Default "turn". |
size | integer | no | Only sets of exactly this many tools (sets reach as many tools as the biggest task). (2–8) |
minSupport | integer | no | Only sets seen in at least this many units. (min 1) |
tool | string | no | Only sets containing this tool id. (max 200 chars) |
mergeCandidatesOnly | boolean | no | Only pairs with Jaccard lower bound >= 0.9 and support >= 20. Default false. |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
list_tool_transitions
List tool transitions · read · scope mcp:read
What the agent runs after a given tool, from real invocations: next-tool probabilities with confidence bounds and lift, in one turn or across a session, the order a task's steps run in. kind=next is the call right after; kind=before is any later call in the same unit.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
scope | "turn" | "session" | no | Default "turn". |
kind | "next" | "before" | no | Default "next". |
from | string | no | Only transitions leaving this tool id. (max 200 chars) |
to | string | no | Only transitions arriving at this tool id. (max 200 chars) |
minN | integer | no | Only transitions seen at least this many times. (min 1) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
list_intent_tool_usage
List intent tool usage · read · scope mcp:read
Which tools serve each kind of search the agent makes: for every intent grouped from real search queries, the tools the agent went on to call in the same turn or session, as a share of that intent's units with a confidence bound. Rows group by intent, biggest first.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
scope | "turn" | "session" | no | Default "turn". |
intentId | string | no | Only this intent: an intentId from an earlier page of this list. (UUID) |
minUnits | integer | no | Only intents carried by at least this many units. (min 1) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_improvement_signals
What to fix · read · scope mcp:read
The single best starting point for improving a catalog: skills that get retrieved in search but never actually invoked, the most common user queries, and the tools erroring most often.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
since | string (date-time) | no | ISO-8601 start of the window. Defaults per operation. |
until | string (date-time) | no | ISO-8601 end of the window. Defaults to now. |
endUserId | string | no | Restrict to a single end user id, when the project segments by one. (max 200 chars) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
list_search_queries_for_skill
Queries that retrieved a skill · read · scope mcp:read
The real user queries that caused a given skill to be retrieved. The fastest way to see whether a skill's description is matching the intent you meant it to. Identify the skill by name, as the runtime does.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
skillName | string | yes | The skill's name, as it appears in the catalog and in retrieval telemetry. (max 200 chars) |
endUserId | string | no | Restrict to a single end user id, when the project segments by one. (max 200 chars) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
test_retrieval
Test retrieval against the live catalog · read · scope mcp:read
Rank a query against this project's real catalog, once as stored and once with proposed description edits applied, and return the difference. Nothing is written: this is how to check a rewrite fixes a query before saving it with update_skill or set_catalog_override. Mode bm25 is free; embeddings and hybrid call the embedding provider, cost money, and are metered tighter.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
query | string | yes | The prompt to rank, ideally a real one from calibration or search history. (max 1000 chars) |
mode | "bm25" | "embeddings" | "hybrid" | no | bm25 is free; embeddings and hybrid spend the embedding provider budget. Default "bm25". |
topKSkills | integer | no | (1–25) Default 5. |
topKTools | integer | no | (1–25) Default 5. |
embeddingWeight | number | no | How much the embedding score counts in hybrid mode. (0–1) Default 0.5. |
drafts | object | no | Unsaved edits to test, keyed by skill name or tool name. Send only the kind you are editing. Omit entirely to rank the catalog as it stands. |
includeSyncedTools | boolean | no | Include runtime-synced tool definitions in the bench. Default true. |
Tool Crafter
Read and generate proposed tools.
| Tool | Kind | What it does |
|---|---|---|
list_tool_crafts | read | List drafted fixes |
get_tool_craft | read | Get a drafted fix |
generate_tool_crafts | write | Draft fixes |
list_tool_crafts
List drafted fixes · read · scope mcp:read
Fixes drafted by rules from how the agent runs its tools: merge tools it never runs apart, combine a task's steps into one tool, tighten a schema whose first calls fail, retire a tool nobody calls, rewrite a description searches miss. Each row has the kind of fix, the tools it changes, the drafted tool and its fixId on Fixes.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
status | "pending" | "superseded" | "dismissed" | no | — |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_tool_craft
Get a drafted fix · read · scope mcp:read
One drafted fix in full: the evidence, the tools as they are today, and the drafted definition (JSON, TypeScript and Python).
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
craftId | string | yes | (UUID) |
generate_tool_crafts
Draft fixes · write · scope mcp:write
Queues a drafting run: rules read how the agent runs its tools, its tasks and the searches that missed a tool, and draft fixes (merges, combined steps, tighter schemas, prerequisites, rewrites, retirements and more). No model is called. Returns a jobId; poll get_job_status, then list_tool_crafts.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
Usage, keys and setup
Read quotas, credit use, feature flags, SDK events, API keys and setup state.
| Tool | Kind | What it does |
|---|---|---|
get_flag_status | read | Feature flag status |
get_quota_status | read | Plan and limits |
get_embedding_usage | read | Embedding usage and wallets |
get_job_status | read | Background job status |
list_sdk_events | read | SDK events |
get_sdk_event | read | SDK event payload |
list_api_keys | read | API keys |
get_tool_picker_usage | read | Tool Picker usage |
get_sdk_setup | read | SDK setup |
get_flag_status
Feature flag status · read · scope mcp:read
Every live Ratel Platform feature flag with whether it is on for you on this project, decided the way the MCP server decides it, its note and what it changes here. Use it when a tool you expect (such as list_insights or run_eval) is missing or refuses.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
get_quota_status
Plan and limits · read · scope mcp:read
The organization's plan and subscription state (paid, past due, period end), its limits, usage against each quota (projects, skills per project, members) counted as the console counts them, and this project's match quality runs left this month. Explains quota_exceeded errors on writes.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
get_embedding_usage
Embedding usage and wallets · read · scope mcp:read
Embedding request volume, tokens and latency over a window, plus a wallet as Billing shows it: monthly allowance, allowance left, prepaid credit, auto-recharge and recent ledger. wallet tool_picker returns the Tool Picker wallet; get_tool_picker_usage has its usage.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
wallet | "embeddings" | "tool_picker" | no | Which wallet to show. Usage is included for embeddings only. Default "embeddings". |
windowDays | integer | no | Days of usage history to summarize. (1–90) Default 30. |
ledgerLimit | integer | no | (1–50) Default 10. |
get_job_status
Background job status · read · scope mcp:read
Status of a background job by id, or every job currently queued or running for the project. Analysis work such as a match quality run is queued, so poll this rather than assuming it failed.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
jobId | string | no | A specific job id, as returned by an operation that enqueues work. (UUID) |
list_sdk_events
SDK events · read · scope mcp:read
What Settings › Developer shows: SDK events received over 24h, 7d or 30d with received, dropped and rejected counts, type and source facets, and the newest rows. view rejects lists events Ratel refused (reason, size); view drops lists what the SDK dropped before sending. get_sdk_event returns one event's payload.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
range | "24h" | "7d" | "30d" | no | The window, as on the Developer page. Default "7d". |
view | "events" | "rejects" | "drops" | no | events: what arrived. rejects: what Ratel refused. drops: what the SDK reported dropping. Default "events". |
type | string | no | Only this event type, e.g. invoke_error. See facets.types. (max 100 chars) |
sourceId | string | no | Only this SDK source. See facets.sources. (max 200 chars) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_sdk_event
SDK event payload · read · scope mcp:read
One SDK event as Settings › Developer opens it: its type, source, timing, ids and the payload exactly as the SDK sent it, cut at 4000 characters. Take the identifier from list_sdk_events.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
identifier | string | yes | The event's identifier from list_sdk_events: the SDK's event id, or the stored row id. (max 512 chars) |
list_api_keys
API keys · read · scope mcp:read
The project's API keys as Settings › API keys lists them: name, prefix, access (full, read_only, ingest or custom, with its scopes; publishable keys are safe to ship in an app), status, created, last used and expiry. Never the key itself. Keys are created and revoked in the console; get_sdk_setup shows how to use one.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
get_tool_picker_usage
Tool Picker usage · read · scope mcp:read
Models › Tool Picker usage for this project over a window: requests, errors, input tokens, spend and average latency per mode (instant, precise, exhaustive). get_embedding_usage with wallet tool_picker shows the credit balance.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
windowDays | integer | no | Days of usage to summarize. (1–90) Default 30. |
get_sdk_setup
SDK setup · read · scope mcp:read
The quickstart Settings › API keys shows: the traces endpoint, the env var the key is read from, the install line and a snippet per language (TypeScript, curl). Set captureContent to include the content capture lines. No key is inlined; list_api_keys shows the project's keys.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
captureContent | boolean | no | Include the opt-in lines that send search queries and tool arguments on spans. Default false. |
Fixes, tasks and evals
Work the improvement loop: tasks, insights, fixes, eval sets, scorers and eval runs.
| Tool | Kind | What it does |
|---|---|---|
list_shipments | read | List shipments |
get_lineage | read | Get lineage |
list_tasks | read | List tasks |
get_task | read | Get task |
list_insights | read | List insights |
list_fixes | read | List fixes |
get_fix | read | Get fix |
get_eval | read | Get the simulation of a fix |
list_task_simulations | read | List a task's simulations |
get_fix_eval_set | read | Get the evals of a fix |
list_scorers | read | List scorers |
list_evals | read | List evals |
get_eval_run | read | Get an eval run |
run_eval | write | Run eval on a fix |
mark_fix_shipped | write | Mark fix shipped |
change_task_scorer | write | Change a task scorer |
change_task_eval_set | write | Change the evals of a task |
draft_task_test | write | Draft a task test from a run |
change_task_simulation | write | Change a task simulation |
change_fix_eval_set | write | Change a fix's eval set |
dismiss_fix | write | Dismiss a drafted fix |
change_scorer | write | Change a scorer |
change_eval | write | Change an eval |
run_evals | write | Run evals |
list_shipments
List shipments · read · scope mcp:read
The Ship page: changes that went live, newest first (shipments recorded with mark_fix_shipped and applied description rewrites), each with the fix it came from and, for the newest few, its trail back to the run it started from. Use get_lineage for any other object.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
shipmentId | string | no | Only this shipment, with its full trail. (max 512 chars) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_lineage
Get lineage · read · scope mcp:read
Where an object came from: one step back (source) or the full chain back to the run (chain: true, oldest first), for kind trace, metric, insight, intent, task, fix, experiment, eval or shipment and its id. On a plan without example turns an insight names its metric, not its run.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
kind | "trace" | "metric" | "insight" | "intent" | "task" | "fix" | "experiment" | "eval" | "shipment" | yes | The object's kind. |
id | string | yes | The object's id, e.g. an insight id, issue:<id> for a fix, or a shipment id. (max 512 chars) |
chain | boolean | no | true: the whole chain back to Monitor. false: one step back. Default false. |
list_tasks
List tasks · read · scope mcp:read
List the tasks of the project. Each task has its runs, status, finish rate and fix counts. The result also has the reading totals, the reading state and the asks that no task serves. Call get_task with a taskId to read its steps, issues, scorers and evals.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_task
Get task · read · scope mcp:read
Read one task as its page shows it: steps, flow, order stability, self-corrections, issues, fixes, cost and example runs. With cloud-eval-gate on, the result also has its scorers, daily scores, evals (evalSet) and shipments with post-ship results. Use list_fixes to read the fixes of the task.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
taskId | string | yes | A task id from list_tasks. (max 200 chars) |
list_insights
List insights · read · scope mcp:read
The open findings about the agent, worst first, in the words Agent health shows: what went wrong, what it costs, what to do, and the trace or reading it came from (source). Follow one with get_fix. For catalog-level hints use get_improvement_signals.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
kind | string | no | Only insights of this kind, e.g. tool_errors. (max 64 chars) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
list_fixes
List fixes · read · scope mcp:read
List proposed fixes with their effect, insightIds, taskIds, draft, eval badge and shipped version, and the Fixes page's counts and potential savings per day, week or month. Filter by insightId, taskId, kind, tool or intent. Call get_fix to read the change.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
insightId | string | no | An insight id from list_insights. (UUID) |
taskId | string | no | Only fixes that affect this task id. (max 200 chars) |
kind | "rewrite" | "retire" | "merge" | "combine" | "build" | "skill" | "fail-clearly" | "schema" | "fold" | "parallel" | "enrich" | "preload" | "split" | "prerequisite" | "tell-apart" | "fewer-results" | no | Only fixes of this kind. |
tool | string | no | Only fixes that change this catalog tool id. (max 500 chars) |
intent | string | no | Only fixes that serve this intent id. (max 200 chars) |
status | "open" | "applied" | "all" | no | Default "open". |
period | "day" | "week" | "month" | no | The period savings are scaled to. Default "month". |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_fix
Get fix · read · scope mcp:read
Read one fix with its change, taskIds, draft, evidence, experiments and shipments. The chain lists its sources in order. A ready draft supplies the change when cloud-eval-gate is on. Pass fixId or insightId. Call run_eval to simulate the fix.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
fixId | string | no | A fix id from list_fixes or get_fix, e.g. issue:<uuid>, craft:<uuid>, rewrite:<uuid>. (max 200 chars) |
insightId | string | no | An insight id from list_insights. (UUID) |
get_eval
Get the simulation of a fix · read · scope mcp:read
Read the latest simulation of a fix. This tool does not start a simulation. A fix with tasks gives one result per task, with scorerVersion and the score breakdown. Other fixes give one result for the fix. Call this tool again after run_eval. The result is null before the first simulation. evalSet lists the result of each eval, with its simulated answers and its generated inputs.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
fixId | string | yes | A fix id from list_fixes or get_fix, e.g. issue:<uuid>, craft:<uuid>, rewrite:<uuid>. (max 200 chars) |
list_task_simulations
List a task's simulations · read · scope mcp:read
Each fix's latest simulation on one task: state (better, worse, same, running, none) and whether it is stale after an edit. Pass fixId for one simulation's change, draft status, fix tests, task tests, replayed runs and runs. Edit with change_task_simulation; run it with run_eval.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
taskId | string | yes | A task id from list_tasks. (max 500 chars) |
fixId | string | no | A fix id from list_fixes, e.g. craft:<uuid>. (max 500 chars) |
limit | integer | no | Maximum rows to return (max 50). (1–50) Default 25. |
get_fix_eval_set
Get the evals of a fix · read · scope mcp:read
Read the evals that a fix is simulated on. Each eval has its expected outcome, role (holdout or evidence) and latest result. The result also has the change, method, block reason, latest simulation (interval, evidence, breakdown, judge) and earlier runs. Use change_fix_eval_set to edit the evals. Use run_eval to simulate the fix.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
fixId | string | yes | A fix id from list_fixes or get_fix, e.g. issue:<uuid>, craft:<uuid>. |
limit | integer | no | Maximum evals to return (max 50). (1–50) Default 25. |
list_scorers
List scorers · read · scope mcp:read
List the scorers of one task, or the suite scorers. Each scorer has its kind, config, switch, pass threshold (0 to 1) and pass rate of the last 7 days. The id of a built-in task scorer starts with legacy:. Use change_scorer to change a scorer.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
taskId | string | no | A task id from list_tasks. Without it, the tool lists the suite scorers. (max 500 chars) |
list_evals
List evals · read · scope mcp:read
List the evals of the suite, or the evals of one task. Each eval has its ask, criteria, tasks, generated (the fields that a model wrote) and the scorers that it switches off. A suggested eval from a low score has suggestedBecause: the scorer, its value and its pass threshold. Use change_eval to change an eval.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
taskId | string | no | A task id from list_tasks. (max 500 chars) |
status | "in_set" | "archived" | no | in_set lists approved and suggested evals. archived lists removed evals. Default "in_set". |
limit | integer | no | Maximum evals to return (max 50). (1–50) Default 25. |
get_eval_run
Get an eval run · read · scope mcp:read
Read one run of the suite. Each result has pass or fail, verdicts, scorer readings, generated fields and runSettings (the models and limits that it used). A result that kept its text has replay: the system prompt, the message and each step. Each tool step has a source: recorded, mock (a fixed answer) or stand-in (a simulated answer).
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
runId | string | yes | A run id from run_evals. (UUID) |
run_eval
Run eval on a fix · write · scope mcp:write
Queue one simulation per affected task when cloud-eval-gate is on. A fix without tasks uses the per-fix eval. Poll get_eval while runs are pending. If the status is drafting, read get_fix. Call run_eval when the draft is ready. Call mark_fix_shipped when the fix is live.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
fixId | string | yes | A fix id from list_fixes or get_fix, e.g. issue:<uuid>, craft:<uuid>, rewrite:<uuid>. (max 200 chars) |
mark_fix_shipped
Mark fix shipped · write · scope mcp:write
Record that a fix is live in a version of the agent, linked to the fix, the insight it resolves and, optionally, the experiment that tested it. It then shows on the project's Ship page. Returns the full lineage chain, oldest first: trace, insight, fix, experiment (when given), shipment. Records only; deploys nothing.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
fixId | string | yes | A fix id from list_fixes or get_fix, e.g. issue:<uuid>, craft:<uuid>, rewrite:<uuid>. (max 200 chars) |
version | string | yes | The agent version or release that carries the fix, e.g. v1.4.2 or a commit sha. (max 100 chars) |
experimentId | string | no | The experiment from create_experiment that tested it. (UUID) |
notes | string | no | (max 1000 chars) |
change_task_scorer
Change a task scorer · write · scope mcp:write
Turn one of a task's scorers on or off with its setting, or reset it to the default. max_* kinds need max, expected_tool needs tool, judge_criteria needs criteria. Returns the saved scorer. Read scorers with get_task.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
taskId | string | yes | A task id from list_tasks. (max 500 chars) |
kind | "ends_well" | "max_self_corrections" | "max_latency_ms" | "max_cost_usd" | "expected_tool" | "max_tool_calls" | "judge_criteria" | yes | — |
action | "save" | "reset" | no | reset returns the scorer to its default. Default "save". |
enabled | boolean | no | Required to save: on or off. |
max | number | no | The limit for max_* kinds; a whole number for max_tool_calls and max_self_corrections. |
tool | string | no | The tool id expected_tool checks for. (max 500 chars) |
criteria | string | no | What judge_criteria asks a judge model to check. (max 5000 chars) |
change_task_eval_set
Change the evals of a task · write · scope mcp:write
Change the evals that check the fixes of a task. pin, unpin or exclude an eval (caseId). add a run (runId), with an optional proposal from draft_task_test that saves it as an eval. restore an excluded run (caseId or runId). refresh the evals: the result has jobId for get_job_status.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
taskId | string | yes | A task id from list_tasks. (max 500 chars) |
action | "pin" | "unpin" | "exclude" | "add" | "restore" | "refresh" | yes | — |
caseId | string | no | The id of an eval, from get_task (evalSet.rows) or list_task_simulations. (UUID) |
runId | string | no | A run id: a turn id from get_task's exampleRuns or a trace. (max 200 chars) |
proposal | object | no | An eval from draft_task_test, edited or not. Only with add. |
draft_task_test
Draft a task test from a run · write · scope mcp:write
Ask a model to draft a test from one completed run of a task: a name, the ask, the expected outcome and criteria. Spends model budget; saves nothing. Save it with change_task_eval_set action add, this runId and the proposal.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
taskId | string | yes | A task id from list_tasks. (max 500 chars) |
runId | string | yes | A completed run (turn id) of this task, from get_task's exampleRuns. (UUID) |
change_task_simulation
Change a task simulation · write · scope mcp:write
Edit what a fix is simulated with on one task: draft saves a hand-edited change (a FixChange, as get_fix returns it), add_test adds a run as a fix test (runId, expected, criteria), edit_test changes one (caseId). Then run_eval; mark_fix_shipped marks it live.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
taskId | string | yes | A task id from list_tasks. (max 500 chars) |
fixId | string | yes | A fix id from list_fixes, e.g. craft:<uuid>. (max 500 chars) |
action | "draft" | "add_test" | "edit_test" | yes | — |
change | object | no | draft: the whole change, e.g. { version: 1, patches: { tool_id: "new description" }, hide: [], add: [], collapse: [], dedupeRetries: [], topK: null, skillSteps: [], unsupportedReason: null }. |
runId | string | no | A run id: a turn id from get_task's exampleRuns or a trace. (max 200 chars) |
caseId | string | no | The id of an eval, from get_task (evalSet.rows) or list_task_simulations. (UUID) |
expected | object | no | add_test and edit_test: what the run should do. |
criteria | string | no | add_test and edit_test: what a judge checks, in words. (max 10000 chars) Default "". |
change_fix_eval_set
Change a fix's eval set · write · scope mcp:write
Edit the runs a fix is simulated on: create picks them from history, top_up adds more, add_run adds one (runId: a run or trace id), update_case changes a case's expected outcome (fields left out keep their value), remove_case drops one. Read it with get_fix_eval_set.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
fixId | string | yes | A fix id from list_fixes or get_fix, e.g. issue:<uuid>, craft:<uuid>. |
action | "create" | "top_up" | "add_run" | "update_case" | "remove_case" | yes | — |
runId | string | no | add_run: a run id or a trace id. (max 200 chars) |
caseId | string | no | update_case and remove_case: a caseId from get_fix_eval_set. (UUID) |
tool | string | null | no | The tool that should be in the first list the agent sees; null clears it. |
maxToolCalls | integer | null | no | — |
maxSearches | integer | null | no | — |
maxFailedCalls | integer | null | no | — |
avoidTools | string[] | no | Tools the run should not call. (max 50 items) |
endsWell | boolean | null | no | — |
maxSelfCorrections | integer | null | no | — |
maxCostUsd | number | null | no | — |
maxLatencyMs | integer | null | no | — |
outcome | string | no | What the run should achieve, in words. (max 2000 chars) |
criteria | string | no | What a judge checks, in words. (max 2000 chars) |
dismiss_fix
Dismiss a drafted fix · write · scope mcp:write
Dismiss a drafted tool change (a craft: fix) so it leaves the list and later readings do not draft it again. Other kinds are refused: a description rewrite is dismissed where it is applied. Returns the dismissed fix id.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
fixId | string | yes | A fix id from list_fixes or get_fix, e.g. issue:<uuid>, craft:<uuid>. |
change_scorer
Change a scorer · write · scope mcp:write
Create, update, delete, enable or disable a scorer of a task or of the suite. Kinds: check (field check) compares one run field with a value. expression (JSON rule) is JSONLogic over the run. judge (model judge) reads criteria. decision (model question) asks one closed question.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
action | "create" | "update" | "delete" | "enable" | "disable" | yes | — |
scorerId | string | no | update, delete, enable and disable: a scorer id from list_scorers. A legacy: id accepts only enable and disable. (max 600 chars) |
scope | "task" | "suite" | no | create: task or suite. |
taskId | string | no | create with scope task: the task id. (max 500 chars) |
name | string | no | (max 120 chars) |
kind | "check" | "expression" | "judge" | "decision" | no | create: check, expression, judge or decision. |
config | object | no | check: {path, op, value}. Ops: eq, ne, lt, lte, gt, gte, contains, not_contains, matches, not_matches, exists, not_exists. expression: {logic}. judge: {criteria}. decision: {question, options: [{id, label}], pass: [ids]}. |
goodThreshold | number | no | A run passes when its value is this or more. The default is 0.5. (0–1) |
change_eval
Change an eval · write · scope mcp:write
Change an eval. create needs a name and the ask. A model writes the missing fields. Other actions: update, archive, scorer_off, scorer_on, scorer_reset. set_step_answer sets a fixed answer at a run step. continue_from_step copies the eval up to a step and runs it. edit_reply changes an agent reply at a step and runs from it. set_run_settings and set_suite_run_settings set the models and limits.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
action | "create" | "update" | "archive" | "scorer_off" | "scorer_on" | "scorer_reset" | "set_step_answer" | "continue_from_step" | "edit_reply" | "set_run_settings" | "set_suite_run_settings" | yes | — |
evalId | string | no | Every action except create and set_suite_run_settings: an eval id from list_evals. (UUID) |
name | string | no | (max 200 chars) |
message | string | no | The ask the agent gets. (max 5000 chars) |
criteria | string | no | What a good run does, in words. The judge reads it. (max 5000 chars) |
expectedTool | string | null | no | — |
tasks | string[] | no | The task ids the eval belongs to. The eval reads their scorers. (max 20 items) |
systemPrompt | string | null | no | update: the system prompt of the scenario. |
context | object | null | no | update: the context values of the environment, for example a booking reference. |
tools | object[] | null | no | update: the tools the model gets. Each tool has a name, a description and JSON Schema parameters. |
runId | string | no | set_step_answer, continue_from_step and edit_reply: a run id from run_evals. (UUID) |
step | integer | no | set_step_answer, continue_from_step and edit_reply: a step index from the replay of get_eval_run. edit_reply needs an assistant step. (0–10000) |
reply | object | no | edit_reply: the new agent reply. It needs text or one call. |
target | "this" | "copy" | no | edit_reply: this changes this eval. copy saves a copy and leaves this eval as it is. Default "this". |
answer | string | no | set_step_answer: the answer the tool gives, as JSON or text. An answer with an error field is a failed call. (max 5000 chars) |
scorerId | string | no | scorer_off, scorer_on and scorer_reset: a scorer id from list_scorers. (max 600 chars) |
runSettings | object | no | set_run_settings and set_suite_run_settings: all the settings of that level. A missing or null setting uses the next level. An empty object clears the level. |
run_evals
Run evals · write · scope mcp:write
Queue a run of the suite, of the evals of one task, or of one eval. A run spends model budget. The result has runId. Use get_eval_run to read the run.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | no | Project id. Optional with a project API key, which implies it. (UUID) |
evalId | string | no | An eval id from list_evals. (UUID) |
taskId | string | no | A task id from list_tasks. (max 500 chars) |