gnucash-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_server_configA | Get the server's loaded configuration. Returns loaded modules, tool count, book path, debug mode, and version. Use this to verify which tools are available in this session. |
| switch_bookA | Switch the active GnuCash book (multi-book sessions only). All subsequent tool calls — and the audit/debug logs — operate on the newly-selected book until the next switch. Only present when GNUCASH_BOOK_PATH lists 2+ books. |
| get_account_slotsA | Read slots (custom metadata) from an account. Slots are key-value pairs stored on accounts for metadata like APR, credit limit, reward rates, or any custom data. Args: account: Account ref: full path (e.g., "Liabilities:Credit Cards:Capital One"), %short GUID, or full 32-char GUID. key: Specific slot key to retrieve. If omitted, returns all slots. |
| set_account_slotA | Set a custom metadata slot on an account. Stores a key-value pair on the account. Values are stored as strings. Use for APR, credit limits, reward rates, or any per-account metadata. Args: account: Account ref: full path (e.g., "Liabilities:Credit Cards:Capital One"), %short GUID, or full 32-char GUID. key: Slot key (e.g., "apr", "credit_limit"). value: Slot value (always stored as string). |
| delete_account_slotA | Remove one custom metadata slot from an account. Permanent, and surgical: only the named key is deleted — other slots, the account, and its transactions are untouched. Errors, changing nothing, if the account ref or key doesn't exist, or if the key contains '/' (reserved for internal hierarchical slots; user slots are flat). get_account_slots lists the removable keys; set_account_slot re-creates one. Args: account: Account ref: full path (e.g., "Liabilities:Credit Cards:Capital One"), %short GUID, or full 32-char GUID. key: Slot key to remove. |
| get_audit_logA | Read audit log entries for a date. Returns the human-readable text audit log, led by a
Unlike the row-list tools, the window is anchored to the most
recent entry: Args: log_date: Date to read (YYYY-MM-DD). Defaults to today. limit: Page size (default 50). 0 = count only. offset: Entries to skip back from the most recent (default 0). |
| create_backupA | Create an on-demand backup of the GnuCash book. Uses SQLite's online backup API so the snapshot is safe even
if the book is being read or written concurrently by GnuCash
desktop. Verifies the copy with Manual backups are kept indefinitely — automatic retention (session / weekly / monthly stages) does not touch them. To review or remove backups, the user works with the files directly in the backup directory; no tool can list or delete them. The response includes a Args:
label: Optional free-text label (sanitized to
|
| list_budgetsA | List all budgets in the book. Leads with a Args: verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). |
| get_budgetA | Get full details of a budget including all budget amounts. Returns a compact text table by default — collapses uniform
periods (e.g., Args: name: Budget name. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. |
| create_budgetA | Create a new budget. Args:
name: Budget name (e.g., "2026 Budget").
year: Budget year. Defaults to current year. Ignored when
|
| set_budget_amountA | Set a budget target for an account. Args: budget_name: Name of the budget. account: Account ref: full path (e.g., "Expenses:Groceries"), %short GUID, or full 32-char GUID. amount: Monthly budget amount as string (e.g., "500.00"). period: Which period(s) to set: - None or "all": Set same amount for all periods (default) - Integer 0-11: Set specific period (0 = January for yearly budget) - "q1", "q2", "q3", "q4": Set all periods in quarter |
| get_budget_reportA | Compare actual spending against budget. Returns a compact text table by default with ⚠ markers on categories exceeding budget. Use verbose=true for the full structured dict. Args: budget_name: Name of the budget. period: Which period to report: - None: Current period based on today's date (default) - Integer 0-11: Specific period - "ytd": Year to date (all periods up to current) - "all": All periods account: Optional filter to specific account or parent account. include_children: If True and account specified, include child accounts. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. |
| delete_budgetA | Delete a budget and every per-period amount set on it. Permanent — there is no undo and no archive state. Only the plan is removed: transactions and account balances are untouched (budgets are plans, not postings). Errors, changing nothing, if the name matches no budget — list_budgets shows what exists, exact and case-sensitive. To retire a budget while keeping its numbers readable, simply stop reporting on it instead of deleting. Args: name: Budget name (exact, case-sensitive). |
| create_partyA | Create a customer, vendor, or employee. Additive: each call creates a fresh party — names are NOT checked for duplicates, so list_parties first when unsure. Returns the assigned ID (e.g., "000001"), the handle every later call wants. ID counters are PER TYPE: customer 000001 and vendor 000001 are different parties, which is why party_type is required everywhere. Args: party_type: "customer" (pays you), "vendor" (you pay), or "employee" (expense-voucher workflows). name: Party name (e.g., "Acme Corp", "Jane Smith"). currency: ISO currency code (e.g., "USD", "EUR"). Defaults to book's default currency. notes: Optional notes (max 4096 characters). Employees have no notes field — rejected, not ignored. address: Optional address with keys: name, addr1, addr2, addr3, addr4, phone, fax, email. Each sub-field capped at 1024 characters. |
| list_partiesA | List customers, vendors, and/or employees. Leads with a Args: party_type: "customer", "vendor", or "employee". Omit for all three (sections in that order). active_only: If True, only show active parties. Default True. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size per type (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). |
| get_partyA | Get details for one customer, vendor, or employee by ID. Args: party_type: "customer", "vendor", or "employee" — required because ID counters collide across types (customer 000001 ≠ vendor 000001). id: Party ID (e.g., "000001"). This is the human-readable ID shown in GnuCash, not the internal GUID. |
| update_partyA | Update a customer's, vendor's, or employee's mutable fields.
Args: party_type: "customer", "vendor", or "employee" (ID counters collide across types — always required). id: Party ID (e.g., "000001"). name: New display name. currency: New ISO currency code (future documents only). notes: New notes; "" clears. Employees have no notes field — rejected, not ignored. active: Set active/inactive (inactive parties hide from default listings but keep their history). address: Full replacement address (see create_party). |
| delete_partyA | Delete a customer, vendor, or employee. Blocked while the party has documents (invoices, bills, vouchers, credit notes) — the audit trail outranks tidiness. Prefer update_party(active=false) to retire a party while keeping its history. Args: party_type: "customer", "vendor", or "employee" (ID counters collide across types — always required). id: Party ID (e.g., "000001"). |
| create_billtermA | Create a new billing term. Args: name: Billterm name (e.g., "Net 30"). due_days: Number of days until payment is due. Default 30. description: Optional description. discount_days: Days within which early discount applies. discount_percent: Early payment discount percentage (e.g., "2" for 2%). |
| list_billtermsA | List all billing terms. Leads with a Args: verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). |
| create_taxtableA | Create a new sales-tax table. A taxtable holds one or more entries. Each entry contributes either a percentage rate or a flat-value surcharge routed to a specific GL account (ASSET for input-tax credit, LIABILITY for output sales tax payable). Multi-entry composites (e.g., GST 5% + PST 7%) produce multiple tax splits per line at posting time. Args:
name: Taxtable name, unique within the book
(e.g., "CA Sales 7.25%", "BC GST+PST").
entries: List of {type, amount, account} dicts.
Example: create_taxtable( name="BC GST+PST", entries=[ {"type": "percentage", "amount": "5.00", "account": "Liabilities:GST Payable"}, {"type": "percentage", "amount": "7.00", "account": "Liabilities:PST Payable"}, ], ) |
| list_taxtablesA | List all sales-tax tables, or get one by name. Leads with a Args: name: Tax table name for a single-table detail lookup (entries, rates, account routing, refcount). All other parameters are ignored. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). |
| update_taxtableA | Update a sales-tax table's name and/or entries. Diff-style response: only changed fields are returned. Entry replacement on a taxtable that's already in use is
destructive to FUTURE entries' tax math. Existing posted
invoices retain their original splits (splits are stored,
not derived), but new entries on any document will use the
replacement entries' rates. When refcount > 0 and
Args:
name: Current taxtable name.
new_name: New name (optional).
entries: Replacement entry list (optional). Same shape
and validation as |
| delete_taxtableA | Delete a sales-tax table. Refuses when any Entry row references the taxtable (computed via SQL on the entries table). Voided invoices still pin their taxtables — voided entry rows persist for audit-trail purposes. Remove or re-assign referencing entries first. Args: name: Taxtable name. |
| create_documentA | Create a customer invoice, vendor bill, employee expense voucher, or credit note. The owner side derives from the document type — invoice →
customer, bill → vendor, voucher → employee. Credit notes
exist on both sides, so they alone require Args: document_type: "invoice", "bill", "voucher", or "credit_note". owner_id: The owning party's ID (customer ID for invoices, vendor ID for bills, employee ID for vouchers). ID counters are per type. party_type: Required for credit notes only ("customer" or "vendor" — which side the credit belongs to). Derived from document_type otherwise. date_opened: ISO date. Defaults to today (echoed in the response). notes: Optional notes (max 4096 characters). currency: ISO code. Defaults to the owner's currency, then the book default. term: Billterm name (e.g., "Net 30"). Optional. id: Custom document number; auto-generated when omitted. job_id: Optional Job to group under (invoices and bills; must belong to the same owner). applies_to_id: Credit notes only — the invoice/bill this credit note reverses. The link is PROVENANCE, not a constraint: apply_credit_note can net the credit against any open document from the same owner (its response notes the divergence when the applied target differs from this link). |
| add_document_entryA | Add a line item to a customer invoice, vendor bill, employee voucher, or credit note. Only unposted documents accept entries — unpost_document first to amend a posted one. Amounts are decimal strings; the line total is quantity × price (plus tax when a taxtable is attached). Args: document_type: "invoice", "bill", "voucher", or "credit_note". id: Document ID (e.g., "000001"). account: Income account for invoices / credit notes; expense account for bills and vouchers. Full path, %short GUID, or full GUID. description: Line item description. quantity: Quantity as a decimal string (e.g., "3"). price: Unit price as a decimal string (e.g., "125.00"). party_type: Credit notes only — disambiguates when a customer and vendor credit note share an ID. taxtable: Tax table name to apply. Optional. tax_included: Whether price already includes tax. notes: Optional entry notes. action: Optional entry action label (e.g., "Hours"). |
| delete_documentA | Delete an UNPOSTED customer invoice, vendor bill, employee voucher, or credit note. Posted documents are on the books — unpost_document first (payments block unposting; the audit trail outranks tidiness). Args: document_type: "invoice", "bill", "voucher", or "credit_note". id: Document ID (e.g., "000001"). party_type: Owner side, credit notes only — pass it when a credit note's ID collides with a document of the same ID on the other side (ID counters are per type). |
| apply_credit_noteA | Net a posted credit note against a posted invoice or bill from the same owner. No cash moves — the credit balance transfers between lots on the same A/R or A/P account. This is the most common credit-note settlement path: the
bookkeeper issues a credit note against an overcharge,
then nets it against the next invoice from that customer
(or applies it to an outstanding bill on the vendor side).
Use Args:
credit_note_id: The credit note to apply (must be
posted).
applies_to_invoice_id: The target invoice/bill (must
be posted, same owner, same currency, same A/R
or A/P post account). Need not be the document
the credit note was created against — that link
is provenance, and the response notes the
divergence when this target differs from it.
amount: Decimal-string amount to apply, in the
document currency. Defaults to |
| list_documentsA | List customer invoices, vendor bills, employee vouchers, and credit notes. Leads with a Status vocabulary (shared by every invoice/bill tool):
open = created and editable, not yet booked to A/R//A/P —
not payable. posted = booked to A/R//A/P with a lot
tracking its balance — payable. paid = posted with a zero
remaining balance (lot closed). outstanding = posted with
a remaining balance — the unpaid subset; get it directly from
Args: status: Filter by status: "posted" or "open", or omit for all. document_type: Filter to one document kind ("invoice", "bill", "voucher", "credit_note"). Omit for all. party_type: Filter by owner side ("customer", "vendor"). Omit for all. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. job_id: Filter to invoices grouped under a specific job — useful for the "what's part of this engagement?" listing pattern. offset: 0-indexed first row to return (default 0). |
| get_documentA | Get full details for a customer invoice, vendor bill, employee voucher, or credit note, including line items. Returns all entries with quantities, prices, and totals;
the response's Status vocabulary: open = editable, not yet booked; posted =
on the books, payable; paid = remaining balance zero. The
full definitions live on Args: id: Document ID (e.g., "000001"). This is the human-readable ID, not the internal GUID. document_type: "invoice", "bill", "voucher", or "credit_note" — disambiguates when IDs collide across per-type counters. party_type: Owner side ("customer"/"vendor") — needed only for credit notes, which exist on both sides. |
| post_documentA | Post a customer invoice, vendor bill, employee voucher, or credit note to A/R or A/P. Posting creates a transaction in the A/R or A/P account and makes the invoice official. Once posted, entries cannot be added. For a foreign-currency document, the exchange rate is etched
at posting and cannot be updated retroactively. If the latest
price for the invoice currency is more than 7 days from the
post date (the Args: id: Document ID (e.g., "000001"). post_account: A/R or A/P account path (e.g., "Assets:Accounts Receivable"). post_date: Date in ISO format (YYYY-MM-DD). Defaults to today. due_date: Payment due date (YYYY-MM-DD). Optional. description: Description for the posting transaction. Optional. document_type: "invoice", "bill", "voucher", or "credit_note" — disambiguates when IDs collide. party_type: Owner side, credit notes only. force: Override the stale-FX-rate guard and post with a 7–90 day stale rate. Default False. |
| unpost_documentA | Reverse a posted customer invoice, vendor bill, employee voucher, or credit note (each keeps its type through the round-trip). Deletes the posting transaction and lot, and clears the invoice's posted-state metadata. The invoice returns to "open" state and can be edited or re-posted. Refuses if the invoice has any payments applied — void payments first, then unpost. Args: id: Document ID (e.g., "000001"). document_type: "invoice", "bill", "voucher", or "credit_note" — disambiguates when IDs collide. party_type: Owner side, credit notes only. |
| pay_documentA | Record a payment against a posted customer invoice, vendor bill, employee voucher, or credit note. Creates a payment transaction from the specified bank/cash account to the document's A/R or A/P account. Partial payments are supported.
For cross-currency payments where the rate moved between
post-date and pay-date, a realized FX gain/loss split is
booked. Pass For invoices with early-payment-discount terms (e.g.,
"2/10 Net 30" = 2% off if paid within 10 days), pass
Args:
id: Document ID (e.g., "000001").
payment_account: Bank or cash account for payment (e.g., "Assets:Checking").
amount: Payment amount as decimal string (e.g., "500.00").
payment_date: Payment date (YYYY-MM-DD). Defaults to today.
description: Description for the payment transaction. Optional.
document_type: "invoice", "bill", "voucher", or
"credit_note" — disambiguates when IDs collide.
party_type: Owner side, credit notes only.
fx_account: Optional INCOME or EXPENSE account to receive
realized FX gain/loss (cross-currency payments only).
Accepts a full path, %short GUID, or full 32-char GUID.
apply_discount: When True, treat this payment as the
final settlement and absorb the early-payment
discount from the invoice's billterm. Default False
— explicit opt-in. Hard-rejects on credit notes
(refunds don't take discounts).
discount_account: Optional INCOME or EXPENSE account to
receive the discount split. Auto-resolves when
omitted. Accepts full path, %short GUID, or full
32-char GUID.
force: Override the stale-FX-rate guard. A cross-currency
payment etches the rate at pay time; if the latest
price is 7–90 days from the payment date the payment
is refused with Returns:
|
| create_jobA | Create a job for a customer or vendor. A job groups invoices (or bills) from one counterparty under a project-level container. Useful when a single customer has multiple distinct engagements (e.g., 'API Rewrite' and 'Q3 Maintenance') that should be reported on separately even though invoices flow to the same A/R. Args: owner_id: Customer or vendor ID (e.g., "000001"). owner_type: "customer" or "vendor". Employees are not supported (no GnuCash desktop UI for employee jobs). name: Human-readable job name (e.g., "API Rewrite"). reference: Optional reference string (PO number, project code). |
| list_jobsA | List jobs, optionally filtered. Leads with a Pass Args: id: Job ID for a single-job detail lookup (e.g., "000001"). All other filters are ignored. owner_type: Filter by "customer" or "vendor". Omit for all. owner_id: Filter by specific customer or vendor ID (requires owner_type). active_only: If True (default), exclude inactive jobs. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). |
| update_jobA | Update a job's name, reference, or active state. Any subset of fields can be passed; unspecified fields are left unchanged. Returns a diff-style response. Args: job_id: Job ID. name: New name (optional). reference: New reference (optional). active: New active flag — pass False to deactivate a completed job without deleting it (preserves history). |
| get_job_reportA | Per-job summary: billed / paid / outstanding totals across all linked invoices, plus the per-invoice breakdown. Totals are returned as Args: job_id: Job ID (e.g., "000001"). |
| delete_jobA | Delete a job. Refuses by default when invoices/bills are linked to the
job (data-loss prevention). Args: job_id: Job ID. force: If True, re-parent linked invoices instead of refusing. Default False. |
| get_outstanding_documentsA | Get all posted customer invoices, vendor bills, employee vouchers, and credit notes with outstanding balances. This is the authoritative unpaid list: outstanding = posted
with a remaining balance > 0. One call answers "what is
actually unpaid?" — no need to combine Leads with a Use verbose=true for structured JSON with Args: party_type: Filter by "customer" or "vendor". Omit for all. customer_id: Filter by specific customer ID. vendor_id: Filter by specific vendor ID. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). |
| vendor_spending_reportA | Get spending breakdown by vendor for a period. Analyzes posted vendor bills to show total billed, total paid, and outstanding amounts per vendor. Returns a compact aligned text table by default. Use verbose=true for the structured dict (programmatic consumers). Args: start_date: Start of period (YYYY-MM-DD). end_date: End of period (YYYY-MM-DD). vendor_id: Optional filter to a specific vendor. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. group_by: Optional "month", "quarter", or "year" — split the range into sub-period columns of total billed per vendor and return a multi-period TSV table. Overrides verbose. |
| get_book_summaryA | Get a compact overview of the entire GnuCash book. Returns book path, currency, account structure, transaction counts, key balances, net worth, commodities, and scheduled transactions in a single text response. Use this first to orient yourself. |
| list_accountsA | List all accounts in the GnuCash chart of accounts. Leads with a To FIND an account without paging the whole chart, pass
Args:
root: Filter to a subtree (e.g., "Expenses" for expense accounts only).
verbose: If false (default), compact text output — optimized
for reading and token efficiency. If true, structured
JSON, for when you need machine-readable fields rather
than a report.
limit: Page size (default 50, max 250). 0 = count only.
offset: 0-indexed first row to return (default 0).
query: Case-insensitive substring filter on account
path/description. Combines with |
| get_accountA | Get details for one account: type, commodity, description, placeholder flag, GUID, and hierarchy position. Read-only. Returns Args: name: Account ref: full path (e.g. 'Assets:Bank:Checking'), %short GUID, or full 32-char GUID |
| get_balanceA | Get the balance of an account as of a specific date. Defaults to today's date — future-dated transactions
(scheduled payments, accrued interest) are excluded. To
project a balance forward including future entries, pass
an explicit Args: account_name: Account ref: full path (e.g. 'Assets:Bank:Checking'), %short GUID, or full 32-char GUID as_of_date: Date in ISO format (YYYY-MM-DD). Defaults to today. |
| list_transactionsA | List transactions with optional filters. Leads with a Compact format (default):
Transactions with more than 4 splits collapse to the top 3 by
|value| plus Args: account: Filter by account name (switches output to register form) start_date: Start date in ISO format (YYYY-MM-DD) end_date: End date in ISO format (YYYY-MM-DD) limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. |
| get_transactionB | Get details for a specific transaction by GUID. Args: guid: Transaction GUID (32-character hex string, or 8+ char prefix) |
| create_transactionsA | Create transactions in one atomic command (bulk entry) —
the canonical entry tool for one transaction or many. A
single transaction is a one-row batch (the former
INPUT — Two opt-in extensions, each activated by naming it in the header (legacy headers parse exactly as before):
All extensions combine; when several split fields are
declared, the header's FIRST group fixes their order (e.g.
AUTO-FILL — a row with NO split cells at all (ends right
after Auto-filled rows are marked
BEHAVIOR — one book-open, one atomic save:
OUTPUT — a JSON envelope of two TSV tables joined by
Args: transactions: The TSV block described above. force: Override ALL blocking (HIGH) duplicates this batch. dry_run: Validate + screen, write nothing. on_error: "abort" (default) or "skip" for structural errors. |
| enter_statementA | Enter a COMPLETE bank/card statement in one atomic call: create the new lines, claim the ones already in the book, and reconcile everything against the closing balance — all in one save, or nothing at all. THE WORKFLOW (two calls around your judgment):
TRANSCRIBE, DON'T INTERPRET (dry-run): amounts and balances
go in EXACTLY as the statement prints them — for credit
cards too (charges positive, balance as amount owed). The
server applies the sign convention from the account's type;
you never flip a sign. The gate
INPUT —
SAFETY: the account's reconciled balance must tie to
OUTPUT (dry-run): Args: account: Statement account ref (path, %short, or GUID). BANK/CASH/ASSET/CREDIT/LIABILITY only. statement_date: The statement's closing date (YYYY-MM-DD); every touched split reconciles at it. opening_balance: Opening balance, exactly as printed. closing_balance: Closing balance, exactly as printed. lines: The TSV block described above. dry_run: DEFAULT TRUE — the rehearsal is the workflow. force_base: Land onto an untied opening base; the tie discrepancy is recorded, twin detection stays on. force_duplicates: Create past exact unclaimed twins (you adjudicated them as distinct charges). show_all: Dry-run only. Lines with MEDIUM/HIGH candidates suppress their LOW amount-coincidences (the cands column notes "+N LOW suppressed"); show_all=true lists everything. |
| search_transactionsA | Search transactions by description, memo, notes, or amount. Compact format (default):
Args: query: Search query string. For amount, supports: exact ("100"), greater (">100"), less ("<100"), range ("100-200") field: Field to search: 'description', 'memo', 'notes', or 'amount' limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. |
| create_accountA | Create a new account in the chart of accounts. Args: name: Account name (e.g., "AI Subscriptions"). account_type: One of ASSET, BANK, CASH, CREDIT, EQUITY, EXPENSE, INCOME, LIABILITY, MUTUAL, STOCK, RECEIVABLE, PAYABLE. parent: Parent account ref (full path, %short GUID, or full 32-char GUID). Omit for top-level. description: Optional description. placeholder: Container-only account. Default False. commodity: ISO currency code ("USD") or stock/fund symbol ("VTSAX"). Defaults to book's default currency. commodity_namespace: "CURRENCY" (default), "FUND", or an exchange ("NASDAQ", "NYSE"). Required with non-currency commodities. notes: Optional free-text notes (max 4096 bytes). Shows in GnuCash desktop's account editor Notes field. |
| update_accountA | Update an existing account's properties. Args: name: Account ref to update (full path e.g. "Expenses:Groceries", %short GUID, or full 32-char GUID) new_name: New name for the account (just the leaf name, not full path) description: New description placeholder: New placeholder status (true = container only) account_type: New account type (e.g., "CREDIT", "BANK"). Only changes within the same debit/credit polarity are allowed — e.g., LIABILITY to CREDIT, ASSET to BANK. Cross-polarity changes (e.g., ASSET to LIABILITY) are blocked. notes: New notes (max 4096 bytes; shared with GnuCash desktop's Notes field). Pass "" to clear. |
| move_accountA | Move an account — children and balances ride along — under a new parent in the hierarchy. No transaction data changes: only the account's position (and therefore every descendant's full path) is rewritten. Errors, changing nothing, if either ref matches no account, if the move would create a cycle (new parent is the account itself or one of its descendants), or if the new parent already has a child of the same name. %short GUIDs survive the move; saved full paths do not. Use update_account to rename in place instead of moving. Args: name: Account ref to move (full path e.g. "Expenses:Old:Account", %short GUID, or full 32-char GUID) new_parent: New parent account ref (full path, %short GUID, or full 32-char GUID) |
| delete_accountB | Delete an account from the chart of accounts. Safeguards prevent deletion if the account has children or transactions. Args: name: Account ref to delete (full path, %short GUID, or full 32-char GUID) |
| delete_transactionA | Delete one transaction by GUID — or several in one call. Safeguards prevent deletion if a transaction has reconciled splits (force=true overrides) or is an invoice's posting record (unpost_document first). Pass a LIST of GUIDs to delete several in one book open /
one save. The batch is all-or-nothing: every guid is
validated before anything is deleted, so a bad guid rejects
the whole call with nothing removed. Response for a list is
Args: guid: Transaction GUID (32-char hex or 8+ char prefix), or a list of them. force: Allow deleting transactions with reconciled splits. |
| update_transactionsA | Update MANY transactions with per-row values (bulk edit). INPUT — An EMPTY cell leaves that field UNCHANGED. To blank a field,
opt in with a One book open, one save; |
| replace_splitsA | Replace all splits in a transaction with a new set. Replace all splits in a transaction with a completely new set. The transaction's currency, description, date, and notes are preserved. New splits must balance to zero. A new split that reproduces an existing one (same account, amount, and quantity) is an UNCHANGED leg: it keeps the old split's memo (supply a memo to override) and its reconcile state. So recategorizing the expense leg of a reconciled bank transaction is safe — resubmit the bank leg as-is and only the changed leg resets. Args: guid: Transaction GUID (32-character hex string, or 8+ char prefix) splits: Complete new set of splits. Each split needs: - 'account' (required): Account ref — full path, %short GUID, or full 32-char GUID - 'amount' (required): Value in transaction currency, as a decimal string - 'quantity' (optional): Amount in account's commodity, as a decimal string. Required if account commodity differs from transaction currency. - 'memo' (optional): Split memo force: Required only when the replacement would CHANGE a reconciled split (or remove splits from lots) — unchanged reconciled legs are preserved without it. |
| list_commoditiesA | List all commodities (currencies, stocks, etc.) in the book. Leads with a THE PRICE-UPDATE WORK LIST: Args: verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). stale_days: Only commodities whose latest market price is at least this many days old, including never-priced ones, excluding the book default currency. Omit for the unfiltered list. held_only: Only commodities some real account is denominated in. Filters AND-combine. |
| create_commodityA | Create a new commodity (stock, mutual fund, etc.). Args: mnemonic: Symbol (e.g., "VTSAX"). Unique within namespace. fullname: Human-readable name. namespace: "FUND" (default) for mutual funds, "NASDAQ"/"NYSE"/ "AMEX" for stocks, or any custom string. fraction: Smallest fractional unit. 1 = whole units, 100 = 2 decimals, 10000 = 4 decimals (default, shares), 1000000 = 6 decimals (crypto). cusip: Optional CUSIP/ISIN identifier. |
| create_pricesA | Record MANY prices in one call (bulk quote entry). INPUT —
Per-row semantics are The companion work list: |
| create_priceA | Record a price for a commodity (stock, NAV, exchange rate). An existing price with the same commodity/currency/date/source is updated rather than duplicated. Args:
commodity: Symbol (e.g., "VTSAX").
namespace: Commodity namespace (e.g., "FUND", "NASDAQ").
value: Price per unit as decimal string (e.g., "250.45").
currency: ISO currency code. Defaults to the book's default
currency — so |
| delete_priceA | Delete a single price entry. Identifies the price by Args: commodity: Symbol (e.g., "VTSAX", "USD", "EUR"). namespace: Namespace (e.g., "FUND", "CURRENCY"). date: ISO date (YYYY-MM-DD) of the price to delete. source: Optional source tag (e.g., "user:price", "user:yfinance"). Required when multiple prices exist on the same commodity+date. |
| get_pricesA | Get price history for a commodity. Leads with a Args: commodity: Symbol of the commodity (e.g., "VTSAX"). namespace: Namespace of the commodity (e.g., "FUND"). start_date: Optional start date filter (YYYY-MM-DD). end_date: Optional end date filter (YYYY-MM-DD). currency: Optional currency filter (e.g., "USD"). limit: Page size (default 50, max 250). 0 = count only. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. offset: 0-indexed first row to return (default 0). |
| get_latest_priceA | Get the most recent price for a commodity. Args: commodity: Symbol of the commodity (e.g., "VTSAX"). namespace: Namespace of the commodity (e.g., "FUND"). currency: Currency for the price. Defaults to the book's default currency. Pass explicitly to get a price quoted in a non-default currency. Returns: JSON with date, value, type, and source of most recent price. Returns null if no price exists. |
| create_lotA | Create a new, empty lot for cost basis tracking. Additive: the lot starts open with no splits attached, and nothing else in the book changes. A lot groups one purchase with its later sales so cost basis and capital gain compute per purchase. The full flow: create_lot → create_transactions (the buy, a one-row batch) → assign_split_to_lot → calculate_lot_gain; the lot auto-closes when its assigned splits net to zero shares. Errors if the account ref matches nothing. Skip this tool when you only want a valuation — get_book_summary and balance_sheet price holdings without lots. Args: account: Account ref for the investment account: full path (e.g., "Assets:Investments:VTSAX"), %short GUID, or full 32-char GUID. title: Lot identifier (e.g., "VTSAX 2026-01-15 purchase"). notes: Optional notes. |
| list_lotsA | List all lots for an investment account. Leads with a Args: account: Account ref (full path, %short GUID, or full 32-char GUID). include_closed: If True, include fully-sold lots. Default False. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). |
| get_lotA | Get detailed information about a lot. Args: guid: Lot GUID (or 8+ char prefix). Returns: JSON with lot details including all splits: - title, notes, is_closed - splits: list of all splits with date, quantity, value - summary: total quantity, cost basis, cost per share |
| assign_split_to_lotA | Assign a transaction split to a lot. Use after creating a buy/sell transaction to link the investment account split to its lot for cost basis tracking. Args: split_guid: GUID of the split (from transaction's investment account). 8+ char prefix accepted. lot_guid: GUID of the lot (or 8+ char prefix). Workflow: 1. create_lot("Assets:VTSAX", "VTSAX Jan 2026") 2. create_transactions(...one-row batch buying 10 shares, qty column on the investment leg...) 3. assign_split_to_lot(investment_split_guid, lot_guid) |
| calculate_lot_gainA | Calculate potential or actual capital gain for a lot. If shares and sale_price provided, calculates hypothetical gain. Otherwise uses lot's current state and latest price. Args: lot_guid: Lot GUID (or 8+ char prefix). shares: Optional number of shares to calculate for. Defaults to all remaining shares. sale_price: Optional sale price per share. Defaults to latest price for the commodity. |
| close_lotA | Mark a lot as closed. Use when a lot is fully sold but wasn't automatically marked closed, or to manually close a lot with zero shares. Args: guid: Lot GUID (or 8+ char prefix). Note: Lots are automatically marked closed when their quantity reaches zero through assigned splits. This tool is for manual cleanup. |
| set_reconcile_stateA | Set the reconciliation state for a split. Args: split_guid: GUID of the split to update (32-character hex string, or 8+ char prefix) state: New reconcile state: 'n' (new), 'c' (cleared), 'y' (reconciled) reconcile_date: Date in ISO format (YYYY-MM-DD). Required for 'y', defaults to today. |
| get_reconciliation_statusA | Per-account reconciliation table behind the dashboard's aggregate counts — answers "WHICH accounts are never reconciled / dormant / behind?" One line per reconcilable account with activity, bucketed
exactly as the dashboard classifies them: Args: verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return. |
| get_unreconciled_splitsA | Get unreconciled splits for an account. Leads with a Use verbose=true for structured JSON with split GUIDs, amounts, totals,
and the Args: account: Account ref: full path (e.g. 'Assets:Bank:Checking'), %short GUID, or full 32-char GUID as_of_date: Only include splits on or before this date (YYYY-MM-DD) verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). |
| reconcile_accountA | Reconcile splits against a statement balance. SIGN CONVENTION: statement_balance is the ACCOUNT's balance in GnuCash's signs — for liability accounts (credit cards) a $5,000 owed balance is "-5000", not "5000". Two modes:
Both modes verify the resulting reconciled balance ties to statement_balance before mutating; mismatch rejects with the discrepancy amount. TYPICAL STATEMENT FLOW (credit card or bank): batch-enter the statement's transactions (create_transactions), then reconcile_all with the statement's closing date and balance. Multi-month catch-up: enter all months in one batch, then one reconcile_all per statement, oldest first — the through_date default keeps each sweep inside its own statement. Args: account: Account ref: full path (e.g. 'Assets:Bank:Checking'), %short GUID, or full 32-char GUID statement_date: Statement ending date (YYYY-MM-DD) statement_balance: Expected balance from statement (as string, e.g., '1234.56') split_guids: List of split GUIDs to reconcile (targeted mode). Omit for bulk mode. reconcile_all: When true, reconcile all unreconciled splits up to through_date. through_date: Date filter for bulk mode (YYYY-MM-DD); defaults to statement_date. |
| void_transactionA | Void a transaction (proper accounting void, not delete). Voiding preserves the transaction for audit purposes but zeroes out all split values. Use this instead of delete when you need to maintain an audit trail. Args: guid: Transaction GUID to void (32-character hex string, or 8+ char prefix) reason: Reason for voiding (required for audit trail) |
| unvoid_transactionA | Restore a voided transaction to its pre-void amounts. The inverse of void_transaction: original split values come back from the slots the void stored, and the void markers and reason are cleared. All-or-nothing — if any split's stored void data is missing, the tool errors and restores nothing (no partial resurrection). Errors too if the transaction isn't found or isn't voided. Restored splits return as UNreconciled ('n'), so a previously reconciled transaction needs reconciling again afterward. Args: guid: Transaction GUID to unvoid (32-character hex string, or 8+ char prefix) |
| spending_by_categoryA | Get spending breakdown by expense category for a period. Returns a compact aligned text table by default. Use verbose=true for the structured dict (programmatic consumers, plotting). Args: start_date: Start of period (YYYY-MM-DD), inclusive. No calendar snapping — for calendar-month figures pass full month boundaries (e.g. 2026-05-01 to 2026-07-31). end_date: End of period (YYYY-MM-DD), inclusive. depth: Hierarchy depth for grouping (1 = top-level categories, 2 = subcategories) verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. group_by: Optional "month", "quarter", or "year" — split the range into sub-period columns and return a multi-period TSV table (category rows, one column per period plus Total and Avg). Overrides verbose. |
| income_by_sourceA | Get income breakdown by source for a period. Returns a compact aligned text table by default. Use verbose=true for the structured dict. Args: start_date: Start of period (YYYY-MM-DD) end_date: End of period (YYYY-MM-DD) depth: Hierarchy depth for grouping (1 = top-level categories, 2 = subcategories) verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. group_by: Optional "month", "quarter", or "year" — split the range into sub-period columns and return a multi-period TSV table (source rows, one column per period plus Total and Avg). Overrides verbose. |
| balance_sheetA | Generate a balance sheet as of a specific date. Shows assets, liabilities, and equity with account breakdowns. A = L + E holds by construction; non-zero unrealized P&L appears as a synthetic equity row. Args:
as_of_date: Date in ISO format (YYYY-MM-DD). Defaults to
today — matching |
| net_worthA | Calculate net worth (assets minus liabilities), as one value or a trajectory. Read-only. Valuation is as-of: each date values holdings at the latest market rate on or before it, in the book's default currency; voided transactions are excluded. end_date alone gives one number; add start_date + interval for a series (one value per interval step from start_date, end_date always included as the last row). For the full A = L + E statement with per-account detail, use balance_sheet; this tool is the headline number and its trend. The dashboard's trajectory section is this same calculation. Args: end_date: Calculate net worth as of this date (YYYY-MM-DD) start_date: Optional start date for time series (YYYY-MM-DD) interval: Optional interval for time series: 'month', 'quarter', or 'year' |
| cash_flowA | Calculate cash flow (inflows and outflows) for a period. Scope is BANK and CASH accounts by default. Credit-card and
investment movements are not cash flow (they're liability /
asset changes — use balance_sheet). An explicit Internal transfers (transactions with no INCOME or EXPENSE
leg — transfer to savings, currency wallet shuffle, paying
a credit card from checking) are filtered by default. The
default totals answer "where did money come from and where
did it go?" rather than "every debit and credit." Pass
Args: start_date: Start of period (YYYY-MM-DD) end_date: End of period (YYYY-MM-DD) account: Optional specific account to analyze (defaults to all cash/bank accounts) include_transfers: When False (default), filter internal transfers. When True, include every cash/bank movement regardless of category. group_by: Optional "month", "quarter", or "year" — split the range into sub-period columns and return an Inflows / Outflows / Net trend table (TSV). |
| debt_payoff_planA | Calculate an avalanche-method debt payoff schedule with YETI multiplier. Auto-discovers CREDIT/LIABILITY accounts that have an 'apr' slot set. Set APRs via set_account_slot (e.g., set_account_slot("Liabilities:Visa", "apr", "23.49")). Assumptions the schedule is computed under: interest compounds monthly at apr/12 on the running balance; one payment per debt per month starting this month; extra budget beyond the minimums goes to the highest-APR debt first (avalanche); balances are as of today in the book default currency; amounts round to 0.01. Debts the plan cannot include are CONFESSED in ⚠ lines, never silently dropped: foreign-currency debts with no FX rate, loans with no minimum_payment/loan_term_months to estimate a payment from, and balance-carrying debts with no 'apr' slot. Returns a compact text summary by default — kill order with
balances/APRs/payoff months, YETI line, totals, debt-free date.
Use verbose=true for the structured dict (per-account
YETI (Your Expense's True Impact) shows the true cost of a purchase when carrying debt: "A $1.00 purchase will cost you $1.68 by the time your debt is paid off." Args: monthly_budget: Total monthly amount available for all debt payments combined additional_purchase: Dollar amount to calculate YETI for (default "1.00") verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. |
| create_scheduled_transactionA | Create a recurring transaction template. Args:
name: Scheduled transaction name (e.g., "Monthly Rent").
description: Transaction description at instantiation.
splits: List of split dicts, e.g.
|
| list_scheduled_transactionsA | List all scheduled transactions. Leads with a Args: enabled_only: If True, only show enabled schedules. Default True. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). |
| get_upcoming_transactionsA | Get scheduled transactions due within a time window. This is the "what bills are coming up?" query. Leads with a
Args: days: Look ahead window in days. Default 14. verbose: If false (default), compact text output — optimized for reading and token efficiency. If true, structured JSON, for when you need machine-readable fields rather than a report. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). |
| create_transaction_from_scheduledA | Create an actual transaction from a scheduled template. Args: guid: Scheduled transaction GUID (or 8+ char prefix). transaction_date: Date for the transaction. Defaults to next occurrence. |
| update_scheduled_transactionA | Update a scheduled transaction. Args: guid: Scheduled transaction GUID (or 8+ char prefix). enabled: Enable or disable. end_date: Three-state field for the schedule's end date. |
| delete_scheduled_transactionA | Delete a scheduled transaction. Does not affect transactions already created from this schedule. Args: guid: Scheduled transaction GUID (or 8+ char prefix). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| accounts_resource | Full chart of accounts from the GnuCash book. Resources are whole-snapshot reads, so this unwraps the paginated envelope and returns the bare account list (up to the server cap). |
TDQS
Scored across 87 tools
Most tools target a distinct resource+action (create_account vs update_account vs delete_account), and workflows like document status are carefully explained. The main ambiguities are the single-vs-bulk price pairs (create_price/create_prices, get_prices/get_latest_price) and the overlapping transaction entry tools (create_transactions vs enter_statement), though descriptions do disambiguate them.
The core follows a consistent verb_noun pattern (list_accounts, create_transactions, delete_price, reconcile_account), but many report-style tools break it with noun phrases like balance_sheet, cash_flow, net_worth, spending_by_category, and vendor_spending_report. The mix is readable but not uniform.
87 tools is far beyond a typical practical surface and will overwhelm agents even though GnuCash is a broad domain. Many bulk/single and report variants inflate the count; the server would be more usable consolidated to ~50 tools.
Coverage is impressively deep: accounts, transactions, reconciliation, documents, parties, jobs, budgets, commodities, prices, lots, scheduled transactions, and reporting all have lifecycle or workflow support. Notable gaps remain — billterms have no update/delete, documents have no header-edit or entry-removal tools, and backups cannot be listed or restored via the API.