SmartAccounts MCP by usefulapi
v1.28.1Read SmartAccounts clients, vendors, invoices, payments, ledger, accounts; create and book records.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
smartaccounts_list_clients List or search clients
Customers of the company (purchasesales/clients:get): id, name, regCode, vatNumber, bank account, due days, discount, VAT code. Filter by name or registry code, by id, or by modification time. Paged (100 per page). The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
| Parameter | Type | Description |
|---|---|---|
fetch_addresses | boolean | Include addresses. |
fetch_contacts | boolean | Include contacts (emails, phones). |
id | string | A specific client id. |
modified_from | string | Only clients modified after, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
modified_to | string | Only clients modified until, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
name_or_reg_code | string | Name or registry code to search for. |
page | integer | Page number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page). |
smartaccounts_get_client_balance Get a client's outstanding balance
The outstanding balance of one client (purchasesales/clients:getbalance), optionally on a past date and with the open documents. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
| Parameter | Type | Description |
|---|---|---|
id * | string | The client id (from smartaccounts_list_clients). |
balance_date | string | Balance on this date, yyyy-mm-dd (default today). |
fetch_details | boolean | Include the documents that make up the balance. |
smartaccounts_list_vendors List or search vendors
Suppliers of the company (purchasesales/vendors:get): id, name, regCode, vatNumber, bank account, VAT code. Filter by name or registry code, by id, or by modification time. Paged (100 per page). The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
| Parameter | Type | Description |
|---|---|---|
fetch_addresses | boolean | Include addresses. |
fetch_contacts | boolean | Include contacts (emails, phones). |
id | string | A specific vendor id. |
modified_from | string | Only vendors modified after, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
modified_to | string | Only vendors modified until, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
name_or_reg_code | string | Name or registry code to search for. |
page | integer | Page number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page). |
smartaccounts_get_vendor_balance Get a vendor's outstanding balance
The outstanding balance owed to one vendor (purchasesales/vendors:getbalance), optionally on a past date and with the open documents. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
| Parameter | Type | Description |
|---|---|---|
id * | string | The vendor id (from smartaccounts_list_vendors). |
balance_date | string | Balance on this date, yyyy-mm-dd (default today). |
fetch_details | boolean | Include the documents that make up the balance. |
smartaccounts_list_articles List or search articles
Products, services and warehouse items (purchasesales/articles:get): code, description, type, unit, VAT code, sales and purchase prices, accounts. Search by code or name, or by modification time. Paged (100 per page). The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
| Parameter | Type | Description |
|---|---|---|
code | string | A specific article code. |
modified_from | string | Only articles modified after, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
modified_to | string | Only articles modified before, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
page | integer | Page number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page). |
search_string | string | Filter by article code or name. |
smartaccounts_list_sales_invoices List sales invoices
Sales (client) invoices (purchasesales/clientinvoices:get): number, client, dates, amounts, VAT, outstanding amount, optionally the rows. Filter by date, client, number or payment status (unpaid, overdue). Paged (100 per page). The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
| Parameter | Type | Description |
|---|---|---|
client_id | string | Only this client's invoices. |
client_name | string | Filter by client name. |
date_from | string | Invoices dated from, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
date_to | string | Invoices dated to, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
date_type | string | Which date the range filters: invoice date (default), entry date, due date or modification time. |
fetch_rows | boolean | Include the invoice rows. |
id | string | A specific invoice id. |
invoice_number | string | Filter by invoice number. |
page | integer | Page number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page). |
payment_status | string | unpaid = not fully paid; overdue = unpaid and past due. Omit for all. |
smartaccounts_list_purchase_invoices List purchase invoices
Purchase (vendor) invoices (purchasesales/vendorinvoices:get): number, vendor, dates, amounts, VAT, outstanding amount, optionally the rows. Filter by date, vendor, number or payment status (unpaid, overdue). Paged (100 per page). The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
| Parameter | Type | Description |
|---|---|---|
date_from | string | Invoices dated from, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
date_to | string | Invoices dated to, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
date_type | string | Which date the range filters: invoice date (default), entry date, due date or modification time. |
fetch_rows | boolean | Include the invoice rows. |
id | string | A specific invoice id. |
invoice_number | string | Filter by invoice number. |
page | integer | Page number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page). |
payment_status | string | unpaid = not fully paid; overdue = unpaid and past due. Omit for all. |
vendor_id | string | Only this vendor's invoices. |
vendor_name | string | Filter by vendor name. |
smartaccounts_list_payments List payments
Bank and cash payments from clients and to vendors (purchasesales/payments:get): date, partner, account, currency, amount, optionally the rows (which invoices were paid). Give date_from or id: SmartAccounts refuses the call without one. Paged (100 per page). The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
| Parameter | Type | Description |
|---|---|---|
account_name | string | Filter by the bank or cash account name. |
account_type | string | Only bank or only cash payments. |
date_from | string | Payments dated from, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
date_to | string | Payments dated to, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
date_type | string | Which date the range filters: payment date (default) or modification time. |
fetch_rows | boolean | Include the payment rows. |
id | string | A specific payment id. |
page | integer | Page number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page). |
partner_id | string | Filter by client or vendor id. |
partner_name | string | Filter by client or vendor name. |
partner_type | string | Only client payments or only vendor payments. |
smartaccounts_list_ledger_entries List general ledger entries
General ledger entries of every type (general/entries:get): manual entries, invoices, payments, VAT returns, depreciation. Filter by date, type, text or payment status. Paged (100 per page). The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
| Parameter | Type | Description |
|---|---|---|
date_from | string | Entries dated from, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
date_to | string | Entries dated to, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time). |
date_type | string | Which date the range filters: entry date (default) or added/modified time. |
doc_type | string | Only entries of this type (LEDGER_ENTRY = manual ledger entry). |
fetch_rows | boolean | Include the entry rows (account, debit, credit). |
filter_description | string | Filter by document number or row description. |
id | string | A specific entry id. |
page | integer | Page number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page). |
payment_status | string | unpaid or overdue invoices only. Omit for all. |
smartaccounts_list_accounts List the chart of accounts
The chart of accounts: code, type (ASSET, LIABILITY, INCOME, EXPENSE), Estonian and English description. Use the codes in ledger entries. (settings/accounts:get). Not paged. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
smartaccounts_list_vat_rates List VAT rates
VAT codes: vatPc code, percentage, descriptions, whether active for sales or purchases, accounts. Use vatPc in client and invoice rows. (settings/vatpcs:get). Not paged. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
smartaccounts_list_bank_accounts List bank accounts
The company's bank accounts: name (used as accountName in payments), ledger account, currency, IBAN, SWIFT. (settings/bankaccounts:get). Not paged. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
smartaccounts_list_cash_accounts List cash accounts
The company's cash registers: name (used as accountName in payments), ledger account, currency. (settings/cashaccounts:get). Not paged. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
smartaccounts_list_payment_methods List payment methods
Payment methods: name, ledger account, whether cash. (settings/paymentmethods:get). Not paged. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
smartaccounts_create_client Create a client
Add a new client (purchasesales/clients:add). Search first with smartaccounts_list_clients so a client is not created twice. Returns clientId and the generated referenceNumber. This creates a real accounting record in the company's books. This server cannot edit or delete it; correct it in SmartAccounts. It never retries: if a reply is unclear, look in SmartAccounts before calling again. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
| Parameter | Type | Description |
|---|---|---|
name * | string | Client name. |
vat_pc * | string | The client's default VAT code (the vatPc of smartaccounts_list_vat_rates), for example 20. |
address1 | string | |
address2 | string | |
bank_account | string | Bank account number (IBAN). |
city | string | |
comment | string | Internal comment. |
country | string | 2-letter ISO country code, for example EE. |
county | string | |
email | string | Contact email. |
invoice_due_days | integer | Default invoice due date in days. |
phone | string | Contact phone. |
postal_code | string | |
reg_code | string | Company registry code. |
vat_number | string | VAT registration number. |
smartaccounts_create_sales_invoice Create a sales invoice
Post a new sales (client) invoice (purchasesales/clientinvoices:add). The invoice number is generated by SmartAccounts, totals and VAT are calculated from the rows, and the invoice is booked to the ledger at once (it is not a draft). The client must exist (smartaccounts_list_clients); each row's code must be an article code (smartaccounts_list_articles) and vat_pc a VAT code (smartaccounts_list_vat_rates). Fails if the period is locked. Returns invoiceId, number and the totals. This creates a real accounting record in the company's books. This server cannot edit or delete it; correct it in Sma…
| Parameter | Type | Description |
|---|---|---|
client_id * | string | The client id (from smartaccounts_list_clients). |
date * | string | Invoice date, yyyy-mm-dd. |
rows * | array | Invoice rows. |
comment | string | Internal comment. |
currency | string | Currency code (default EUR). |
due_date | string | Due date, yyyy-mm-dd (default from the client's settings). |
exchange_rate | number | Exchange rate; only for a currency without an ECB rate. |
invoice_note | string | Additional text printed on the invoice PDF. |
reference_number | string | Reference number for payment orders (default generated). |
smartaccounts_create_payment Create a payment
Record a bank or cash payment against one or more invoices (purchasesales/payments:add): a client paying a sales invoice, or a payment to a vendor for a purchase invoice. Use smartaccounts_list_bank_accounts or _list_cash_accounts for account_name, and the invoice ids from the invoice lists. The currency must match the account's currency. Returns paymentId, number and amount. This creates a real accounting record in the company's books. This server cannot edit or delete it; correct it in SmartAccounts. It never retries: if a reply is unclear, look in SmartAccounts before calling again. The ven…
| Parameter | Type | Description |
|---|---|---|
account_name * | string | The name of the bank or cash account. |
account_type * | string | BANK or CASH. |
currency * | string | Currency code, for example EUR; must match the account's currency. |
date * | string | Payment date, yyyy-mm-dd. |
partner_id * | string | The client id (partner_type CLIENT) or vendor id (VENDOR). |
partner_type * | string | CLIENT = money received from a client; VENDOR = money paid to a vendor. |
rows * | array | The invoices this payment settles. |
comment | string | Internal comment. |
document | string | Document number text. |
exchange_rate | number | Exchange rate; only for a currency without an ECB rate. |
smartaccounts_create_ledger_entry Create a manual ledger entry
Post a manual general ledger entry (journal entry, general/entries:add) in EUR. Debits must equal credits. Account codes come from smartaccounts_list_accounts. Fails if the period is locked. Returns id, number and amount. This creates a real accounting record in the company's books. This server cannot edit or delete it; correct it in SmartAccounts. It never retries: if a reply is unclear, look in SmartAccounts before calling again. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
| Parameter | Type | Description |
|---|---|---|
date * | string | Entry date, yyyy-mm-dd. |
rows * | array | Entry rows; total debit must equal total credit. |
comment | string | Internal comment. |
document | string | Document number text. |