---
name: evenroo
description: Record and settle shared expenses in Evenroo groups through its MCP server (tools such as list_groups, add_expense, add_itemized_expense, get_balances, record_transfer, claim_items, undo_last). Use when the person asks to log a bill or receipt (including receipts found in their email), split a cost, check who owes whom, settle up, claim their items on a shared bill, copy rows from a shared spreadsheet into a group, undo something an agent did, or summarise what a group spent.
---

# Evenroo through an agent

Evenroo splits shared costs in groups. The MCP server (`https://evenroo.com/mcp`, Streamable HTTP) is
reached with an agent key (`Authorization: Bearer kwk_…`) made in the app under a group's Settings →
Connect an agent. One key covers the groups the person ticked and, in each, acts as the person they
are on that device. Older per-group tokens (`grk_…`) still work for their one group. If no Evenroo
tools are connected, tell the person to make a key there and add the server; setup steps:
https://evenroo.com/for-agents/

## Rules that apply to every task

- Call `list_groups` first: each group's `group_id`, name, base currency, who the key acts as and
  its access. Pass `group_id` to every other tool (it may be left out only when the key covers one
  group). Then `get_group` for the people, the base currency and the default split. Refer to
  people by those names (a unique prefix is enough) or by id.
- Access is one of three levels. **Read only**: reads only. **Add and edit**: can add and change,
  and remove only what this key added. **Full**: can also delete, unless the group turned on
  "Agents can't delete". A refused write says why; tell the person rather than working around it.
- Amounts are decimal strings in the currency's own units, exactly as printed: `"12.50"`, `"1250"`
  for JPY. Never numbers, never rounded. Too many decimals is refused, not rounded.
- Pass a `request_id` you make up on every write (`"dinner-2026-11-21"`). Retrying the same call
  with the same `request_id` never writes twice; reusing it for a different change fails with
  `idempotency_mismatch`. A refused write uses its `request_id` up: retry with a new one.
- Before several writes in a row, preview: `add_expense` and `add_itemized_expense` take
  `preview: true` and return everyone's share without saving. Show the person the list and wait
  for a yes. Then save with the same arguments and `request_id`.
- Every change is visible to the whole group and labelled with the key's name ("Claude for Ana").
  The history keeps every version (`get_entry`, `list_activity`).
- Agents cannot create, import or delete a group, make or revoke keys, see payment details, or
  open, finalise or cancel a bill for claiming; send the person to the app for those.

## Undo a mistake

1. `list_changes` shows this key's own recent changes (seq, time, session, whether undone).
2. `undo_last` (`count`) undoes the most recent ones; `undo_changes` undoes chosen `seqs` or a whole
   `session` (`"current"` = this one). Pass `preview: true` first and show what will change.
3. Undo writes new changes, so nothing is erased. Something a person changed since is left alone
   unless you pass `include_later_changes: true` (ask first). Only your own changes can be undone,
   and lines claimed with `claim_items` are not covered: take a claim back with `units: 0`.

## Receipts from email → itemised expenses

1. Use the person's own email tools to find the receipts (Evenroo never sees email). For each one,
   read merchant, date, currency, lines, tax, tip, service, discount and the printed total.
2. Ask who had which lines if it is not obvious; a shared line lists several people.
3. `add_itemized_expense` with `preview: true`, `items` (`{name, amount, people}`), the extras,
   `total` (the printed total, so Evenroo checks the sum), `currency`, `date`, `paid_by` and a
   `request_id` such as `"receipt-<merchant>-<date>"`. Show who pays what.
4. On a yes, the same call with `preview: false`. A single-amount bill with an even split is just
   `add_expense`.
5. If a photo is already on an entry, `get_receipt` returns it as an image; record the lines with
   `set_entry_items`. `attach_receipt` stores a photo the person gave you (base64, ≤ 2 MB).

## Claim your items on a shared bill

1. `get_claims` without `id` lists bills waiting for claims; with `id` it shows each line, who
   claimed what, units left, each person's total so far and what is unclaimed.
2. `claim_items` with `id`, `items` (each by line number or `name`; `units` for multi-quantity
   lines; `share_with` or `shared: true` for a shared line) and `done: true` when the person has
   claimed everything. `member` defaults to the person the key acts as. If someone took the last
   unit first, the result says what this person got.

## Monthly check → propose transfers

1. `get_balances`: each person's net (positive = is owed) and `settle_up`, the fewest payments.
2. Show the plan. Record only payments the person confirms were made: `record_transfer` with
   `from`, `to`, the amount string from the plan and a `request_id` like
   `"settle-<from>-<to>-<date>"`.
3. `get_stats` with `from`/`to` for the month (by category, person and month) and
   `list_activity` for what changed, if they want a summary.
4. Someone still owes the key's person? `nudge_member` sends the app's reminder (once per pair
   per day; `no_devices` means their notifications are off).

## A shared spreadsheet, row by row

1. Read the sheet with the person's own tools. Map columns to `title`, `amount`, `currency`,
   `date`, payer and who shares. Names must match `get_group`; ask about any that do not (add a
   missing person with `add_member` only if they say so).
2. Make one `request_id` per row from the sheet and row (`"sheet-trip-row-17"`), so re-running the
   import after an error skips the rows already saved.
3. Preview the first rows with `add_expense` and `preview: true`; show them. After a yes, save the
   rows one call each, then `get_balances`. If the sheet has its own totals, compare them.
4. Payments between people in the sheet are `record_transfer`, not expenses; refunds are
   `add_income`.

## Fixing and tidying

- Wrong amount or payer: `list_entries` (filter by `query`, `member`, dates) → `update_entry` with
  only the fields that change.
- Duplicate: `delete_entry` (undo with `restore_entry`).
- Rename a person or the group, change the default split: `update_member`, `update_group`. Archive
  someone who left with `update_member` and `archived: true`; only possible at a zero balance.
- Repeating costs: `create_recurring`, `update_recurring` (future occurrences only),
  `stop_recurring`, `list_recurring`.
- Notes on an entry: `add_comment`; `edit_comment` / `delete_comment` only for the key's person's own.
- The whole group as a file: `export_csv` (the same CSV the app exports).

Errors come back as `{error: {code, message}}` with the reason in plain words; read it and fix the
call rather than guessing. All tools and arguments: https://evenroo.com/agents/tools/
