Tool reference
Change tools
The nine change tools, MCP only, for an app signed in with 42six that you allowed to propose changes.
preview_categorize
Preview categorizing bank feed transactions of one book to one account. Transactions that cannot be categorized (already categorized, in a locked period, reserved for a payout, still pending at the bank) are excluded with the reason; one already-categorized transaction on its own is previewed as a recategorization. Nothing changes: the answer is a plan_id, its expires_at (10 minutes later) and a summary for the user to confirm before apply_change.
MCP only, for an app signed in with 42six that you allowed to propose changes (books:write).
| Parameter | Description |
|---|---|
| entityRequired | String, a uuid: the book (entity) id, from list_books. |
| item_idsRequired | Array of 1 to 500 uuid strings: bank transaction ids, from needs_review or list_bank_transactions. Repeats count once. |
| accountRequired | String, 1 to 200 characters: the account by its id, role key, code or exact name (the name is matched without regard to case), from list_accounts. Only active accounts of this book match. A name that matches more than one account is refused with the choices. |
| functional_classOptional | Nonprofit books only: program, management or fundraising; otherwise null or absent. |
{
"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"
}The answer is the text of the tool result, as JSON. A refusal is a tool result with isError set whose text is { "error": "...", "error_description": "..." } plus the fields named below.
- Each transaction that cannot be categorized is left out and listed in exclusions as { id, code, reason, sqlstate }. Codes include
not_in_book,payout_reserved,business_marked,already_categorized, excluded,no_bank_account,zero_amount,own_bank_account,period_locked,bank_account_inactiveand pending. The list can grow: show reason, which says why in words, for any code you do not know. nothing_to_change(422): every transaction was left out; exclusions says why.- One transaction that is already posted is previewed as a recategorization (kind recategorize): its summary has item,
current_account,current_functional_class, account andfunctional_class, and it is refused whole, not excluded, when it cannot move. account_not_found(422): no active account of this book matches account.ambiguous_account(422): more than one does; choices lists up to 20, each { id, code, name, type }.invalid_change(422), conflict (409),period_locked(423),not_found(404) or forbidden (403): the ledger's own rule refused the whole change;error_descriptionsays which, and sqlstate is carried beside it.- A Personal book is refused for every change (
invalid_change, "Personal books are marked, not posted."). Books an accountant keeps for you are refused with forbidden (403). - busy (409): the books are held by another change; try again shortly.
too_many_previews: twenty of this person's previews are already waiting; it answers at the HTTP level, 429 with Retry-After: 60.
preview_move
Preview moving posted journal lines, all from one account, to another account. Lines that cannot move (a bank line, cleared by a bank transaction, in a locked period, a year-end closing entry) are excluded with the reason. Nothing changes: the answer is a plan_id, its expires_at (10 minutes later) and a summary for the user to confirm before apply_change.
MCP only, for an app signed in with 42six that you allowed to propose changes (books:write).
| Parameter | Description |
|---|---|
| entityRequired | String, a uuid: the book (entity) id, from list_books. |
| line_idsRequired | Array of 1 to 1000 uuid strings: journal line ids, from list_journal_lines. Repeats count once. |
| accountRequired | String, 1 to 200 characters: the account by its id, role key, code or exact name (the name is matched without regard to case), from list_accounts. Only active accounts of this book match. A name that matches more than one account is refused with the choices. This is the account the lines move to; it cannot be a bank account. |
{
"plan_id": "00000000-0000-4000-8000-000000000070",
"kind": "move",
"summary": {
"from_account": {
"id": "00000000-0000-4000-8000-000000000013",
"code": "741000",
"name": "Office Supplies",
"type": "expense",
"is_bank": false
},
"account": {
"id": "00000000-0000-4000-8000-000000000011",
"code": "742000",
"name": "Software and Subscriptions",
"type": "expense",
"is_bank": false
},
"count": 1,
"lines": [
{
"id": "00000000-0000-4000-8000-000000000021",
"entry_id": "00000000-0000-4000-8000-000000000020",
"date": "2026-03-14",
"memo": "EXAMPLE SOFTWARE CO",
"side": "debit",
"functional_class": null,
"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"
}
},
"functional_class_dropped": false,
"functional_class_note": null,
"exclusions": [],
"year_end_close_redone": false,
"kind": "move",
"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"
}The answer is the text of the tool result, as JSON. A refusal is a tool result with isError set whose text is { "error": "...", "error_description": "..." } plus the fields named below.
- Each line that cannot move is left out and listed in exclusions as { id, code, reason, sqlstate }. Codes include
not_in_book,not_posted,bank_line, cleared,already_on_target, reversed,year_end_close,personal_mark,period_lockedandneeds_functional_class. The list can grow: show reason, which says why in words, for any code you do not know. nothing_to_change(422): every line was left out.invalid_change(422), "A move takes lines from one account at a time.": the lines left in come from more than one account;source_accountslists them.- A bank account as the target is refused whole (
invalid_change). account_not_found(422): no active account of this book matches account.ambiguous_account(422): more than one does; choices lists up to 20, each { id, code, name, type }.invalid_change(422), conflict (409),period_locked(423),not_found(404) or forbidden (403): the ledger's own rule refused the whole change;error_descriptionsays which, and sqlstate is carried beside it.- A Personal book is refused for every change (
invalid_change, "Personal books are marked, not posted."). Books an accountant keeps for you are refused with forbidden (403). - busy (409): the books are held by another change; try again shortly.
too_many_previews: twenty of this person's previews are already waiting; it answers at the HTTP level, 429 with Retry-After: 60.
preview_journal_entry
Preview a journal entry: 2 to 1000 lines, each a debit or a credit, debits equal to credits. The summary flags a line on a bank account or on equity. Nothing changes: the answer is a plan_id, its expires_at (10 minutes later) and a summary for the user to confirm before apply_change.
MCP only, for an app signed in with 42six that you allowed to propose changes (books:write).
| Parameter | Description |
|---|---|
| entityRequired | String, a uuid: the book (entity) id, from list_books. |
| entry_dateRequired | String, YYYY-MM-DD: the entry date. It cannot fall in a locked period. |
| memoOptional | String or null, at most 2000 characters. |
| linesRequired | Array of 2 to 1000 objects, each { account, debit, credit, functional_class, memo }. account, debit and credit are required. debit and credit are decimal strings with exactly two places and up to 15 digits before the point, such as "12.34"; one of them is "0.00". A line memo is a string or null, at most 2000 characters. |
{
"plan_id": "00000000-0000-4000-8000-000000000070",
"kind": "journal_entry",
"summary": {
"entry_date": "2026-03-31",
"memo": "March depreciation",
"count": 2,
"lines": [
{
"line_no": 1,
"account": {
"id": "00000000-0000-4000-8000-000000000014",
"code": "760000",
"name": "Depreciation Expense",
"type": "expense",
"is_bank": false
},
"debit": {
"amount": "250.00",
"cents": "25000"
},
"credit": {
"amount": "0.00",
"cents": "0"
},
"functional_class": null,
"memo": null,
"flags": []
},
{
"line_no": 2,
"account": {
"id": "00000000-0000-4000-8000-000000000015",
"code": "159000",
"name": "Accumulated Depreciation",
"type": "asset",
"is_bank": false
},
"debit": {
"amount": "0.00",
"cents": "0"
},
"credit": {
"amount": "250.00",
"cents": "25000"
},
"functional_class": null,
"memo": null,
"flags": []
}
],
"totals": {
"debit": {
"amount": "250.00",
"cents": "25000"
},
"credit": {
"amount": "250.00",
"cents": "25000"
}
},
"has_bank_line": false,
"has_equity_line": false,
"year_end_close_redone": false,
"kind": "journal_entry",
"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"
}The answer is the text of the tool result, as JSON. A refusal is a tool result with isError set whose text is { "error": "...", "error_description": "..." } plus the fields named below.
- Refused whole, never in part: fewer than 2 or more than 1000 lines, a memo over 2000 characters, a date in a locked period, a line with both or neither side, a functional class off a nonprofit expense or missing from one, or debits that do not equal credits ("The entry does not balance: debits …, credits …."). An account that does not resolve adds line, its 1-based position.
- Never refused, only flagged on the line: a bank account (flag code
bank_account), an equity account (equity) or Retained Earnings (retained_earnings).has_bank_lineandhas_equity_linesay whether any line is flagged;year_end_close_redonesays the date falls in a year that already has its year-end close, which will be written again. account_not_found(422): no active account of this book matches account.ambiguous_account(422): more than one does; choices lists up to 20, each { id, code, name, type }.invalid_change(422), conflict (409),period_locked(423),not_found(404) or forbidden (403): the ledger's own rule refused the whole change;error_descriptionsays which, and sqlstate is carried beside it.- A Personal book is refused for every change (
invalid_change, "Personal books are marked, not posted."). Books an accountant keeps for you are refused with forbidden (403). - busy (409): the books are held by another change; try again shortly.
too_many_previews: twenty of this person's previews are already waiting; it answers at the HTTP level, 429 with Retry-After: 60.
preview_reverse
Preview reversing a manual journal entry with a new entry on effective_date, every line on the other side. Entries from the bank feed, payroll or payouts are not reversed this way. Nothing changes: the answer is a plan_id, its expires_at (10 minutes later) and a summary for the user to confirm before apply_change.
MCP only, for an app signed in with 42six that you allowed to propose changes (books:write).
| Parameter | Description |
|---|---|
| entityRequired | String, a uuid: the book (entity) id, from list_books. |
| entry_idRequired | String, a uuid: the journal entry id, from list_journal_entries. |
| effective_dateRequired | String, YYYY-MM-DD: the reversal's date. It cannot fall in a locked period. |
| reasonRequired | String, 1 to 2000 characters: why. It is kept with the reversal. |
{
"plan_id": "00000000-0000-4000-8000-000000000070",
"kind": "reverse",
"summary": {
"entry": {
"id": "00000000-0000-4000-8000-000000000020",
"date": "2026-03-31",
"memo": "March depreciation",
"source_provider": "manual"
},
"effective_date": "2026-04-01",
"reason": "Posted to the wrong month",
"lines": [
{
"line_no": 1,
"account": {
"id": "00000000-0000-4000-8000-000000000014",
"code": "760000",
"name": "Depreciation Expense",
"type": "expense",
"is_bank": false
},
"original_debit": {
"amount": "250.00",
"cents": "25000"
},
"original_credit": {
"amount": "0.00",
"cents": "0"
},
"reversal_debit": {
"amount": "0.00",
"cents": "0"
},
"reversal_credit": {
"amount": "250.00",
"cents": "25000"
}
},
{
"line_no": 2,
"account": {
"id": "00000000-0000-4000-8000-000000000015",
"code": "159000",
"name": "Accumulated Depreciation",
"type": "asset",
"is_bank": false
},
"original_debit": {
"amount": "0.00",
"cents": "0"
},
"original_credit": {
"amount": "250.00",
"cents": "25000"
},
"reversal_debit": {
"amount": "250.00",
"cents": "25000"
},
"reversal_credit": {
"amount": "0.00",
"cents": "0"
}
}
],
"totals": {
"debit": {
"amount": "250.00",
"cents": "25000"
},
"credit": {
"amount": "250.00",
"cents": "25000"
}
},
"crosses_period": true,
"crosses_fiscal_year": false,
"year_end_close_redone": false,
"kind": "reverse",
"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"
}The answer is the text of the tool result, as JSON. A refusal is a tool result with isError set whose text is { "error": "...", "error_description": "..." } plus the fields named below.
- Refused whole: an entry not in this book (
not_found), a year-end closing entry, an entry marked from Personal books, an entry already reversed, a line on an inactive account (conflict, 409), no reason, an entry with fewer than 2 lines (invalid_change), or an effective date in a locked period (period_locked). - forbidden (403): the entry was not made in the journal (its
source_provideris not manual), it was posted from a bank transaction (recategorize the transaction instead), or a bank transaction is matched to it (unmatch it first). crosses_periodandcrosses_fiscal_yearsay whether the reversal lands in another month or another fiscal year than the original.account_not_found(422): no active account of this book matches account.ambiguous_account(422): more than one does; choices lists up to 20, each { id, code, name, type }.invalid_change(422), conflict (409),period_locked(423),not_found(404) or forbidden (403): the ledger's own rule refused the whole change;error_descriptionsays which, and sqlstate is carried beside it.- A Personal book is refused for every change (
invalid_change, "Personal books are marked, not posted."). Books an accountant keeps for you are refused with forbidden (403). - busy (409): the books are held by another change; try again shortly.
too_many_previews: twenty of this person's previews are already waiting; it answers at the HTTP level, 429 with Retry-After: 60.
preview_rule
Preview a categorization rule: bank transactions whose description matches keyword go to account. Applying it creates the rule only; to categorize what it matches, preview_categorize those transactions. Nothing changes: the answer is a plan_id, its expires_at (10 minutes later) and a summary for the user to confirm before apply_change.
MCP only, for an app signed in with 42six that you allowed to propose changes (books:write).
| Parameter | Description |
|---|---|
| entityRequired | String, a uuid: the book (entity) id, from list_books. |
| keywordRequired | String, 1 to 200 characters: the text to match. Spaces at either end are trimmed. |
| match_typeRequired | One of contains, starts_with, exact or regex. |
| accountRequired | String, 1 to 200 characters: the account by its id, role key, code or exact name (the name is matched without regard to case), from list_accounts. Only active accounts of this book match. A name that matches more than one account is refused with the choices. |
| directionOptional | in (money in), out (money out), or null or absent for both. |
| bank_accountOptional | String, 1 to 200 characters, or null: one bank account (id, code or exact name) the rule is limited to; null or absent for all. |
| priorityOptional | Integer from 1 to 1000, or null; null or absent for the default, 100. |
| functional_classOptional | Nonprofit books only: program, management or fundraising; otherwise null or absent. |
{
"plan_id": "00000000-0000-4000-8000-000000000070",
"kind": "create_rule",
"summary": {
"keyword": "EXAMPLE SOFTWARE",
"match_type": "contains",
"account": {
"id": "00000000-0000-4000-8000-000000000011",
"code": "742000",
"name": "Software and Subscriptions",
"type": "expense",
"is_bank": false
},
"direction": "out",
"direction_text": "money out",
"bank_account": null,
"bank_account_text": "all bank accounts",
"priority": 100,
"functional_class": null,
"note": "Creating the rule changes no transaction; categorizing them is a separate preview.",
"kind": "create_rule",
"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"
}The answer is the text of the tool result, as JSON. A refusal is a tool result with isError set whose text is { "error": "...", "error_description": "..." } plus the fields named below.
- The rule is checked by the same validator the app's rule editor uses; a keyword, match type, direction, bank account, priority or functional class it does not accept is refused whole with its words.
- A Personal book is refused: rules never run there.
account_not_found(422): no active account of this book matches account.ambiguous_account(422): more than one does; choices lists up to 20, each { id, code, name, type }.invalid_change(422), conflict (409),period_locked(423),not_found(404) or forbidden (403): the ledger's own rule refused the whole change;error_descriptionsays which, and sqlstate is carried beside it.- A Personal book is refused for every change (
invalid_change, "Personal books are marked, not posted."). Books an accountant keeps for you are refused with forbidden (403). - busy (409): the books are held by another change; try again shortly.
too_many_previews: twenty of this person's previews are already waiting; it answers at the HTTP level, 429 with Retry-After: 60.
preview_mileage_tracker
Preview creating, updating or deleting a vehicle or business mileage trip in one book (including Personal books). Tracker changes are workpaper metadata only and never post to the general ledger; delete_vehicle previews cascade_trip_count, and creates surface possible_duplicates. Nothing changes: the answer is a plan_id, its expires_at (10 minutes later) and a summary for the user to confirm before apply_change.
MCP only, for an app signed in with 42six that you allowed to propose changes (books:write).
| Parameter | Description |
|---|---|
| entityRequired | String, a uuid: the book (entity) id, from list_books. |
| actionRequired | One of save_vehicle, delete_vehicle, save_trip or delete_trip. |
| vehicle_idOptional | String, a uuid, or null: optional on save_vehicle (updates existing), required on delete_vehicle and save_trip. |
| trip_idOptional | String, a uuid, or null: optional on save_trip (updates existing), required on delete_trip. |
| nameOptional | String or null, at most 80 characters: vehicle name (save_vehicle). |
| yearOptional | Integer 1900 to 2100 or null: vehicle model year (save_vehicle). |
| makeOptional | String or null, at most 50 characters: vehicle make (save_vehicle). |
| modelOptional | String or null, at most 80 characters: vehicle model (save_vehicle). |
| notesOptional | String or null, at most 500 characters: vehicle notes (save_vehicle). |
| is_activeOptional | Boolean: whether the vehicle is active (save_vehicle). |
| trip_dateOptional | String, YYYY-MM-DD: trip date (save_trip). |
| destinationOptional | String, 1 to 200 characters: trip destination (save_trip). |
| business_purposeOptional | String, 1 to 300 characters: business purpose (save_trip). |
| milesOptional | Decimal string above 0 and at most 99999 with up to two places (save_trip). |
{
"plan_id": "00000000-0000-4000-8000-000000000070",
"kind": "tracker_mileage",
"summary": {
"action": "create_trip",
"trip_id": "00000000-0000-4000-8000-0000000000c1",
"vehicle_name": "Civic",
"trip": {
"vehicle_id": "00000000-0000-4000-8000-0000000000b1",
"trip_date": "2026-03-10",
"destination": "Client Office",
"business_purpose": "Quarterly review",
"miles": "18.50"
},
"possible_duplicates": [],
"workpaper_only": true,
"note": "Tracker entries are workpaper metadata and do not post to the general ledger.",
"kind": "tracker_mileage",
"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"
}The answer is the text of the tool result, as JSON. A refusal is a tool result with isError set whose text is { "error": "...", "error_description": "..." } plus the fields named below.
- A Personal book is allowed for tracker previews; books operated by an accountant remain refused (forbidden, 403).
- Omitted optional fields on updates keep their existing values; pass explicit null to clear a nullable field.
- Not found (404) when
vehicle_idortrip_iddoes not belong to this book;stale_plan(409) at apply if the target row changed since preview. account_not_found(422): no active account of this book matches account.ambiguous_account(422): more than one does; choices lists up to 20, each { id, code, name, type }.invalid_change(422), conflict (409),period_locked(423),not_found(404) or forbidden (403): the ledger's own rule refused the whole change;error_descriptionsays which, and sqlstate is carried beside it.- A Personal book is refused for every change (
invalid_change, "Personal books are marked, not posted."). Books an accountant keeps for you are refused with forbidden (403). - busy (409): the books are held by another change; try again shortly.
too_many_previews: twenty of this person's previews are already waiting; it answers at the HTTP level, 429 with Retry-After: 60.
preview_home_office_tracker
Preview saving home-office year settings (save_year), creating or updating a custom expense category (save_category) or saving twelve monthly expense amounts for a preset or custom category (save_entry) in one book (including Personal books). Nothing changes: the answer is a plan_id, its expires_at (10 minutes later) and a summary for the user to confirm before apply_change.
MCP only, for an app signed in with 42six that you allowed to propose changes (books:write).
| Parameter | Description |
|---|---|
| entityRequired | String, a uuid: the book (entity) id, from list_books. |
| actionRequired | One of save_year, save_category or save_entry. |
| tax_yearOptional | Integer 2000 to 2100: tax year (required for save_year and save_entry). |
| total_sqftOptional | Integer 1 to 100000 or null: total home square feet (save_year). |
| business_sqftOptional | Integer 0 to 100000 or null: business square feet (save_year). |
| home_basis_excl_landOptional | Decimal string up to 100000000 or null: depreciable basis excluding land (save_year). |
| notesOptional | String or null, at most 1000 characters: year notes (save_year). |
| category_idOptional | String, a uuid, or null: custom category id to update (save_category). |
| labelOptional | String, 1 to 60 characters: custom category label (save_category). |
| sort_orderOptional | Integer -100000 to 100000 or null: display sort order (save_category). |
| archivedOptional | Boolean: archive or unarchive the custom category (save_category). |
| preset_keyOptional | One of mortgage_interest, rent, insurance, property_tax, utilities, internet, security, lawncare, repairs, or null (save_entry). |
| custom_category_idOptional | String, a uuid, or null: custom category id (save_entry). |
| monthly_amountsOptional | Object with all twelve months jan through dec, each a number from 0 to 100000000 with at most two decimals (save_entry). |
{
"plan_id": "00000000-0000-4000-8000-000000000070",
"kind": "tracker_home_office",
"summary": {
"action": "update_home_office_year",
"tax_year": 2026,
"year_settings": {
"tax_year": 2026,
"total_sqft": 2000,
"business_sqft": 200,
"home_basis_excl_land": "390000.00",
"notes": null
},
"workpaper_only": true,
"note": "Tracker entries are workpaper metadata and do not post to the general ledger.",
"kind": "tracker_home_office",
"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"
}The answer is the text of the tool result, as JSON. A refusal is a tool result with isError set whose text is { "error": "...", "error_description": "..." } plus the fields named below.
save_entryrequirestax_year,monthly_amounts(all 12 months jan..dec) and exactly one ofpreset_keyorcustom_category_id.- A Personal book is allowed; books operated by an accountant remain refused (forbidden, 403).
- Not found (404) when
category_idorcustom_category_iddoes not belong to this book;stale_plan(409) at apply if the target row changed since preview. account_not_found(422): no active account of this book matches account.ambiguous_account(422): more than one does; choices lists up to 20, each { id, code, name, type }.invalid_change(422), conflict (409),period_locked(423),not_found(404) or forbidden (403): the ledger's own rule refused the whole change;error_descriptionsays which, and sqlstate is carried beside it.- A Personal book is refused for every change (
invalid_change, "Personal books are marked, not posted."). Books an accountant keeps for you are refused with forbidden (403). - busy (409): the books are held by another change; try again shortly.
too_many_previews: twenty of this person's previews are already waiting; it answers at the HTTP level, 429 with Retry-After: 60.
preview_tracker_log
Preview creating, updating or deleting an accountable-plan reimbursement, REPS hours or STR hours log entry in one book (including Personal books). Tracker entries are workpaper metadata only and never post to the general ledger. Nothing changes: the answer is a plan_id, its expires_at (10 minutes later) and a summary for the user to confirm before apply_change.
MCP only, for an app signed in with 42six that you allowed to propose changes (books:write).
| Parameter | Description |
|---|---|
| entityRequired | String, a uuid: the book (entity) id, from list_books. |
| actionRequired | One of save or delete. |
| log_kindRequired | One of reimbursement, reps_hours or str_hours. |
| log_idOptional | String, a uuid, or null: optional on save (updates existing), required on delete. |
| tax_yearOptional | Integer 2000 to 2100: tax year (must match entry_date year). |
| entry_dateOptional | String, YYYY-MM-DD: entry date (must fall within tax_year). |
| amountOptional | Decimal string above 0 and under 1000000 (reimbursement only). |
| hoursOptional | Decimal string above 0 and at most 24 (reps_hours and str_hours only). |
| categoryOptional | String or null, at most 200 characters (reimbursement only). |
| activity_typeOptional | String or null, at most 200 characters (reps_hours and str_hours only). |
| propertyOptional | String or null, at most 200 characters (optional on reps_hours, required on str_hours). |
| vendorOptional | String or null, at most 200 characters (reimbursement only). |
| descriptionOptional | String or null, at most 2000 characters: notes or description. |
| reimbursed_onOptional | String YYYY-MM-DD or null: date reimbursed (reimbursement only). |
{
"plan_id": "00000000-0000-4000-8000-000000000070",
"kind": "tracker_log",
"summary": {
"action": "create_log",
"log_kind": "reimbursement",
"log_id": "00000000-0000-4000-8000-0000000000d1",
"entry": {
"tax_year": 2026,
"entry_date": "2026-04-01",
"amount": "48.20",
"category": "Meals",
"vendor": "Cafe",
"description": null,
"reimbursed_on": null
},
"possible_duplicates": [],
"workpaper_only": true,
"note": "Tracker entries are workpaper metadata and do not post to the general ledger.",
"kind": "tracker_log",
"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"
}The answer is the text of the tool result, as JSON. A refusal is a tool result with isError set whose text is { "error": "...", "error_description": "..." } plus the fields named below.
entry_datemust fall withintax_year(422); passing reimbursement fields on an hours log or vice versa is refused (422).- Updating or deleting a
log_idwhose saved kind differs fromlog_kindis refused (conflict, 409). - A Personal book is allowed; books operated by an accountant remain refused (forbidden, 403).
account_not_found(422): no active account of this book matches account.ambiguous_account(422): more than one does; choices lists up to 20, each { id, code, name, type }.invalid_change(422), conflict (409),period_locked(423),not_found(404) or forbidden (403): the ledger's own rule refused the whole change;error_descriptionsays which, and sqlstate is carried beside it.- A Personal book is refused for every change (
invalid_change, "Personal books are marked, not posted."). Books an accountant keeps for you are refused with forbidden (403). - busy (409): the books are held by another change; try again shortly.
too_many_previews: twenty of this person's previews are already waiting; it answers at the HTTP level, 429 with Retry-After: 60.
apply_change
Apply one previewed change exactly as previewed, all or nothing, after the user confirmed it. Every apply is recorded with the user and the app. If the plan expired or the books changed since, nothing changes: preview again. Applying the same plan again returns its first result and never changes the books twice.
MCP only, for an app signed in with 42six that you allowed to propose changes (books:write).
| Parameter | Description |
|---|---|
| plan_idRequired | String, a uuid: the plan_id a preview returned to this app and this person. |
{
"plan_id": "00000000-0000-4000-8000-000000000070",
"kind": "categorize",
"result": {
"count": 1
},
"request_id": "00000000-0000-4000-8000-000000000080",
"replayed": false
}The answer is the text of the tool result, as JSON. A refusal is a tool result with isError set whose text is { "error": "...", "error_description": "..." } plus the fields named below.
- result depends on the kind: categorize { count }, recategorize {
entry_id}, move { moved } (the number of lines),journal_entry{entry_id}, reverse {reversal_entry_id},create_rule{rule_id},tracker_mileage{ action,vehicle_id|trip_id},tracker_home_office{ action,year_id|category_id|entry_id},tracker_log{ action,log_kind,log_id}. - replayed is true when this plan was already applied: the answer is its first result, and nothing changes again. A plan that was already refused answers its first refusal, with replayed true.
plan_expired(409): the 10 minutes passed, or the app signed in again since the preview.stale_plan(409): what the plan changes was changed since the preview.not_found(404): no such plan for this app and person. Preview again in each case.- Final, and the plan is marked refused: forbidden (403),
not_found(404),stale_plan(409),invalid_change(422) andperiod_locked(423). - Left waiting, so the same plan can be applied again before it expires: busy (409), conflict (409, another change holds the books),
payment_required(402, the workspace's subscription does not allow changes),temporarily_unavailable(503) andserver_error(500). invalid_tokenanswers at the HTTP level, 401 with WWW-Authenticate: the sign-in ended or the books it was given changed.insufficient_scopeis HTTP 403 when the token has no books:write at all, and a tool result with isError when this book was not approved for changes.