Guide for AI agents
How an AI agent should work in Artoz through MCP. Read this before changing anything.
You are working in a small business’s double-entry books. Accuracy matters more than speed.
Before acting
- Use the tools for every figure. Never estimate or invent numbers.
- Amounts are in the reporting currency unless a currency is given. Dates are
YYYY-MM-DD. Currency codes are ISO 4217 (USD, EUR, IDR…); anything else, like “Rp”, is refused with the code it most likely means. - Periods follow the app’s standard: tools with
from/toalso takeperiod, a preset such as “This month”, “Last month”, “Last quarter”, “Year to date”, “Last year” or “Last 12 months” (whole months to the end of last month in reports, rolling to today in ledgers and searches). Years and quarters follow the fiscal year, which starts infiscal_year_start_monthfromget_overview; “This …” is the whole period.as_oftakes a date or “Today”, “End of last month”, “End of last quarter”, “End of last year”, “End of this year”. Without dates a report covers This month and a balance today, as the app opens. - Use
list_accountsfor account codes; never guess a code. - Check what you may do: every change is checked against the user’s settings. Allow records it at once; Ask first saves a draft or returns
needs_approval; Off is refused. Say plainly which happened. If a call says Artoz is asking the user to allow you, tell them to click Allow in Artoz, then try again.export_pdftakespasswordto lock the PDF; tell the user to send the password separately, never in the same email. - Call
list_workspacesto see every set of books. Tools use the one open in Artoz unless you passworkspace, and each answer ends with “Books: …”. Usecreate_workspaceonly when the user asks for new books.
Rules
- Entries must balance: debits equal credits in the reporting currency.
- Closed periods can’t be changed. Pick a date after the closing date for corrections.
- Don’t delete: void or reverse posted entries, void issued documents.
- Artoz never moves money. Recording a payment only records that money moved.
- Some accounts are hidden: you’ll only see their totals. Don’t ask for or infer their lines.
- Tax figures are estimates, not advice.
- To send a document, call
export_pdfand attach the file it returns with your own email tool. Artoz never sends email itself.
Setting up books
- To set up books from a balance sheet, trial balance or old chart of accounts, send it all in one
propose_setup: accounts, opening balances, contacts, tax codes, business details and settings. Reuse codes fromlist_accounts. On new books callget_setupfirst: it lists what’s left and the files the user handed over; tick or mark steps withupdate_setupand post short progress lines as you work. - Opening balances go on each account’s usual side (assets as debits, liabilities and equity as credits), dated the day before the books start. Any difference goes to 3900 Opening balance equity; tell the user if it isn’t zero.
- Setup changes ask first by default: the user reviews the proposal in Artoz and applies it as one change. Calling
propose_setuporsave_accountagain adds to the same proposal. - For many transactions use
record_transactions. For a bank statement CSV useimport_statement: preview first, then commit with categories for the rows that need one. - Business details in
propose_setuptake address, phone, email, website, tax ID andregistration_number; contacts takecontact_person(printed as “Attn.”). How invoices look you can set withsave_brand, for a brand or (by its name) the main brand; logo images are uploaded by the user.
Sales and costs
- A sale that is already paid, or one the user just asks you to “record”, goes in directly with
record_transactions: money in on the bank or cash account against an income account. No invoice and no receivable. A cost already paid is the same, as money out against an expense account. - Use
draft_documentonly when the user asks for an invoice or bill, or says the money is owed and paid later. - If you can’t tell, record it directly, then offer in one line to make an invoice as well. Ask only when you can’t tell which account the money went through.
Running the month
- Start with
list_activityandlist_proposals: see what changed, what the user undid, and what’s still waiting. - A draft invoice has no number until it’s issued: draft results give
numbernull and anid, so refer to it by that id.issue_documentreturns the number it took. Quotes and bills are numbered when saved. - Invoice PDFs never mention who drafted them, so nothing on the paper says an AI app made it.
- Fix your own drafts with
edit_draft_entryandedit_draft_document, or delete them. Void issued invoices and bills withvoid_document; never delete posted work. - Posted entries:
void_entry(with areason) takes one out of the books and keeps it, crossed out;recategorize_entrymoves it to another account, and the user sees the change in the entry’s History. Neither works in closed periods or on entries an invoice, bill, payment, trade or tax return made (change those there), and entries matched in a finished reconciliation can’t be voided. The user can edit, restore or undo any of it in Transactions. - Reconcile with
reconcile_accountand the statement CSV. Record statement lines that have no entry, tick near matches only when they’re the same, and leave finishing to the user unless they allow it. A statement with nothing ticked only finishes withno_transactions: true, when the statement really shows no transactions. - Keep rates current with
set_exchange_rateand categories consistent withsave_import_rule. For investments,list_holdingsshows them (stale prices flagged);save_holdingadds one,record_tradebooks buys, sales, income and fees,set_pricestakes prices you looked up yourself (Artoz never fetches them) andrevalue_holdingsbooks month end. They ask the user first unless allowed.rename_holding_namerenames or removes where holdings are held or a holding group, andrename_account_groupdoes the same for account groups; a name already in use merges, and names you pass are matched to ones in use. - Plan with
save_recurring,save_budget,save_goalandsave_scenario. Read the rest withget_reportandget_tax_returns. A return the user filed is marked withfile_tax_return(nothing_owed,not_paid, orentrywhen an entry already in the books paid it);pay_tax_returnposts a payment. Checkpossible_paymentsinget_tax_returnsbefore paying, so a payment already imported isn’t recorded twice.list_upcominglists what has a date: due dates, recurring items, quotes about to expire and tax deadlines; the user gets Mac reminders for these on the days they chose. - Correct issued invoices and bills with
credit_document,record_refundandremove_payment; void only documents without payments. - For a contract paid in parts, give
draft_documentapayment_plan:each_term(work done over time) bills each term on its own date and Artoz posts it then;up_front(goods or finished work) bills it all on issue. Payments go to the oldest unpaid term.list_documentsshows every term andnext_due;export_pdfwithtermmakes the payment request for that term. Ask the user before changing amounts on an issued invoice: they can correct it in Artoz while it’s unpaid. Lines take an optionalunit(printed as “20 pcs”) and eitherdiscount_percentordiscount_amount; income and tax are booked after the discount. - A business can sell under several brands;
get_overviewlists them, the first being the main one. Passbrandtodraft_documentfor an invoice under another brand (it takes that brand’s numbers and design), andreferencefor the customer’s PO number.list_documentsfilters bybrand.list_brandsshows each brand’s details;save_brandadds or changes one anddelete_brandremoves one that has no invoices yet; a brand in use only the user can delete. Both wait for the user’s approval unless they allow brand changes.save_brandtakesshow_tax_idto leave the company’s tax ID off a brand’s invoices, and the invoice options:logo_on_invoice(auto, square, wide, none),show_name,business_details(beside_customer or footer),spacing,discounts(column or under_line),number_separators(language, 1,234.56, 1.234,56, 1 234,56),currency_display(symbol or code) andtitlesper invoice language, e.g.{"id": {"invoice": "Invoice"}}. For the main brand, only these look options,design,colorandfooterchange. - For how the business is doing over time,
get_business_metricsgives all-time revenue, revenue and profit over the last 12 months, and growth against the 12 months before and the same month last year. Growth is null until the books cover that period: say so rather than estimate it. - When a change waits for approval, say so;
list_proposalsshows what the user approved or declined. Passreasonso they know why. - Keep the evidence:
attach_fileputs a receipt or bill PDF on its entry or document. Bring history over withrecord_journal_entries; quote withdraft_documentkind quote andupdate_quote; repeat invoices withsave_recurringandinvoice_from. Repeating bills usebill_from;frequencydaily withinterval30 is every 30 days, andtimesstops it after that many.
After acting
Every change you make is marked as yours and appears in the user’s Activity, where they review and can undo it. Tell them what you changed, with numbers, so it’s easy to check.