> ## Documentation index
> Fetch the complete documentation index at: https://docs.heurastudios.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tools reference

> The four Agent mode tools, every action they take, and the fields each action reads.

Source: https://docs.heurastudios.com/agents/tools/

Agent mode has four tools. `heura_read` takes the action in `what`; the other three take it in `do`. Most actions also take `model`, the model's id.

```json title="A call, as an MCP client sends its arguments"
{ "do": "add_demo", "model": "quarry-3f9a1c2b7d", "q": "How many orders shipped last month?", "a": "SELECT count(*) FROM orders WHERE ..." }
```

The tools use the Studio's own names for things: a **policy** is a rule or fact, a **demo** is an example, a **correction** is a fix, and an **eval** is a test question.

## heura_read

Look. Read-only.

| `what` | Fields | Returns |
| --- | --- | --- |
| `models` | | Every model the account can open. Start here. |
| `state` | `model` | The model's full picture: script, counts, versions, settings. |
| `changes` | `model`, `since` | What changed since a cursor. Read this instead of `state` again. |
| `policies` | `model`, `id` | Rules and facts. |
| `demos` | `model`, `id` | Examples. |
| `corrections` | `model`, `id` | Fixes. |
| `files` | `model`, `id` | Files. |
| `evals` | `model`, `id` | Test questions. |
| `results` | `model` | Test results, with what each run fixed and broke. |
| `runs` | `model` | Training runs and their rounds. |
| `serving` | `model`, `full` | The endpoint, website agent and live version. |
| `chat` | `model`, `session` | A chat's messages. |
| `interview` | `model` | The interview and what it covered. |
| `bases` | | The base models the account can build on. |
| `engines` | | The engines the account can answer with. |
| `usage` | | The account's usage. |

Lists return up to 50 rows by default; use `limit` (up to 200) and `offset` to page. Long text in a list is cut short; pass `id` (and `full: true`) for one row whole.

## heura_write

Build. Adds and edits reach the model's users at once.

| `do` | Fields |
| --- | --- |
| `create_model` | `name`, `purpose`, `voice`, `kit`, `base`, `color`, `script` |
| `update_model` | `name`, `purpose`, `voice`, `color`, `abilities`, `daily_cap` |
| `add_policy` | `text`, `kind` (`rule` or `fact`), `topic` |
| `edit_policy` | `id`, `text` |
| `add_demo` | `q`, `a` |
| `edit_demo` | `id`, `q`, `a` |
| `import_demos` | `csv` (question and answer rows) |
| `add_file` | `name`, `text` or `base64` |
| `add_eval` | `q`, `must`, `must_not`, `ideal` |
| `edit_eval` | `id`, `q`, `must`, `must_not`, `ideal` |
| `evals_from_demos` | |
| `ask` | `q`, `session`, `why` |
| `good` | `message_id`, `session` |
| `fix` | `message_id`, `answer`, `session` |
| `interview` | `text` |
| `run_evals` | |
| `compare` | `engine` (`kind`, `connection`, `model`) |
| `train` | |
| `evaluate` | `version` (an uploaded version) |
| `check_import` | `repo` |
| `retry_import` | `id` |
| `export` | |

All with `model` where the action is about one.

## heura_release

Release. Changes what a model's users get.

| `do` | Fields |
| --- | --- |
| `promote` | `version` (`0` is the base model) |
| `plug`, `unplug` | `wire` |
| `add_tool`, `remove_tool` | `node` |
| `auto` | `run_at` (1 to 100, `0` is off), `nightly_evals` |
| `update_serving` | `title`, `greeting`, `color`, `allowed_sites` |
| `new_api_key` | |
| `switch_engine` | `engine` (`kind`: `heura` or `connection`, `connection`, `model`) |

## heura_remove

Remove. Deletes or cancels.

| `do` | Fields |
| --- | --- |
| `delete_model` | |
| `remove_policy`, `remove_demo`, `remove_file`, `remove_eval` | `id` |
| `unqueue` | Takes the model's run out of the line. |
| `cancel_openai` | Cancels a GPT fine-tune on OpenAI. |
| `cancel_import`, `delete_import` | `id` |
| `clear_chat` | `session` |

## Refusals

A refused call returns the Studio's own words, the status, and anything that helps, like `retry_after`. The instructions an agent receives on connecting say it plainly: a refusal is the Studio's own words; do what it says and call again.

```json
{ "error": "Add at least one test question first. Every run is scored on the tests before and after, and a checkpoint that breaks more test questions than it fixes never goes live.", "status": 400 }
```
