# AI Answers tools

MCP tools: Brand identity, scenarios, probe runs and their answers.

### `get_ai_answers`

AI Answers for a property: brand identity, scenarios (the buyer questions probed), limits, credit balance,
recent probe runs, and the latest finished run's per-scenario results.

- **Permission:** `read`
- **Plan:** AEO recommendations, from the Free plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |

### `set_brand_identity`

Set how Keywrds recognises your brand in AI answers: its name, other names it goes by, and extra domains
you own. Fields you leave out keep their current values.

- **Permission:** `write`
- **Plan:** AEO recommendations, from the Free plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `brand_name` | string | no |  |
| `aliases` | list of strings | no |  |
| `extra_domains` | list of strings | no |  |

### `suggest_scenarios`

Draft new scenarios (buyer questions to probe) from the ledger and site intent. They arrive as suggestions
to review and activate. Free, limited per day. Without confirm=true it only previews.

- **Permission:** `spend`
- **Plan:** AEO recommendations, from the Free plan
- **Spending:** previews only, unless called with `confirm` set to true

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `confirm` | true or false | no | `false` |

### `add_scenario`

Add a scenario by hand: a question a buyer might ask an AI assistant, without naming your brand. `kind` is
choice ("which X should I use?") or how_to. It's added as a suggestion; activate it to include it in runs.

- **Permission:** `write`
- **Plan:** AEO recommendations, from the Free plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `question` | string | yes |  |
| `kind` | one of `choice`, `how_to` | no | `choice` |
| `category` | string | no | `` |

### `activate_scenario`

Include a scenario in probe runs. A property has a limited number of active scenarios.

- **Permission:** `write`
- **Plan:** AEO recommendations, from the Free plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `scenario_id` | integer | yes |  |

### `retire_scenario`

Stop probing a scenario. Its past results are kept.

- **Permission:** `write`
- **Plan:** AEO recommendations, from the Free plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `scenario_id` | integer | yes |  |

### `edit_scenario`

Change a scenario's question, category or kind. Editing an active scenario's question replaces it with a
new scenario (the old one is retired, so its results stay comparable); the new id is returned.

- **Permission:** `write`
- **Plan:** AEO recommendations, from the Free plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `scenario_id` | integer | yes |  |
| `question` | string | no |  |
| `category` | string | no |  |
| `kind` | one of `choice`, `how_to` | no |  |

### `run_probes`

Ask several AI assistants every active scenario and measure how your brand shows up. Uses credits: the run
is charged for its actual model cost when it finishes, capped by your balance. One run at a time; poll
get_run. `baseline` marks it as a repeat for measuring normal variation. Without confirm=true it only previews.

- **Permission:** `spend`
- **Plan:** AEO recommendations, from the Free plan
- **Spending:** previews only, unless called with `confirm` set to true

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `baseline` | true or false | no | `false` |
| `confirm` | true or false | no | `false` |

### `get_run`

A probe run: its status, cost and credits charged, and results for each scenario (who the assistants
recommended, whether your brand appeared, citations).

- **Permission:** `read`
- **Plan:** AEO recommendations, from the Free plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `run_id` | integer | yes |  |

### `get_scenario_answers`

The raw answers each assistant gave for one scenario in a run, with the brands each answer picked or
mentioned and the URLs it cited.

- **Permission:** `read`
- **Plan:** AEO recommendations, from the Free plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `run_id` | integer | yes |  |
| `scenario_id` | integer | yes |  |
