> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.rubrichq.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.rubrichq.io/_mcp/server.

# Tools reference

You don't call these tools yourself: describe what you want and your assistant picks them. This page shows what's possible and which tools spend credits.

**Kinds:**

* **Read:** only reads. Available in [read-only mode](/documentation/mcp/setup#read-only-mode).
* **Write:** creates or changes data.
* **Billed:** places calls or runs AI evaluation, so it spends credits.
* **Destructive:** deletes or archives. Clients that support it ask you to confirm first.

Every tool except the Co-Pilot ones also accepts an optional `workspace_id`. See [Workspaces](/documentation/mcp/overview#workspaces).

## Workspace

| Tool             | Kind | What it does                                                                                                       |
| ---------------- | ---- | ------------------------------------------------------------------------------------------------------------------ |
| `list_languages` | Read | Languages an agent can use.                                                                                        |
| `list_personas`  | Read | Simulated-caller personas: built-in ones plus your custom ones. Each sets the caller's voice, accent and language. |

## Agents

| Tool               | Kind        | What it does                                                                                                                      |
| ------------------ | ----------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `list_agents`      | Read        | The agents you're testing, newest first.                                                                                          |
| `get_agent`        | Read        | An agent's full setup: prompt, opening message, phone number, web channel, language and enabled metrics.                          |
| `create_agent`     | Write       | Add an agent. RubricHQ-hosted agents need a prompt, language and opening message; Vapi and Retell agents need their assistant ID. |
| `update_agent`     | Write       | Change any of an agent's settings.                                                                                                |
| `set_agent_metric` | Write       | Turn one metric on or off for an agent.                                                                                           |
| `archive_agent`    | Destructive | Archive an agent. Its runs and calls are kept. Reversible from the dashboard.                                                     |

## Scenarios

| Tool               | Kind        | What it does                                                                                                                                                                         |
| ------------------ | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `list_scenarios`   | Read        | Test scenarios, optionally for one agent.                                                                                                                                            |
| `get_scenario`     | Read        | A scenario's caller instructions, expected outcome, persona, conditions, metrics and agents.                                                                                         |
| `create_scenario`  | Write       | Create a simulated caller with a goal and the outcome the agent must reach. Supports [conditional scenarios](/documentation/core-concepts/scenarios), tags and per-scenario metrics. |
| `update_scenario`  | Write       | Change a scenario.                                                                                                                                                                   |
| `archive_scenario` | Destructive | Archive a scenario. Past runs are kept.                                                                                                                                              |

## Simulations

| Tool                | Kind   | What it does                                                                                                                                                                   |
| ------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `run_scenario`      | Billed | Place one simulated call for a scenario, by phone or web.                                                                                                                      |
| `rerun_scenario`    | Billed | Repeat a scenario's last run with the same settings.                                                                                                                           |
| `create_test_run`   | Billed | Run a suite of scenarios (by ID or tag), 1 to 5 times each, with a pass threshold. The same thing the [GitHub Action](/documentation/integrations/git-hub-actions-ci-cd) does. |
| `get_test_run`      | Read   | A suite's verdict, pass rate, failed runs with reasons, and report link.                                                                                                       |
| `wait_for_test_run` | Read   | Wait until a suite finishes, then return its verdict.                                                                                                                          |

## Runs

| Tool                | Kind   | What it does                                                                                            |
| ------------------- | ------ | ------------------------------------------------------------------------------------------------------- |
| `get_run`           | Read   | One run: status, full transcript, recording link, summary and every metric result with its explanation. |
| `wait_for_run`      | Read   | Wait until a call has ended and been scored, then return it.                                            |
| `rerun_run_metrics` | Billed | Re-score a run's transcript without a new call, for example after editing a metric.                     |

## Metrics

| Tool            | Kind        | What it does                                                                                                                  |
| --------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `list_metrics`  | Read        | Built-in and custom metrics, optionally only those that apply to one agent.                                                   |
| `get_metric`    | Read        | A metric's full definition and which agents use it.                                                                           |
| `create_metric` | Write       | Create a custom metric: an LLM judge (pass/fail, rating, choice or number), a phrase check, an allowed-answers check or code. |
| `update_metric` | Write       | Change a custom metric. Built-in metrics can't be edited.                                                                     |
| `delete_metric` | Destructive | Permanently delete a custom metric.                                                                                           |

## Observability

| Tool                 | Kind        | What it does                                                                            |
| -------------------- | ----------- | --------------------------------------------------------------------------------------- |
| `list_calls`         | Read        | Production calls for an agent, filtered by when they happened or were sent.             |
| `get_call`           | Read        | One production call: transcript, recording, processing status and every metric verdict. |
| `ingest_call`        | Billed      | Send a production call (recording and/or transcript) for scoring.                       |
| `update_call`        | Write       | Change a call's label, tag, customer number, end reason or metadata.                    |
| `rerun_call_metrics` | Billed      | Re-score a production call, all metrics or chosen ones.                                 |
| `delete_call`        | Destructive | Permanently delete a production call and its results.                                   |

## Co-Pilot

[Co-Pilot](/documentation/core-concepts/co-pilot) answers questions about your production calls and test runs. Through MCP, your assistant gets the same answers you'd see in the dashboard: text, tables, chart data, quoted call excerpts, reasons grouped by cause, and suggested follow-ups.

| Tool                         | Kind   | What it does                                                                                                                            |
| ---------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| `ask_copilot`                | Billed | Ask a question in plain words. Continue a chat by passing its `conversation_id`.                                                        |
| `copilot_follow_up`          | Billed | Use one of the follow-ups Co-Pilot suggested, such as "Show the calls".                                                                 |
| `list_copilot_conversations` | Read   | Your Co-Pilot chats in this workspace.                                                                                                  |
| `get_copilot_conversation`   | Read   | A whole Co-Pilot chat, questions and answers.                                                                                           |
| `get_copilot_deep_read`      | Read   | Progress or result of a deep read.                                                                                                      |
| `run_copilot_deep_read`      | Billed | Start a deep read Co-Pilot offered: reading many conversations one by one for a more thorough answer. Co-Pilot gives an estimate first. |
| `cancel_copilot_deep_read`   | Write  | Decline or stop a deep read. Only what was already read is charged.                                                                     |

> **Note**
>
> Co-Pilot always answers for the API key's own workspace, and it doesn't accept `workspace_id`.

## Ready-made prompts

Clients that support MCP prompts (for example as slash commands) also get:

| Prompt                                                  | What it does                                                                                                                                                           |
| ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Test an agent** (`test_agent`)                        | Finds the agent and its scenarios, tells you how many calls it will place and waits for your OK, runs the suite, then explains each failure and suggests a prompt fix. |
| **Review production calls** (`review_production_calls`) | Reads an agent's recent production calls, groups the failures by root cause with quotes, and ranks them.                                                               |

## Resources

Clients that support MCP resources can attach a run or a call to the conversation as context:

* `rubrichq://runs/{run_id}`: a run with its transcript and metric results.
* `rubrichq://calls/{call}`: a production call, by ID or by your `call_identifier`.