| get_contextA | Read the budget structure or the Actual server details in one call; start here to learn what exists before reading or changing anything. Use list_entities instead to list or look up one kind of entity (accounts, categories, payees, rules, schedules, tags, notes, budget files) or to resolve a name to an id; this tool returns the whole structure at once. Pick one topic (default structure). structure: accounts, categories with their groups and payees together, optional include_accounts, include_categories, include_payees, include_closed (closed accounts are left out unless true) and payee_limit (1 to 2000, default 500); a section you exclude is omitted, and at least one of the three include_* flags must stay true. server: the MCP server name, version, description and transport, runtime (Node.js, platform, arch), dependencies (declared and resolved SDK and Actual API versions), uptime and memory use, and tools { total published, registered, policy }; takes no other fields. version: the Actual server version string, not the MCP server version, no other fields. preferences: { preferences, keys, count, message } with the synced display values (number format, date format, currency, first day of the week), no other fields; amounts stay integer cents whatever it says. A field given for a topic that does not take it is refused naming the field. Returns the topic's result object: the accounts, category groups with nested categories and payees for structure, the server details for server, the version string for version, and the preference values for preferences. |
| list_entitiesA | List, search or look up budget entities of one type: account, account_group, category, category_group, payee, tag, rule, schedule, note or budget_file. For the whole budget structure, server details or preferences in one call use get_context instead.
With only type it lists every entity of that type. A field the type does not take is refused naming the field.
account, category, payee: query (string or array) with match_type and limit to search by name, or name to resolve one exact name to its id, refused with the candidate ids when several share it.
payee: also sort frequency (the 10 most used payees of the last 12 weeks; a transfer payee can appear, with transfer_acct null).
schedule: name to resolve its id, or schedule_id with start, end and count (default and maximum 366) to list the dates it falls on.
rule: payee_id to list that payee's rules.
tag: the tag list (colour, description); tags used only in notes are not listed.
note: requires id (an entity UUID or budget-YYYY-MM).
budget_file: scope configured (default; active true marks this session's budget) or server.
query and name are mutually exclusive, as are schedule_id and name; match_type and limit need query; start, end and count need schedule_id; sort allows no other field.
Returns the list for the type; a query returns { matches, count, total, truncated }, a name returns the id, a schedule_id returns { schedule_id, name, dates, count, truncated }, and a note returns { found, id, note }. |
| search_transactionsA | Find transaction records, not totals; pick one by. Totals: summarize_transactions. Ids: list_entities. Custom query: run_query.
A field the by lacks is refused by name. Amounts: integer cents, outflows negative; dates YYYY-MM-DD.
account: account_id, start_date, end_date.
filter: account_id, start_date, end_date, min_amount, max_amount, category_id, payee_id, notes, cleared, reconciled.
amount: min_amount and max_amount, or absolute_amount, plus start_date, end_date, account_id, category_name, limit.
category: category_name, start_date, end_date, account_id, min_amount, max_amount, limit.
month: month, account_id, category_name, payee_name, min_amount, max_amount, limit.
payee: payee_name, start_date, end_date, account_id, category_name, min_amount, max_amount, limit.
uncategorized: start_date, end_date, account_id, include_transactions, limit, offset.
Behavior: category and payee need their name. filter, category, month refuse an off-budget account_id. account and filter have no limit.
Limits: amount, category, month, payee return limit rows (default 100; hasMore: more exist; count and totalAmount cover returned rows). uncategorized pages by limit (default 50), offset. amount needs account_id or a date. An unknown category or payee gives an error field. Category or notes filters match a split by child (parent_id).
Returns { result: [transaction] } for account, filter; { transactions, count, totalAmount, hasMore } for amount, category, month, payee; { totalCount, totalAmount, byAccount, dateRange } for uncategorized, plus transactions and hasMore with include_transactions. |
| summarize_transactionsA | Totals, not records: spending sums, breakdowns, recurring expenses and balance; pick one report. For individual transactions use search_transactions; for ids use list_entities; for budgeted versus spent use list_budget_months; for a custom query use run_query.
A parameter the chosen report does not take is refused by name. Amounts are integer cents; dates YYYY-MM-DD. by_category, by_payee and balance are signed (outflows negative); grouped, account_flow and recurring give outflows as positive amounts. by_category and by_payee include transfers; grouped leaves them out by default, account_flow keeps them apart.
by_category: start_date (default first day of the current month), end_date (default today), account_id, include_income.
by_payee: start_date, end_date (same defaults), account_id, limit (default 50); largest spending first, limit keeps the top, totalAmount sums them.
grouped: requires start_date, end_date, group_by; optional account_ids, category_ids, category_group_ids, payee_ids, include_income, exclude_transfers (default true).
account_flow: requires start_date, end_date, account_ids.
recurring: start_date or months, account_ids, min_occurrences, include_inactive.
balance: requires account_id; optional cutoff date.
Returns { summary: [{ categoryGroup, categoryName, totalAmount, transactionCount }], totalAmount, dateRange } for by_category (payeeName for by_payee); groups with totals for grouped and account_flow; repeating payees for recurring; { balance, accountName } for balance. |
| list_budget_monthsA | List the budget months, or read one month's budget when month is given. Use it for budgeted versus spent per category; for actual spending totals use summarize_transactions, for ids use list_entities, for individual transactions use search_transactions. To change a budgeted amount use manage_budget_months.
month: optional, YYYY-MM; the only input, any other property is refused by name.
Returns { result: [YYYY-MM, ...] }, the budget months and nothing else, when month is omitted.
Fields: totalSpent sums expense transactions (negative for spending); totalBalance sums the category balances. On an envelope budget totalBudgeted is the expense budgets summed with the sign reversed (negative when money is budgeted), toBudget is what is left to budget and forNextMonth the amount held; on a tracking budget totalBudgeted is a plain positive sum and the other two are absent.
Returns { result } holding that month's budget when month is given: totals (totalIncome, totalBudgeted, totalSpent, toBudget, forNextMonth, totalBalance) and categoryGroups; an expense category carries budgeted, spent and balance, an income category received; amounts are integer cents. |
| run_queryA | Run a read-only SQL query against the budget data; the escape hatch when search_transactions, summarize_transactions, list_entities and list_budget_months do not fit (prefer them when they do). Form: SELECT [fields] FROM [table] WHERE [conditions] ORDER BY [field] DESC LIMIT [n]. Example: "SELECT id, date, amount, payee.name FROM transactions WHERE amount < 0 ORDER BY date DESC LIMIT 10". WHERE supports =, !=, >, >=, <, <=; IN (v1, v2); LIKE / NOT LIKE (case and accent-insensitive, % wildcard, e.g. imported_payee LIKE '%amazon%'); IS NULL / IS NOT NULL; boolean columns as true / false (cleared = false, category.hidden = true); conditions joined with AND. OR, REGEXP, NOT IN and parenthesised groups are not supported and return an error (a query is never silently run unfiltered). Writes, stacked statements and comments are refused. Transactions come back in split-inline mode: "is_parent = true" returns nothing, use "is_parent = false" to exclude split children. Joins use dot notation: payee.name, category.name, account.name (NOT payee_name). Amounts are in cents: $100.00 = 10000. Dates are quoted YYYY-MM-DD strings: date >= '2025-01-01'. Returns { result: { data: rows, dependencies } }; an empty result may carry a "hint" naming a category.name, payee.name or account.name value that matches no entity, with the query that lists the exact names. Tables: transactions (id, date, amount, notes, cleared, account, payee, category); accounts (id, name, closed, offbudget, sort_order, account_group_id); categories (id, name, group, is_income, hidden); payees (id, name, transfer_acct); category_groups (id, name, is_income, hidden; rows carry nested categories); also schedules, rules, notes, preferences, account_groups. Select the fields you need: a bare table name returns only { id }. AS aliases are ignored. |
| manage_transactionsA | Create, change, delete, import, merge or transfer transactions; pick one action. Writes. To read use search_transactions; ids come from list_entities. Cents are integers, outflows negative; dates YYYY-MM-DD. Other fields are refused. create: account, date, amount; optional payee, payee_name, notes, category, cleared, imported_id, subtransactions. update: id and at least one of account, date, amount, payee, payee_name, imported_payee, category, notes, imported_id, cleared, reconciled, subtransactions; null clears payee, category or notes. update_batch: updates (1 to 50), NOT atomic, reported per item, no splits. delete: id; DESTRUCTIVE, permanent, balances change, cannot be undone. import: account_id, txs; matched like a bank import (rules applied; duplicates by imported_id or same amount within 7 days). merge: ids (two); DESTRUCTIVE, keeps one row by the upstream rule, deletes the other, cannot be undone. transfer: from_account, to_account, amount (positive), date; optional notes. Returns { success, id } (create; id often null, success false when an id is unknown or a payee is a transfer payee), { success } or { success, split } (update, delete), { succeeded, failed, total, successCount, failureCount } (update_batch), { result: { added, updated, errors } } (import), { result: { success, keptId, deletedId } } (merge), { result } (transfer; same or unknown account: result.success false). |
| manage_accountsA | Create, change, close, reopen, delete, bank-sync or annotate accounts and account groups; pick one action. Writes. To read or find ids use list_entities; month notes belong to manage_budget_months. Other fields are refused. entity (account or account_group) is required for create, update and delete; close takes account or nothing. create: entity, name; optional balance (account, integer cents) and offbudget (account). update: entity, id and at least one of name, offbudget, closed, account_group_id (a group id, or null to ungroup) (account) or name (account_group); to close or reopen prefer those actions. close: id; optional transfer_account_id (required for a non-zero balance, not id itself), transfer_category_id (required when a non-zero on-budget account closes into an off-budget one, refused otherwise); an account with no transactions is REMOVED, not closed. reopen: id. delete: entity, id; DESTRUCTIVE, cannot be undone: an account takes its transactions with it and the other half of each transfer stays, unlinked (a closed account is not deleted: reopen it first), a group leaves its accounts ungrouped. bank_sync: optional account_id (omit for every linked open account); reaches the bank providers. set_note: id, note ("" clears); id is any entity UUID, not budget-YYYY-MM; for a category or payee note prefer manage_categories or manage_payees, so each note is set by the tool of its entity kind. Returns { result: id } (create account), { result: { id, name } } (create group), { success, accountId, updatedFields } (update account), { result: { success, id, updated } } (update group), { success, closed | alreadyClosed | removed } (close), { success, reopened | alreadyOpen } (reopen), { success, detachedTransfers } (delete account), { result: { success, id } } (delete group), { result, newTransactions, matchedTransactions, updatedAccounts, truncated } (bank_sync), { result: { success, id, note, cleared } } (set_note). |
| manage_categoriesA | Create, change, delete or annotate budget categories and category groups; pick one action. Writes. To read or find ids use list_entities; budget amounts and month notes belong to manage_budget_months. Other fields are refused. entity (category or category_group) is required for create, update and delete. create: entity, name; a category also needs group_id (an unknown group is refused as not found) and takes is_income from that group (a different is_income is refused); a category_group may set is_income (true is refused when the budget already has an income group) and hidden. update: entity, id and at least one of name, group_id (category only; an unknown group is refused), is_income, hidden; is_income must match the group, so moving a category to a group with the other is_income needs both; prefer hidden true over delete to retire a category. delete: entity, id; DESTRUCTIVE, cannot be undone: a category is removed and its transactions are not moved (recategorize them first); deleting a group ALSO deletes every category in it (move them out first with update group_id). set_note: id (a category or category group UUID), note ("" clears); not budget-YYYY-MM; an account note goes through manage_accounts and a payee note through manage_payees. Returns { success, categoryId, message } (create category), { id, success } (create group), { success } (update, delete), { result: { success, id, note, cleared } } (set_note). |
| manage_payeesA | Create, change, delete, merge or annotate payees; pick one action. Writes. To read or find ids use list_entities. Other fields are refused. create: name; optional notes. update: id and at least one of name (a transfer payee is refused: rename its account), category (a default category, stored as a default-stage rule whose only condition is this payee; null deletes it; pre or post stage rules and rules shared with other payees or conditions are never touched). delete: id; DESTRUCTIVE, cannot be undone: transactions lose the payee; a transfer payee is refused. merge: target_id, merge_ids (1 to 50, never target_id itself); DESTRUCTIVE, cannot be undone: the sources' transactions move to target_id and the sources are deleted; transfer payees are refused. set_note: id (a payee UUID), note ("" clears); not budget-YYYY-MM; an account note goes through manage_accounts and a category note through manage_categories. Returns { result: id } (create), { success, payeeId, updatedFields } (update), { success } (delete), { success, mergedIds, message } (merge), { result: { success, id, note, cleared } } (set_note). |
| manage_tagsA | Create, change or delete entries of the tag list (a colour and description per tag); pick one action. Writes. A tag is a "#word" in a transaction's notes: to tag a transaction, write the #word into its notes with manage_transactions; this tool takes no transaction. To read tags or find ids use list_entities with type tag. Other fields are refused. create: tag (the word without "#"); optional color, description. An existing name returns its id and keeps the color and description not supplied; a deleted name is revived with only the supplied fields. update: id and at least one of tag, color, description; an unknown id is refused; a rename does not change notes, so transactions keep the old #word. delete: id; DESTRUCTIVE: the tag is soft-deleted and no longer listed; an unknown id is refused. Returns { result: id } (create), { result: { success: true } } (update, delete). |
| manage_rulesA | Create, upsert, change or delete budget rules; pick one action. Writes. To read rules use list_entities with type rule. Other fields are refused.
Conditions match by field and op: imported_payee, payee_name take is, isNot, contains, matches, doesNotContain, and oneOf, notOneOf with an array of text;
notes takes is, isNot, contains, matches, doesNotContain;
id fields (payee, account, category, category_group) take is, isNot, and oneOf, notOneOf with an array of ids; account also onBudget, offBudget (value "");
cleared, reconciled take is with true or false;
amount takes is, isapprox, isbetween ({num1, num2} cents), gt, gte, lt, lte;
date takes is, isapprox, gt, gte, lt, lte. notes and payee_name also take hasTags (all) and hasAnyTag (any): value "#a #b", whole tags, any case.
Other condition fields are refused. Ids must exist or the call is refused and nothing is written (ids in link-schedule actions and category_group conditions are not checked).
create: conditions, actions; optional stage, conditions_op.
create_batch: rules (1 to 50, items with camelCase keys); NOT atomic, no rollback: a failing rule is reported in failed and the rest are still attempted; if the call itself fails, read the rules back before retrying.
upsert: conditions, actions; optional stage, conditions_op; a rule with the same conditions and conditions_op (any order) has its actions replaced and its stage replaced only if sent, else a rule is created.
update: id and at least one of stage, conditions_op, conditions, actions; unsent fields stay.
delete: id; DESTRUCTIVE, cannot be undone; a rule owned by a schedule is refused (use manage_schedules delete); an unknown id is refused.
Returns { id, success } (create), { result: { succeeded, failed, total, successCount, failureCount } } (create_batch), { id, created } (upsert), { success: true } (update, delete). |
| manage_schedulesA | Create, change or delete schedules (one-off or recurring); pick one action. Writes. To read schedules use list_entities with type schedule; to preview occurrence dates use list_entities with type schedule and schedule_id. Cents are integers, outflows negative. An unknown account or payee id is refused. Other fields are refused. create: date; optional name, payee, account, amount, amount_op, posts_transaction. amount_op isbetween needs amount {num1, num2}; an object amount needs isbetween. update: id and at least one of name, payee, account (null clears), amount, amount_op, date, posts_transaction, reset_next_date; unsent fields stay; a new date replaces the stored recurrence; completed and next_date cannot be set. delete: id; DESTRUCTIVE, cannot be undone; removes the schedule and the rule that drives it; transactions it already created stay; an unknown id is refused. Returns { id } (create), { success: true } (update, delete). |
| manage_budget_monthsA | Change the budget of a month: amounts, carryover, the hold for next month, transfers, the month note; pick one action. Writes. To read months use list_budget_months; to switch, import or export a budget file use manage_budget_files; category notes use manage_categories. set_amount: month, category_id, amount (an income category is refused on an envelope budget; |amount| at most 2251799813685247; an unknown category or month is returned as { success: false, error }). set_amount_batch: operations (1 to 100 items); NOT atomic, items applied before a failure stay applied; an unknown category, a month out of range or carryover, or amount on an envelope budget, on an income category fails only that item; after a timeout read the months back before retrying. set_carryover: month, category_id, flag (true rolls an overspent balance into the next month, false resets it; envelope budget: a positive balance always rolls over; tracking budget: only with the flag), from that month on; expense categories only. hold: month, amount greater than 0; holds for next month, may hold LESS than asked (clamped to what is left); nothing held is an error; Actual ADDS to the buffer, so read the month before retrying. reset_hold: month; releases the whole hold. transfer: month, from_category_id, to_category_id (different, expense categories only), amount greater than 0 and at most 2251799813685247; the source needs that much budgeted; NOT atomic (the source may already be lowered). set_note: month, note; sets or clears it. Returns {} (set_amount), { succeeded, failed, total, successCount, failureCount } (set_amount_batch; failing items are a normal result), { success: true } (set_carryover, reset_hold), { success, held } or { success, partial, requested, held, message } (hold), { result: { success, transferred, fromCategory, toCategory } } (transfer), { result: { success, id, note, cleared } } (set_note). |
| manage_budget_filesA | Switch the active budget, import a budget file, or export the active budget to a file; pick one action. To list the configured budget names use list_entities with type budget_file; budget months are manage_budget_months. Other fields are refused.
switch: budget_name; takes effect now in this session; other open sessions keep theirs; remembered per caller, so a new session of the same caller starts on it (holders of the one legacy bearer token are one caller); an unconfigured or not permitted name is refused. Locked budgets cannot be switched to.
switch loads the target budget, and a load failure can surface on the next call instead; undo it by switching back.
import: exactly one of path (a file on the server, max 4096 characters) or base64 (max 67108864 characters); optional type (actual, ynab4, ynab5; default actual), filename (base64 only); a caller limited to some budgets is refused; a long import can time out.
import ADDS a budget and replaces nothing: each import makes a new local copy and normally uploads it as a NEW server budget file (a failed upload leaves it local only); the returned budgetId is that local id, not a Sync ID; confirm before importing.
After an import, success or failure, the next call from every session (this one included) reloads that session's own configured budget, so later calls do not reach the imported budget; to use it, an operator adds its Sync ID to the server configuration. Nothing removes the uploaded server file.
export: optional filename; writes the whole active budget (every account and transaction) as a .zip into the server's export directory and OVERWRITES a file of the same name; the file contents are not returned; only deleting the file on the server host removes it.
Returns { success, budgetName, budgetId, serverUrl, message } (switch), { result: { success, budgetId, type, source, message } } (import), { result: { success, path, filename, directory, bytes, sha256, message } } (export). |