# Amiril MCP server tools

Every tool on Amiril's MCP server, grouped by what it is for. See which tools change data and which changes the assistant asks you about first.

Read tools are on both `https://api.amiril.ai/mcp` and the read-only `https://api.amiril.ai/mcp/readonly`. Write tools are only on the first. The one exception is [`amiril_feedback_send`](#feedback). Most tools act in one environment, such as Production or Development, and use Production unless the assistant names another.

Six write tools carry MCP's destructive hint because they change what live agents do or rewrite stored data. For five of them, the tool's description tells the assistant to ask you before it does any of these:

- publish a rule, with `amiril_rule_publish`
- change a rule's mode, with `amiril_rule_set_mode`
- delete a dashboard, an [Agent System](#agent-systems) or a trace file, with `amiril_delete`
- merge or archive an agent, with `amiril_agent_update`
- change where an environment reads agent names from, with `amiril_agent_source_set`

The sixth, `amiril_lens_save`, can regroup the past runs of an [Agent System](#agent-systems). Its description tells the assistant this, but not to ask you first.

## Workspace [#workspace]

| Tool | What it does | Type |
| --- | --- | --- |
| `amiril_workspace` | Who you are, your role, the environments and how fresh the data is | Read |
| `amiril_schema` | The shapes of filters, dashboards and Agent Systems, and the rule language in brief | Read |

## Agents and tool servers [#agents-and-tool-servers]

| Tool | What it does | Type |
| --- | --- | --- |
| `amiril_agents_list` | One environment's agents, with counts of their runs, tool calls and [anomalies](#runs-and-traces) | Read |
| `amiril_tools_list` | The tool servers and the tool names seen in traces | Read |
| `amiril_agent_update` | Rename, describe or tag an agent, merge it into another agent or archive it | Write, destructive |
| `amiril_agent_source_set` | Set where an environment reads each run's agent from. The choices are the trace name, a trace metadata field or none, which puts every run under one agent | Write, destructive |

## Runs and traces [#runs-and-traces]

An **anomaly** is a run unusual enough to need your review. Your [review budget](/monitor/signals#set-your-review-budget) sets how many runs that is. Amiril opens an [issue](/monitor/issues) when three anomalies share one problem, or as soon as you confirm one. The tools below also take work items, which [Agent Systems](#agent-systems) explains.

| Tool | What it does | Type |
| --- | --- | --- |
| `amiril_query` | Runs or work items that match a filter, ranked by rarity | Read |
| `amiril_anomalies_list` | Anomalies among runs and work items, strongest first | Read |
| `amiril_anomaly_get` | Why one is an anomaly: its rarity and the rarity factors behind it | Read |
| `amiril_trace_get` | The steps of a run, with their inputs and outputs | Read |
| `amiril_verdict_set` | Confirm an anomaly as an issue or mark it as normal, like **Confirm issue** and **Mark as normal** on its run page | Write |

## Trace files [#trace-files]

| Tool | What it does | Type |
| --- | --- | --- |
| `amiril_imports_list` | Uploaded trace files, newest first | Read |
| `amiril_import_get` | One upload's status and counts | Read |
| `amiril_import_start` | Open an upload and return the curl command that sends the file | Write |
| `amiril_import_confirm` | Tell Amiril the file is uploaded, so it reads it | Write |

## Dashboards [#dashboards]

| Tool | What it does | Type |
| --- | --- | --- |
| `amiril_dashboards_list` | The dashboards you can see | Read |
| `amiril_dashboard_get` | One dashboard and its widgets | Read |
| `amiril_dashboard_preview` | What each widget would show, before saving | Read |
| `amiril_dashboard_save` | Create a dashboard or replace its widgets, and return its URL | Write |

## Agent Systems [#agent-systems]

An **Agent System** is a group of agents that hand the same work along, such as three agents that each handle part of one payment. That whole payment is one **work item**, and Amiril finds its runs by an id they all carry. Amiril ranks work items by rarity like runs, so a work item can be an anomaly too.

In the web app, Agent Systems are under **Systems** in the sidebar. The tools below have `lens` in their names, because the API calls an Agent System a lens.

| Tool | What it does | Type |
| --- | --- | --- |
| `amiril_lenses_list` | The Agent Systems, and the metadata keys and payload paths a new one could use as its id | Read |
| `amiril_lens_preview` | How many recent runs a candidate id would link, and into how many work items | Read |
| `amiril_lens_save` | Create or change an Agent System, and return its URL | Write, destructive |

## Rules [#rules]

Each rule has a mode in each environment. **Off** leaves the rule out, **Shadow** records what it would do and lets every call run, and **Enforce** blocks or flags calls.

| Tool | What it does | Type |
| --- | --- | --- |
| `amiril_rules_list` | Every rule as rule text, with its mode in each environment | Read |
| `amiril_rule_get` | One rule: its text, settings, modes and versions | Read |
| `amiril_rule_validate` | Check rule text without saving it | Read |
| `amiril_rule_preview` | A rule's decision on a sample call, and the messages it writes for the agent and for a reviewer | Read |
| `amiril_rule_save` | Create a rule or save a draft. Agents run it only once it is published, and a new rule starts in Shadow | Write |
| `amiril_rule_publish` | Make a rule's latest draft the version agents run | Write, destructive |
| `amiril_rule_set_mode` | Switch a rule between Off, Shadow and Enforce in one environment | Write, destructive |
| `amiril_backtest_run` | Start a backtest, which replays a rule over past calls and saves how often it would have fired | Write |
| `amiril_backtest_get` | A backtest's result, with example runs | Read |

## Deletion [#deletion]

| Tool | What it does | Type |
| --- | --- | --- |
| `amiril_delete` | Delete a dashboard, an Agent System or an uploaded trace file | Write, destructive |

No tool deletes a rule or an agent. To stop a rule, set it to Off with `amiril_rule_set_mode`. To retire an agent, archive it with `amiril_agent_update`.

## Docs [#docs]

| Tool | What it does | Type |
| --- | --- | --- |
| `amiril_docs_search` | The docs sections that best match a question | Read |
| `amiril_docs_grep` | Lines that match a regular expression, for exact strings | Read |
| `amiril_docs_get` | One page as Markdown, or one section of it | Read |
| `amiril_docs_list` | The list of docs pages, to browse when there is nothing to search for | Read |

## Feedback [#feedback]

| Tool | What it does | Type |
| --- | --- | --- |
| `amiril_feedback_send` | Send Amiril feedback, such as a question the docs did not answer or a tool that was missing | Write |

Your assistant writes the feedback in its own words, and it reaches the Amiril team with your workspace and user attached. The tool tells the assistant to send it straight away and to let you know afterwards. Nothing in your workspace changes, so the tool is on the read-only endpoint too.

## Skills [#skills]

The server also offers three skills. A skill is a step-by-step guide, and your assistant loads one by itself when your request matches it. Claude Code puts the server's name in front of each skill, so with the server added as `amiril` they are:

- `amiril:write-rule` to write, test and save a rule
- `amiril:investigate-anomaly` to find out why a run stood out
- `amiril:instrument-repository` to connect the agent in your repository, with its traces and the SDK

Clients that do not load skills still get the same guides, because the assistant finds them through the docs tools.

## Next steps

- [Connect an AI assistant to Amiril](https://docs.amiril.ai/assistants/connect.md): Add Amiril's MCP server to Claude Code, the Claude app, Cursor, VS Code or ChatGPT. Sign in with your Amiril account, then ask about your agents.
- [Give your AI assistant Amiril's docs with llms.txt](https://docs.amiril.ai/assistants/docs.md): Every page of Amiril's docs is Markdown, listed in llms.txt. Your AI assistant can fetch or search them, and a note you add to your AGENTS.md tells it where.
- [HTTP API](https://docs.amiril.ai/reference/api.md): Call Amiril's HTTP API from your own code with an OAuth access token. Find the base URL, the sign-in steps for a token, the environment header and the errors.

## More detail

- [MCP server tools](https://docs.amiril.ai/assistant/mcp/tools.md): Every tool on Amiril's MCP server: what it does, whether it changes data, and its inputs. Generated from the server's tool registry.
- [Permissions and roles](https://docs.amiril.ai/assistant/permissions.md): Every permission a change in Amiril can require, and which of the built-in roles, admin and member, has it.
