SQL Account (read-only)

v0.1.0
io.github.z9systems/sql-account-mcp Checked 2 days ago Published 7 days ago

Read-only SQL Account (SQL Accounting) data: customers, stock, invoices and payments.

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

list_customers List customers

List customers from Maintain Customer. Optional exact filters: customer code, company name.

ParameterTypeDescription
codestringCustomer code, e.g. 300-A0001
companynamestringCompany name, exact
limitintegerRecords to return, 1 to 50. Default 20.
offsetintegerNumber of records to skip (for paging). Default 0.

get_customer Get a customer

Get one customer by customer code, with all fields SQL Account returns (addresses, contacts, terms, credit limit where available).

ParameterTypeDescription
code *stringCustomer code, e.g. 300-A0001

list_stock_items List stock items

List stock items. Optional exact filters: item code, description.

ParameterTypeDescription
codestringStock item code
descriptionstringItem description, exact
limitintegerRecords to return, 1 to 50. Default 20.
offsetintegerNumber of records to skip (for paging). Default 0.

get_stock_item Get a stock item

Get one stock item by item code, including its detail lines (such as UOM and prices) when SQL Account returns them.

ParameterTypeDescription
code *stringStock item code

list_sales_invoices List sales invoices

List sales invoices (header only). Optional exact filters: customer code, document number, document date.

ParameterTypeDescription
customer_codestringCustomer code
docdatestringDocument date, YYYY-MM-DD
docnostringInvoice number, e.g. IV-00012
limitintegerRecords to return, 1 to 50. Default 20.
offsetintegerNumber of records to skip (for paging). Default 0.

get_sales_invoice Get a sales invoice

Get one sales invoice by document number, with its item lines.

ParameterTypeDescription
docno *stringInvoice number, e.g. IV-00012

list_purchase_invoices List purchase invoices

List purchase invoices (header only). Optional exact filters: supplier code, document number, document date.

ParameterTypeDescription
docdatestringDocument date, YYYY-MM-DD
docnostringPurchase invoice number, e.g. PI-00001
limitintegerRecords to return, 1 to 50. Default 20.
offsetintegerNumber of records to skip (for paging). Default 0.
supplier_codestringSupplier code

get_purchase_invoice Get a purchase invoice

Get one purchase invoice by document number, with its item lines.

ParameterTypeDescription
docno *stringPurchase invoice number, e.g. PI-00001

list_customer_payments List customer payments

List payments received from customers. Optional exact filters: customer code, document number, document date.

ParameterTypeDescription
customer_codestringCustomer code
docdatestringDocument date, YYYY-MM-DD
docnostringPayment document number
limitintegerRecords to return, 1 to 50. Default 20.
offsetintegerNumber of records to skip (for paging). Default 0.

list_agents List sales agents

List sales agents.

ParameterTypeDescription
codestringAgent code
limitintegerRecords to return, 1 to 50. Default 20.
offsetintegerNumber of records to skip (for paging). Default 0.

query_records Query any supported record type

Read any supported SQL Account record type with exact-match filters on its fields. Use this for record types without their own tool (journal entries, payment vouchers, stock received, transfers, adjustments). Record types: customer (Customers (Maintain Customer)), agent (Sales agents), stockitem (Stock items), salesinvoice (Sales invoices), purchaseinvoice (Purchase invoices), customerpayment (Customer payments), paymentvoucher (GL payment vouchers), journalentry (Journal entries), stockreceived (Stock received), stocktransfer (Stock transfers), stockadjustment (Stock adjustments).

ParameterTypeDescription
record_type *stringWhich record type to read
filtersobjectExact-match filters on field names, e.g. {"docno":"JE-00003"} or {"docdate":"2026-11-27"}
limitintegerRecords to return, 1 to 50. Default 20.
offsetintegerNumber of records to skip (for paging). Default 0.
with_linesbooleanAlso return detail lines (only when filtering by docno or code). Default false.