BillingEngine

v0.3.0
com.billingengine/mcp Checked 2 days ago Published 4 days ago

Invoices, customers, payments and revenue figures of BillingEngine from any MCP client.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

find_customers Find customers

Lists customers, optionally filtered by a search text that matches company, names and email.

ParameterTypeDescription
external_idstringFind the customer with this identifier from another system
pageintegerPage of the list, starting at 1
querystring

create_customer Create a customer

Creates a customer. Needs a company or a last name and a full address (line 1, postal code, city, country).

ParameterTypeDescription
address *object
buyer_referencestringLeitweg-ID or buyer reference for e-invoices
companystring
customer_typestringBusiness or consumer; it decides the default interest and the late payment flat fee on reminders. Without it the account default applies
emailstring
external_idstringIdentifier of the customer in another system, unique per account
first_namestring
last_namestring
phonestring
salutationstringHow the letters address the customer
titlestringAcademic or professional title such as Dr.
vat_numberstring

update_customer Update a customer

Changes the given fields of a customer; fields that are left out stay as they are.

ParameterTypeDescription
id *integer
addressobject
buyer_referencestringLeitweg-ID or buyer reference for e-invoices
companystring
customer_typestringBusiness or consumer; it decides the default interest and the late payment flat fee on reminders. Without it the account default applies
emailstring
external_idstringIdentifier of the customer in another system, unique per account
first_namestring
last_namestring
phonestring
salutationstringHow the letters address the customer
titlestringAcademic or professional title such as Dr.
vat_numberstring

create_invoice Create a draft invoice

Creates a draft invoice for a customer. Number, language, texts and VAT treatment come from the account settings. The invoice is not sent; it counts towards the monthly invoice maximum of the plan.

ParameterTypeDescription
customer_id *integer
items *array
closing_textstringText below the items, defaults to the account's text
datestringInvoice date, defaults to today
due_daysintegerDays until payment is due
external_idstringIdentifier of the invoice in another system; a second invoice with the same one is refused
opening_textstringText above the items, defaults to the account's text. Do not put the purchase order number here, use purchase_order_number
purchase_order_numberstringPurchase order number of the customer, printed on the invoice and sent in the e-invoice
service_period_end_datestring
service_period_start_datestring

update_invoice Update a draft invoice

Changes a draft invoice. Passing items replaces all existing items, so send the complete list. Sent invoices cannot be changed.

ParameterTypeDescription
id *integer
closing_textstringText below the items, defaults to the account's text
datestringInvoice date, defaults to today
due_daysintegerDays until payment is due
external_idstringIdentifier of the invoice in another system; a second invoice with the same one is refused
itemsarray
opening_textstringText above the items, defaults to the account's text. Do not put the purchase order number here, use purchase_order_number
purchase_order_numberstringPurchase order number of the customer, printed on the invoice and sent in the e-invoice
service_period_end_datestring
service_period_start_datestring

list_invoices List invoices

Lists invoices, newest first. Status: draft, open (sent and unpaid), overdue (open and past due), paid, uncollectible, cancelled or cancellation (a credit note that cancels an invoice, once sent). Type: invoice or credit_note.

ParameterTypeDescription
afterstringInvoice date from
beforestringInvoice date until
customer_idinteger
external_idstringFind the invoice with this identifier from another system
numberstring
pageintegerPage of the list, starting at 1
per_pageinteger
statusstring
typestring

get_invoice Get an invoice

Returns one invoice with its items, tax breakdown, amounts and status. Amounts are decimal strings such as "119.00".

ParameterTypeDescription
id *integer

download_invoice Download an invoice file

Saves the PDF or the XML e-invoice of an invoice on this computer and returns the file path. Defaults to the Downloads folder.

ParameterTypeDescription
id *integer
directorystringTarget folder, defaults to ~/Downloads
formatstring

record_payment Record a payment

Records a payment for one or more sent, open invoices of the same customer and tax rate. The amount is gross.

ParameterTypeDescription
amount *numberGross amount received
invoice_ids *array
datestringDefaults to today
external_idstringIdentifier of the payment in another system
payment_methodstringDefaults to transfer

list_payments List payments

Lists recorded payments, newest first, optionally only those for one invoice.

ParameterTypeDescription
invoice_idinteger
pageintegerPage of the list, starting at 1

get_profits Get income, expenses and profit

Money received (payments and cash revenues), expenses, depreciations and profit per period and in total, net and gross, as on the dashboard. In the current year the interval year counts the depreciations of the whole year, month and quarter only up to and including the current one.

ParameterTypeDescription
afterstringFirst day of the range, defaults to 1 January of the current year, or of the year of an earlier before
beforestringLast day of the range, defaults to 31 December of the current year, or of the year of a later after
intervalstringLength of the periods, defaults to month. The range is widened to whole periods

get_invoiced_revenue Get invoiced revenue

Sent invoices by invoice date per period and in total, net and gross. Drafts and cancelled invoices are left out.

ParameterTypeDescription
afterstringFirst day of the range, defaults to 1 January of the current year, or of the year of an earlier before
beforestringLast day of the range, defaults to 31 December of the current year, or of the year of a later after
intervalstringLength of the periods, defaults to month. The range is widened to whole periods

get_open_amounts Get open amounts

What is open today, what of it is overdue and what of that a reminder was sent for, net and gross.

get_vat_balance Get the VAT balance

Output tax, input tax and balance. Without a range it covers the current period of the VAT return; give both after and before or neither, at most ten years apart. If unassigned_bookings is above 0, say that the balance leaves them out and that the tax report in BillingEngine lists them.

ParameterTypeDescription
afterstringFirst day of the range
beforestringLast day of the range

get_customer_shares Get income per customer

Money received per customer in a range, largest first, negative amounts included, with the total of everything received.

ParameterTypeDescription
afterstringFirst day of the range, defaults to 1 January of the current year, or of the year of an earlier before
beforestringLast day of the range, defaults to 31 December of the current year, or of the year of a later after
pageintegerPage of the list, starting at 1
per_pageintegerUse 5 for a top five

get_article_sales Get sales per article

Quantity and amount invoiced per article in a range, largest first, with the total.

ParameterTypeDescription
afterstringFirst day of the range, defaults to 1 January of the current year, or of the year of an earlier before
beforestringLast day of the range, defaults to 31 December of the current year, or of the year of a later after
pageintegerPage of the list, starting at 1
per_pageintegerUse 5 for a top five

get_expense_shares Get expenses per category

Tax deductible expenses per category in a range, largest first, with the total.

ParameterTypeDescription
afterstringFirst day of the range, defaults to 1 January of the current year, or of the year of an earlier before
beforestringLast day of the range, defaults to 31 December of the current year, or of the year of a later after
pageintegerPage of the list, starting at 1
per_pageintegerUse 5 for a top five