Skip to docs content

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).

ParameterDescription
entityRequiredString, a uuid: the book (entity) id, from list_books.
item_idsRequiredArray of 1 to 500 uuid strings: bank transaction ids, from needs_review or list_bank_transactions. Repeats count once.
accountRequiredString, 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_classOptionalNonprofit books only: program, management or fundraising; otherwise null or absent.
Answer (illustrative)
{
  "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_inactive and 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 and functional_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_description says 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).

ParameterDescription
entityRequiredString, a uuid: the book (entity) id, from list_books.
line_idsRequiredArray of 1 to 1000 uuid strings: journal line ids, from list_journal_lines. Repeats count once.
accountRequiredString, 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.
Answer (illustrative)
{
  "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_locked and needs_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_accounts lists 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_description says 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).

ParameterDescription
entityRequiredString, a uuid: the book (entity) id, from list_books.
entry_dateRequiredString, YYYY-MM-DD: the entry date. It cannot fall in a locked period.
memoOptionalString or null, at most 2000 characters.
linesRequiredArray 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.
Answer (illustrative)
{
  "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_line and has_equity_line say whether any line is flagged; year_end_close_redone says 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_description says 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).

ParameterDescription
entityRequiredString, a uuid: the book (entity) id, from list_books.
entry_idRequiredString, a uuid: the journal entry id, from list_journal_entries.
effective_dateRequiredString, YYYY-MM-DD: the reversal's date. It cannot fall in a locked period.
reasonRequiredString, 1 to 2000 characters: why. It is kept with the reversal.
Answer (illustrative)
{
  "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_provider is 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_period and crosses_fiscal_year say 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_description says 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).

ParameterDescription
entityRequiredString, a uuid: the book (entity) id, from list_books.
keywordRequiredString, 1 to 200 characters: the text to match. Spaces at either end are trimmed.
match_typeRequiredOne of contains, starts_with, exact or regex.
accountRequiredString, 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.
directionOptionalin (money in), out (money out), or null or absent for both.
bank_accountOptionalString, 1 to 200 characters, or null: one bank account (id, code or exact name) the rule is limited to; null or absent for all.
priorityOptionalInteger from 1 to 1000, or null; null or absent for the default, 100.
functional_classOptionalNonprofit books only: program, management or fundraising; otherwise null or absent.
Answer (illustrative)
{
  "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_description says 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).

ParameterDescription
entityRequiredString, a uuid: the book (entity) id, from list_books.
actionRequiredOne of save_vehicle, delete_vehicle, save_trip or delete_trip.
vehicle_idOptionalString, a uuid, or null: optional on save_vehicle (updates existing), required on delete_vehicle and save_trip.
trip_idOptionalString, a uuid, or null: optional on save_trip (updates existing), required on delete_trip.
nameOptionalString or null, at most 80 characters: vehicle name (save_vehicle).
yearOptionalInteger 1900 to 2100 or null: vehicle model year (save_vehicle).
makeOptionalString or null, at most 50 characters: vehicle make (save_vehicle).
modelOptionalString or null, at most 80 characters: vehicle model (save_vehicle).
notesOptionalString or null, at most 500 characters: vehicle notes (save_vehicle).
is_activeOptionalBoolean: whether the vehicle is active (save_vehicle).
trip_dateOptionalString, YYYY-MM-DD: trip date (save_trip).
destinationOptionalString, 1 to 200 characters: trip destination (save_trip).
business_purposeOptionalString, 1 to 300 characters: business purpose (save_trip).
milesOptionalDecimal string above 0 and at most 99999 with up to two places (save_trip).
Answer (illustrative)
{
  "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_id or trip_id does 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_description says 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).

ParameterDescription
entityRequiredString, a uuid: the book (entity) id, from list_books.
actionRequiredOne of save_year, save_category or save_entry.
tax_yearOptionalInteger 2000 to 2100: tax year (required for save_year and save_entry).
total_sqftOptionalInteger 1 to 100000 or null: total home square feet (save_year).
business_sqftOptionalInteger 0 to 100000 or null: business square feet (save_year).
home_basis_excl_landOptionalDecimal string up to 100000000 or null: depreciable basis excluding land (save_year).
notesOptionalString or null, at most 1000 characters: year notes (save_year).
category_idOptionalString, a uuid, or null: custom category id to update (save_category).
labelOptionalString, 1 to 60 characters: custom category label (save_category).
sort_orderOptionalInteger -100000 to 100000 or null: display sort order (save_category).
archivedOptionalBoolean: archive or unarchive the custom category (save_category).
preset_keyOptionalOne of mortgage_interest, rent, insurance, property_tax, utilities, internet, security, lawncare, repairs, or null (save_entry).
custom_category_idOptionalString, a uuid, or null: custom category id (save_entry).
monthly_amountsOptionalObject with all twelve months jan through dec, each a number from 0 to 100000000 with at most two decimals (save_entry).
Answer (illustrative)
{
  "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_entry requires tax_year, monthly_amounts (all 12 months jan..dec) and exactly one of preset_key or custom_category_id.
  • A Personal book is allowed; books operated by an accountant remain refused (forbidden, 403).
  • Not found (404) when category_id or custom_category_id does 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_description says 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).

ParameterDescription
entityRequiredString, a uuid: the book (entity) id, from list_books.
actionRequiredOne of save or delete.
log_kindRequiredOne of reimbursement, reps_hours or str_hours.
log_idOptionalString, a uuid, or null: optional on save (updates existing), required on delete.
tax_yearOptionalInteger 2000 to 2100: tax year (must match entry_date year).
entry_dateOptionalString, YYYY-MM-DD: entry date (must fall within tax_year).
amountOptionalDecimal string above 0 and under 1000000 (reimbursement only).
hoursOptionalDecimal string above 0 and at most 24 (reps_hours and str_hours only).
categoryOptionalString or null, at most 200 characters (reimbursement only).
activity_typeOptionalString or null, at most 200 characters (reps_hours and str_hours only).
propertyOptionalString or null, at most 200 characters (optional on reps_hours, required on str_hours).
vendorOptionalString or null, at most 200 characters (reimbursement only).
descriptionOptionalString or null, at most 2000 characters: notes or description.
reimbursed_onOptionalString YYYY-MM-DD or null: date reimbursed (reimbursement only).
Answer (illustrative)
{
  "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_date must fall within tax_year (422); passing reimbursement fields on an hours log or vice versa is refused (422).
  • Updating or deleting a log_id whose saved kind differs from log_kind is 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_description says 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).

ParameterDescription
plan_idRequiredString, a uuid: the plan_id a preview returned to this app and this person.
Answer (illustrative)
{
  "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) and period_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) and server_error (500).
  • invalid_token answers at the HTTP level, 401 with WWW-Authenticate: the sign-in ended or the books it was given changed. insufficient_scope is 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.