# Presence ledger tools

MCP tools: Next actions, decisions, directions, site intent and briefs.

*Plans: Starter and Business*

### `get_next_actions`

What to work on next in the presence ledger: entries waiting for a decision (accept, reject, defer...)
and accepted entries waiting to be acted on, highest score first.

- **Permission:** `read`
- **Plan:** Presence ledger (decisions, outcomes, intent, briefs), from the Starter plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `limit` | integer | no | `10` |

### `get_entry`

One ledger entry with its evidence, decision and direction history, and observed outcomes.

- **Permission:** `read`
- **Plan:** Presence ledger (decisions, outcomes, intent, briefs), from the Starter plan

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

### `record_decision`

Record a decision on a ledger entry and move its status. Decisions are kept as history and show in the
app as made by this agent. Use mark_acted once the change is live, so Keywrds can measure the outcome.

- **Permission:** `write`
- **Plan:** Presence ledger (decisions, outcomes, intent, briefs), from the Starter plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `entry_id` | integer | yes |  |
| `decision` | one of `acknowledge`, `accept`, `reject`, `defer`, `mark_acted`, `close` | yes |  |
| `reason` | string | no | `` |

### `set_direction`

Set the direction for a ledger entry: a short instruction for how to handle it (for example "merge into
/pricing"). The entry's recommendations regenerate with it. An empty direction clears it.

- **Permission:** `write`
- **Plan:** Presence ledger (decisions, outcomes, intent, briefs), from the Starter plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `entry_id` | integer | yes |  |
| `direction` | string | yes |  |

### `get_intent`

The property's confirmed site intent (purpose, audience, main conversion, topics to avoid, notes), which
Keywrds uses to judge opportunities and write recommendations.

- **Permission:** `read`
- **Plan:** Presence ledger (decisions, outcomes, intent, briefs), from the Starter plan

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

### `set_intent`

Save a new version of the property's site intent. Fields you leave out keep their current values; pass an
empty string to clear one. Earlier versions are kept as history.

- **Permission:** `write`
- **Plan:** Presence ledger (decisions, outcomes, intent, briefs), from the Starter plan

| Argument | Type | Required | Default |
|---|---|---|---|
| `project_id` | integer | yes |  |
| `site_purpose` | string | no |  |
| `audience` | string | no |  |
| `primary_conversion` | string | no |  |
| `topics_to_avoid` | string | no |  |
| `notes` | string | no |  |

### `get_latest_brief`

The latest presence-ledger brief for the property: a narrated summary of what changed over the period.

- **Permission:** `read`
- **Plan:** Presence ledger (decisions, outcomes, intent, briefs), from the Starter plan

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

### `generate_brief`

Generate a new presence-ledger brief now. Free, but limited to one per property per hour from agents.
Without confirm=true it only previews.

- **Permission:** `spend`
- **Plan:** Presence ledger (decisions, outcomes, intent, briefs), from the Starter 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` |
