Yuki MCP by usefulapi

v1.17.1
io.usefulapi/yuki Checked 3 days ago Published 1 day ago

Read Yuki administrations, open invoices, ledger balances, contacts and documents.

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

yuki_list_domains List domains

List the Yuki domains (customer environments) this access key can reach: id, name and URL. Accountant keys reach many domains. Accounting.Domains.

ParameterTypeDescription
offsetintegerSkip this many items (default 0). Use the previous reply's next_offset to read on.

yuki_list_administrations List administrations

List the administrations (companies with their own books) this access key can reach: id, name, address, Chamber of Commerce and VAT numbers, start date. Use the ids in the other tools. Accounting.Administrations.

ParameterTypeDescription
offsetintegerSkip this many items (default 0). Use the previous reply's next_offset to read on.

yuki_list_outstanding_debtor_items List open sales invoices (debtors)

Open items on the debtors list (unpaid sales invoices): date, description, contact, open and original amount, reference, due date. Optionally within a date range. Accounting.OutstandingDebtorItems / OutstandingDebtorItemsByDate.

ParameterTypeDescription
administration_idstringYuki administration id (from yuki_list_administrations). Optional when the key has a single administration.
end_datestringWith start_date: end of the range (yyyy-mm-dd).
include_bank_transactionsbooleanAlso list unmatched bank transactions as open items (default false).
limitintegerMost items to return (default 100, max 500).
offsetintegerSkip this many items (default 0). Use the previous reply's next_offset to read on.
sort_orderstringSort order (default DateDesc).
start_datestringWith end_date: only items dated in this range (yyyy-mm-dd).

yuki_list_outstanding_creditor_items List open purchase invoices (creditors)

Open items on the creditors list (unpaid purchase invoices): date, description, contact, open and original amount, reference, due date. Optionally within a date range. Accounting.OutstandingCreditorItems / OutstandingCreditorItemsByDate.

ParameterTypeDescription
administration_idstringYuki administration id (from yuki_list_administrations). Optional when the key has a single administration.
end_datestringWith start_date: end of the range (yyyy-mm-dd).
include_bank_transactionsbooleanAlso list unmatched bank transactions as open items (default false).
limitintegerMost items to return (default 100, max 500).
offsetintegerSkip this many items (default 0). Use the previous reply's next_offset to read on.
sort_orderstringSort order (default DateDesc).
start_datestringWith end_date: only items dated in this range (yyyy-mm-dd).

yuki_get_gl_account_balance Get general ledger balances

The balance of every general ledger account of an administration on a date (yyyy-mm-dd): account code, description, amount. Accounting.GLAccountBalance.

ParameterTypeDescription
date *stringBalance date, yyyy-mm-dd.
administration_idstringYuki administration id (from yuki_list_administrations). Optional when the key has a single administration.
limitintegerMost items to return (default 100, max 500).
offsetintegerSkip this many items (default 0). Use the previous reply's next_offset to read on.

yuki_list_gl_account_transactions List general ledger transactions

The transactions booked on one general ledger account in a date range: date, description, amount, contact, project. Get account codes from yuki_get_gl_account_scheme. Accounting.GLAccountTransactions.

ParameterTypeDescription
end_date *stringLast day, yyyy-mm-dd.
gl_account_code *stringGeneral ledger account code, e.g. 80000.
start_date *stringFirst day, yyyy-mm-dd.
administration_idstringYuki administration id (from yuki_list_administrations). Optional when the key has a single administration.
limitintegerMost items to return (default 100, max 500).
offsetintegerSkip this many items (default 0). Use the previous reply's next_offset to read on.

yuki_get_net_revenue Get net revenue

The net revenue (turnover) of an administration in a date range, by transaction date. Accounting.NetRevenue.

ParameterTypeDescription
end_date *stringLast day, yyyy-mm-dd.
start_date *stringFirst day, yyyy-mm-dd.
administration_idstringYuki administration id (from yuki_list_administrations). Optional when the key has a single administration.

yuki_get_gl_account_scheme Get chart of accounts

The general ledger accounts (chart of accounts) of an administration: code, description, type. Use the codes in yuki_list_gl_account_transactions. AccountingInfo.GetGLAccountScheme.

ParameterTypeDescription
administration_idstringYuki administration id (from yuki_list_administrations). Optional when the key has a single administration.
limitintegerMost items to return (default 100, max 500).
offsetintegerSkip this many items (default 0). Use the previous reply's next_offset to read on.

yuki_list_projects List projects

Projects of an administration (code, description, company, contact, period, budgets), optionally filtered. AccountingInfo.GetProjects.

ParameterTypeDescription
administration_idstringYuki administration id (from yuki_list_administrations). Optional when the key has a single administration.
limitintegerMost items to return (default 100, max 500).
offsetintegerSkip this many items (default 0). Use the previous reply's next_offset to read on.
search_optionstringField to search in (default All).
search_valuestringText to search for (ignored for All).

yuki_search_contacts Search contacts

Search the contacts (customers and suppliers) of a domain by name, city, postcode, tag, email, website, phone, code, Chamber of Commerce number, VAT number or bank account. Returns at most 100 contacts per page; ask for the next page_number until the reply is empty. Contact.SearchContacts.

ParameterTypeDescription
activestringActive, inactive or both (default Both).
domain_idstringYuki domain id (from yuki_list_domains). Optional when the key has a single domain.
offsetintegerSkip this many contacts of the page (default 0). A long page is cut to fit the reply: use next_offset with the same page_number, then the next page_number.
page_numberintegerPage number, starting at 1 (default 1). A page holds up to 100 contacts.
search_optionstringField to search in (default All).
search_valuestringText to search for. Empty lists all contacts.
sort_orderstringSort order (default Name).

yuki_list_document_folders List archive folders

The folders of the document archive (id, name). With an accountant key that reaches several domains, pass domain_id so the archive of that domain is read (default: the key's only domain). Archive.DocumentFolders.

ParameterTypeDescription
domain_idstringYuki domain id (from yuki_list_domains). Optional when the key has a single domain.

yuki_list_document_folder_tabs List archive folder tabs

The tabs inside one archive folder (id, name). Archive.DocumentFolderTabs.

ParameterTypeDescription
folder_id *integerFolder id from yuki_list_document_folders.
domain_idstringYuki domain id (from yuki_list_domains). Optional when the key has a single domain.

yuki_list_documents List archive documents

Documents in the archive (invoices, receipts, bank statements...) with id, subject, type, contact, dates, amount. Narrow by archive folder or by document type, and by creation date range. Page with number_of_records and start_record. Archive.Documents / DocumentsInFolder / DocumentsByType.

ParameterTypeDescription
document_typeintegerOnly this Yuki document type number. Not together with folder_id.
domain_idstringYuki domain id (from yuki_list_domains). Optional when the key has a single domain.
end_datestringLast day, yyyy-mm-dd (default 2100-01-01).
folder_idintegerOnly this archive folder (id from yuki_list_document_folders). Not together with document_type.
number_of_recordsintegerDocuments per call (default 100, max 500).
offsetintegerSkip this many documents of the fetched batch (default 0). A long batch is cut to fit the reply: use next_offset with the same arguments.
sort_orderstringSort order (default CreatedDesc).
start_datestringFirst day, yyyy-mm-dd (default 1990-01-01).
start_recordintegerOffset of the first document (default 0). Add numberOfRecords to page on.

yuki_search_documents Search archive documents

Search archive documents by text in the creator, contact, subject, tag or type (or all). Optionally limit to a folder or tab and a date range. Archive.SearchDocuments.

ParameterTypeDescription
search_text *stringText to search for.
domain_idstringYuki domain id (from yuki_list_domains). Optional when the key has a single domain.
end_datestringLast day, yyyy-mm-dd.
folder_idintegerOnly this folder; -1 or omitted = all folders.
number_of_recordsintegerDocuments per call (default 100, max 500).
offsetintegerSkip this many documents of the fetched batch (default 0). A long batch is cut to fit the reply: use next_offset with the same arguments.
search_optionstringWhere to search (default All).
sort_orderstringSort order (default CreatedDesc).
start_datestringFirst day, yyyy-mm-dd. Omit with end_date to search all years.
start_recordintegerOffset of the first document (default 0). Add numberOfRecords to page on.
tab_idintegerOnly this tab; -1 or omitted = all tabs.

yuki_get_document Get document

Details of one archive document by id (subject, type, contact, dates, amounts, folder). Archive.FindDocument.

ParameterTypeDescription
document_id *stringYuki document id (the ID in a document list).
domain_idstringYuki domain id (from yuki_list_domains). Optional when the key has a single domain.

yuki_get_document_download_url Get document download link

A presigned download URL for the file of one archive document (the link works for a short time; open it in a browser). Archive.DocumentDownloadUrl.

ParameterTypeDescription
document_id *stringYuki document id (the ID in a document list).
domain_idstringYuki domain id (from yuki_list_domains). Optional when the key has a single domain.