Supplier Invoice Tool
v0.1.1Supplier invoices to draft Xero bills per job, for UK trades' AI assistants (test mode)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_trade_account Create the business invoice book
Start here, once per business. Creates the trade's invoice book and returns an API key to send as "Authorization: Bearer <key>" on every other call. Test mode: free, nothing is charged. The same identity (company number) can later sign the trade into Nero Work without a new sign up.
| Parameter | Type | Description |
|---|---|---|
name * | string | Trading name, for example Spark & Sons Electrical Ltd. |
company_number | string | Companies House number, if a limited company. Leave out for a sole trader. |
job_reference_prefixes | array | Letters the trade puts before job numbers on orders, for example ["JOB", "HAUS"]. Default JOB, NW, REF. |
job_reference_style | string | "number" (recommended when jobs are numbered): JOB-1042, Job 1042 and 1042 are all job 1042. "prefixed": keep JOB-1042 as written. |
vat_number | string | |
vat_registered | boolean | Default true. If false, bills are entered gross with no VAT. |
get_account Show the business account and settings
The trade's account, settings and Nero identity.
update_settings Change job reference and Xero settings
Change how job references are read and how bills are entered in Xero.
| Parameter | Type | Description |
|---|---|---|
company_number | string | |
job_reference_prefixes | array | |
job_reference_style | string | |
settings | object | |
vat_number | string |
add_supplier_invoices Add supplier invoices (emails, PDFs, photos)
Add supplier invoices to the book: raw emails with PDF attachments, PDFs (text or scanned), photos, or pasted text, up to 25 per call. Each is read, checked against its own printed total, given its job reference, kept with its original, and checked for price changes against earlier invoices from the same supplier. Duplicates are skipped. Returns one result per document: added, needs_check (did not add up, held back), duplicate or failed.
| Parameter | Type | Description |
|---|---|---|
invoices * | array |
month_summary Month summary: draft bills per supplier and job
The month at a glance: one draft bill per supplier with a line per job (net, VAT and which invoices), invoices held back to check, lines with no job reference, and price changes with the extra cost they caused. Includes the exact Xero payloads. Sends nothing.
| Parameter | Type | Description |
|---|---|---|
month * | string | YYYY-MM, for example 2026-11. |
list_invoices List the month's invoices
Every invoice in the book for a month, with its lines, status and any problems.
| Parameter | Type | Description |
|---|---|---|
month * | string | YYYY-MM, for example 2026-11. |
price_alerts Supplier price changes this month
Price changes on the same product code from the same supplier this month, in date order, and the extra they cost.
| Parameter | Type | Description |
|---|---|---|
month * | string | YYYY-MM, for example 2026-11. |
get_original Link to an original invoice
A private link to the original email, PDF or scan of one invoice, to show the trade.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | string |
assign_job_reference Put an invoice on a job
Put an invoice (or some of its lines) on a job, when the supplier left the reference off or it was wrong.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | string | |
job_reference * | string | |
line_numbers | array |
review_invoice Accept or remove an invoice held for checking
For an invoice held back as needs_check: accept it as read (it then goes on the bill), or remove it (for example to add a corrected copy). Ask the trade first.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
invoice_id * | string |
connect_xero Get the Xero sign-in link
A link for the trade to open and sign in to Xero. Test mode: only a Xero Demo Company can be connected.
xero_status Check the Xero connection
Whether Xero is connected, and to which organisation.
push_bills_to_xero Put the month's bills into Xero as drafts
Put the month's bills into Xero as DRAFT bills, one per supplier, one line per job, with the original invoices attached. Without send: true it is a dry run that shows what would be sent. Running it again updates the same draft (no duplicates). A bill the trade has already approved is never changed; late invoices go on a top up bill. Never approves or pays.
| Parameter | Type | Description |
|---|---|---|
month * | string | YYYY-MM, for example 2026-11. |
send | boolean | true to really add the drafts. Default false (dry run). |
suppliers | array | Only these suppliers. |
disconnect_xero Forget the Xero connection
Forget the Xero connection. Nothing in Xero is changed.