MCP server
Changes: preview and apply
How an AI app you sign in with 42six changes your books: it previews, you confirm, then it applies.
How a change works
- You ask the app for a change, for example: categorize these five Amazon charges as Office Supplies.
- The app calls a preview tool. 42six checks the change against your books the way the app's own screens would, and keeps it as a plan. Nothing in your books changes.
- The app shows you the summary: the book, each account by code and name, every transaction or line it touches with its date and amount, the totals as debits and credits, and anything left out and why.
- Only when you say yes does the app call
apply_changewith that plan. 42six applies exactly what you saw, all at once or not at all, and records which app made the change.
What an app can change
- Categorize bank transactions that need review, or recategorize one.
- Move posted lines from one account to another.
- Post a journal entry.
- Reverse a manual journal entry.
- Add a categorization rule.
- Update tracker records: create, update or delete mileage vehicles, trips and log entries (reimbursements, REPS hours and STR hours), and save home-office year settings, categories (including archiving) and monthly expenses.
An app never locks or closes a period, closes a year, deletes ledger entries, accounts, books or documents, or touches billing, sign-in, members, invitations or bank connections. Books your accountant operates for you on a Managed plan refuse changes from an app.
Who can make changes
Only an app you signed in with 42six that asked to make changes, only on the books you approved for it, and only while you can still change those books yourself. An API key changes your books only if the owner allowed it when creating it, and only over the REST API. To stop an app making changes, disconnect it under Settings › Connected apps; a plan it previewed earlier is then refused. To stop a key, revoke it under Settings › API keys. To read without changes, use an API key that was not allowed to change the books.
When nothing changes
- A plan expires 10 minutes after its preview.
apply_changethen answersplan_expired, and the app previews again. - If the books changed since the preview (someone categorized the same transaction, or a period was locked), nothing is applied and the answer says so. Preview again.
- If the books are busy with another change, the answer is busy. Try again in a moment.
- An account name that matches more than one account answers
ambiguous_accountwith the choices; a preview with nothing left to change answersnothing_to_changewith each exclusion and its reason. - Applying the same plan again returns its first result. A change is never made twice.
- You can hold up to 20 open previews at once; past that the answer is 429
too_many_previews.
What a preview answers
Every preview tool answers plan_id, kind, summary and expires_at. The summary names the book, its books_locked_through date and each account. It lists the items it touches (for a move, the lines) with their amounts, at most 50; not_shown counts the rest. The count and the totals always cover every item, and apply changes every item, shown or not. This example is preview_categorize, with made-up ids and figures:
{
"plan_id": "00000000-0000-4000-8000-000000000070",
"kind": "categorize",
"summary": {
"account": {
"id": "00000000-0000-4000-8000-000000000011",
"code": "742000",
"name": "Software and Subscriptions",
"type": "expense",
"is_bank": false
},
"functional_class": null,
"count": 1,
"items": [
{
"id": "00000000-0000-4000-8000-000000000030",
"date": "2026-03-14",
"description": "EXAMPLE SOFTWARE CO",
"bank_account": {
"id": "00000000-0000-4000-8000-000000000010",
"code": "101000",
"name": "Operating Checking",
"type": "asset",
"is_bank": true
},
"direction": "money out",
"account_side": "debit",
"amount": "49.00",
"cents": "4900"
}
],
"not_shown": 0,
"not_shown_text": null,
"totals": {
"debit": {
"amount": "49.00",
"cents": "4900"
},
"credit": {
"amount": "0.00",
"cents": "0"
}
},
"exclusions": [],
"year_end_close_redone": false,
"kind": "categorize",
"book": {
"id": "00000000-0000-4000-8000-000000000001",
"name": "Example Studio LLC"
},
"books_locked_through": "2026-02-28",
"expires_at": "2026-04-02T14:10:00Z"
},
"expires_at": "2026-04-02T14:10:00Z"
}What apply_change answers
{
"plan_id": "00000000-0000-4000-8000-000000000070",
"kind": "categorize",
"result": {
"count": 1
},
"request_id": "00000000-0000-4000-8000-000000000080",
"replayed": false
}- result depends on the kind: categorize { count }, recategorize {
entry_id}, move { moved },journal_entry{entry_id}, reverse {reversal_entry_id},create_rule{rule_id}. - replayed is true when the plan was already applied or refused: the answer is the first one, and nothing changes again.
Refusals
A refusal is a tool result with isError set. Its text is JSON with error, a code, and error_description, in words, plus choices, exclusions or source_accounts where they apply. The codes, with the HTTP status 42six gives them:
invalid_request(400): the arguments do not make a change.account_not_found(422) andambiguous_account(422, with up to 20 choices): the account named did not match one active account.nothing_to_change(422): everything was left out; exclusions says why.invalid_change(422): the change itself cannot be made, for example a journal entry that does not balance.- forbidden (403): you cannot change these books, or this entry cannot be changed this way.
not_found(404): no such transaction, line, entry or plan in this book for you.- conflict (409), busy (409),
plan_expired(409) andstale_plan(409): something changed or is changing. Preview again, or try again in a moment when busy. payment_required(402): the books cannot take changes until billing is settled; the description says why.period_locked(423): the change falls on or before the books' locked-through date.temporarily_unavailable(503) andserver_error(500): nothing changed; try again.- Two answers are HTTP errors, not tool results: 429
too_many_previews, and 401 when the sign-in has expired or access to the books has changed. A 403insufficient_scopeis HTTP when the app was not allowed to make changes at all, and a tool result when only this book does not allow them. - At apply, forbidden,
not_found,stale_plan,invalid_changeandperiod_lockedrefuse the plan for good: applying it again answers the same refusal. After conflict, busy,payment_required,temporarily_unavailableorserver_errorthe plan stays open and can be applied again before it expires.