SmartAccounts MCP by usefulapi

v1.28.1
io.usefulapi/smartaccounts Checked 2 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
fetch_addressesbooleanInclude addresses.
fetch_contactsbooleanInclude contacts (emails, phones).
idstringA specific client id.
modified_fromstringOnly clients modified after, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
modified_tostringOnly clients modified until, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
name_or_reg_codestringName or registry code to search for.
pageintegerPage 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.

ParameterTypeDescription
id *stringThe client id (from smartaccounts_list_clients).
balance_datestringBalance on this date, yyyy-mm-dd (default today).
fetch_detailsbooleanInclude 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.

ParameterTypeDescription
fetch_addressesbooleanInclude addresses.
fetch_contactsbooleanInclude contacts (emails, phones).
idstringA specific vendor id.
modified_fromstringOnly vendors modified after, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
modified_tostringOnly vendors modified until, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
name_or_reg_codestringName or registry code to search for.
pageintegerPage 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.

ParameterTypeDescription
id *stringThe vendor id (from smartaccounts_list_vendors).
balance_datestringBalance on this date, yyyy-mm-dd (default today).
fetch_detailsbooleanInclude 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.

ParameterTypeDescription
codestringA specific article code.
modified_fromstringOnly articles modified after, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
modified_tostringOnly articles modified before, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
pageintegerPage number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page).
search_stringstringFilter 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.

ParameterTypeDescription
client_idstringOnly this client's invoices.
client_namestringFilter by client name.
date_fromstringInvoices dated from, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
date_tostringInvoices dated to, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
date_typestringWhich date the range filters: invoice date (default), entry date, due date or modification time.
fetch_rowsbooleanInclude the invoice rows.
idstringA specific invoice id.
invoice_numberstringFilter by invoice number.
pageintegerPage number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page).
payment_statusstringunpaid = 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.

ParameterTypeDescription
date_fromstringInvoices dated from, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
date_tostringInvoices dated to, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
date_typestringWhich date the range filters: invoice date (default), entry date, due date or modification time.
fetch_rowsbooleanInclude the invoice rows.
idstringA specific invoice id.
invoice_numberstringFilter by invoice number.
pageintegerPage number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page).
payment_statusstringunpaid = not fully paid; overdue = unpaid and past due. Omit for all.
vendor_idstringOnly this vendor's invoices.
vendor_namestringFilter 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.

ParameterTypeDescription
account_namestringFilter by the bank or cash account name.
account_typestringOnly bank or only cash payments.
date_fromstringPayments dated from, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
date_tostringPayments dated to, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
date_typestringWhich date the range filters: payment date (default) or modification time.
fetch_rowsbooleanInclude the payment rows.
idstringA specific payment id.
pageintegerPage number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page).
partner_idstringFilter by client or vendor id.
partner_namestringFilter by client or vendor name.
partner_typestringOnly 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.

ParameterTypeDescription
date_fromstringEntries dated from, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
date_tostringEntries dated to, yyyy-mm-dd (or yyyy-mm-ddTHH:mm:ss, Estonian time).
date_typestringWhich date the range filters: entry date (default) or added/modified time.
doc_typestringOnly entries of this type (LEDGER_ENTRY = manual ledger entry).
fetch_rowsbooleanInclude the entry rows (account, debit, credit).
filter_descriptionstringFilter by document number or row description.
idstringA specific entry id.
pageintegerPage number, 1-based (default 1). Use next_page_number from the previous reply (100 objects per page).
payment_statusstringunpaid 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.

ParameterTypeDescription
name *stringClient name.
vat_pc *stringThe client's default VAT code (the vatPc of smartaccounts_list_vat_rates), for example 20.
address1string
address2string
bank_accountstringBank account number (IBAN).
citystring
commentstringInternal comment.
countrystring2-letter ISO country code, for example EE.
countystring
emailstringContact email.
invoice_due_daysintegerDefault invoice due date in days.
phonestringContact phone.
postal_codestring
reg_codestringCompany registry code.
vat_numberstringVAT 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…

ParameterTypeDescription
client_id *stringThe client id (from smartaccounts_list_clients).
date *stringInvoice date, yyyy-mm-dd.
rows *arrayInvoice rows.
commentstringInternal comment.
currencystringCurrency code (default EUR).
due_datestringDue date, yyyy-mm-dd (default from the client's settings).
exchange_ratenumberExchange rate; only for a currency without an ECB rate.
invoice_notestringAdditional text printed on the invoice PDF.
reference_numberstringReference 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…

ParameterTypeDescription
account_name *stringThe name of the bank or cash account.
account_type *stringBANK or CASH.
currency *stringCurrency code, for example EUR; must match the account's currency.
date *stringPayment date, yyyy-mm-dd.
partner_id *stringThe client id (partner_type CLIENT) or vendor id (VENDOR).
partner_type *stringCLIENT = money received from a client; VENDOR = money paid to a vendor.
rows *arrayThe invoices this payment settles.
commentstringInternal comment.
documentstringDocument number text.
exchange_ratenumberExchange 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.

ParameterTypeDescription
date *stringEntry date, yyyy-mm-dd.
rows *arrayEntry rows; total debit must equal total credit.
commentstringInternal comment.
documentstringDocument number text.