Skip to content
Log in

Tools reference

These are the functions (tools, in MCP terminology) that your assistant discovers when it connects to B2Brouter. You don't need to call them yourself: the assistant picks which one to use based on your question. This list helps you know what it can query, decide on their permissions in your assistant's settings or, if you're a developer, use them from your agent.

They are all read-only. No tool can create, modify, send or delete anything, and they are all declared as such in the protocol (readOnlyHint: true, destructiveHint: false).

ToolWhat it doesMain parametersRequires
list_accountsLists the accounts where your user is a member, with name, identifier and tax IDs. It's the first step to refer to an account.detailed (optional)Access to a paid account
account_financial_summaryFinancial summary of an account: revenue and expenses, pending amounts (on time and overdue), monthly evolution, top customers and suppliers, and invoices by status.account_identifier, range or date_from + date_to, currency, with_taxesProfessional plan or higher; access to invoices, quotes, payments or orders
ToolWhat it doesMain parametersRequires
list_invoicesLists an account's issued or received invoices, newest first, with filters by status, number, series, dates, customer or amount.account_id, invoice_type (issued or received), query, limit, offsetProfessional plan or higher; access to issued or received invoices
show_invoiceReturns a complete invoice (parties, amounts, taxes, lines, payment and delivery details) in the same format as the REST API.invoice_id, includeSame as above
validate_invoiceValidates an invoice and returns whether it's valid, along with any XSD, Schematron and model errors.invoice_idSame as above
ToolWhat it doesMain parametersRequires
list_tax_reportsLists an account's tax reports (Verifactu, TicketBAI, SII, DGFiP, KSeF, ZATCA, MyInvois, SDI), with status and the authority's error.account_id, query, limit, offsetProfessional plan or higher; access to tax reports or invoices
get_tax_reportTax report detail: status, amounts, tax breakdown, lines, parties, identifiers/QR, the authority's error and the XML sent.tax_report_idSame as above
ToolWhat it doesMain parametersRequires
directory_lookupLooks up a company in the B2Brouter directory by tax ID and tells you how to reach it with documents: channel, document types, routing codes and mandatory fields.identifier, scheme and/or countryAccess to a paid account; 50 searches per day and user
knowledge_indexTells the assistant where B2Brouter's official documentation (this portal) is published so it can consult it.noneAccess to a paid account
knowledge_documentSame as knowledge_index; kept so that clients already using it don't get an error.name (ignored)Access to a paid account

For example questions that use these tools, see What you can do.