erp-mcp

v0.10.0
@humanagencyp/erp-mcp Checked 8 hours ago Published 1 month ago

ERP MCP server for the Human Agency Protocol — quote-to-order: items, customers, quotes, orders

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

list_items

List/search catalog items (sku, name, unit, list price, stock)

ParameterTypeDescription
limitnumberMaximum results to return (default: 50)
querystringText search across sku and name

get_item

Get a single item, including stock and list price

ParameterTypeDescription
id *stringItem ID

find_customers

Search customers by name or email

ParameterTypeDescription
limitnumberMaximum results to return (default: 50)
querystringText search across name and email

get_customer

Get a single customer, including credit limit, open balance, and available credit

ParameterTypeDescription
id *stringCustomer ID

list_quotes

List quotes, optionally filtered by status or customer. Each result includes its current revision.

ParameterTypeDescription
customer_idstringFilter by customer ID
limitnumberMaximum results to return (default: 50)
statusstringFilter by status

get_quote

Get a single quote with its lines, including its current revision. Pass `revision` to get an earlier revision's content instead (status and timestamps still reflect the quote as it is now).

ParameterTypeDescription
id *stringQuote ID
revisionnumberOptional — return this past revision's content instead of the current one

list_orders

List orders, optionally filtered by customer

ParameterTypeDescription
customer_idstringFilter by customer ID
limitnumberMaximum results to return (default: 50)

get_order

Get a single order with its lines

ParameterTypeDescription
id *stringOrder ID

get_invoice

Get a single invoice with its lines. Accepts the invoice ID or its number (e.g. INV-2026-0001).

ParameterTypeDescription
id *stringInvoice ID or number

list_invoices

List invoices, optionally filtered by customer or status

ParameterTypeDescription
customer_idstringFilter by customer ID
limitnumberMaximum results to return (default: 50)
statusstringFilter by status

get_credit_note

Get a single credit note with its lines

ParameterTypeDescription
id *stringCredit note ID

list_credit_notes

List credit notes, optionally filtered by invoice or customer

ParameterTypeDescription
customer_idstringFilter by customer ID
invoice_idstringFilter by invoice ID
limitnumberMaximum results to return (default: 50)

get_document

Read an issued invoice or credit note as a PDF document: filename, content type, base64 content and the sha256 fingerprint of the PDF bytes.

ParameterTypeDescription
id *stringInvoice or credit note ID (or number)
kind *stringWhich document to read

create_quote

Create a draft quote for a customer. The connector recomputes the net total from the lines and the discount and refuses the call if the declared value, discount, or currency does not match. The result's `revision` is always 1 — sending or converting this quote later will require it.

ParameterTypeDescription
currency *stringDocument currency — must match the customer's currency
customer_id *stringCustomer ID
discount_pct *numberDocument discount against list price, in percent (0-100)
lines *arrayQuote lines
value *numberNet document total — must equal sum(qty*list_price)*(1-discount_pct/100)
notesstringFree-form notes (optional)
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.
valid_untilstringISO 8601 date the quote is valid until (optional)

update_quote

Update a draft quote (lines, discount, valid_until, notes). Only draft quotes can be updated. The connector recomputes the net total and refuses the call if the declared value, discount, or currency does not match. Every successful update produces the next revision (the result's `revision` field) — sending or converting this quote will require that new number, not the one it had before this call.

ParameterTypeDescription
currency *stringDocument currency — must match the quote's currency
discount_pct *numberDocument discount against list price, in percent (0-100)
id *stringQuote ID
value *numberNet document total — must equal sum(qty*list_price)*(1-discount_pct/100)
linesarrayReplacement quote lines (optional — omit to keep existing lines)
notesstringFree-form notes (optional)
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.
valid_untilstringISO 8601 date the quote is valid until (optional)

send_quote

Send a draft quote to the customer (draft -> sent); records when it was sent. The declared value, discount, and currency must match the quote as stored. `revision` must match the quote's current revision (from create_quote, update_quote, or get_quote) — refused if the quote was changed since that revision was read, naming both revisions; nothing is sent on a refusal.

ParameterTypeDescription
currency *stringMust match the quote's stored currency
discount_pct *numberMust match the quote's stored discount — cannot change at send time
id *stringQuote ID
revision *numberThe quote's current revision — refused if the quote has moved on to a later one
value *numberNet document total — must match the quote's stored net total
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

convert_quote_to_order

Convert a sent quote into a confirmed order (sent -> order). Reserves stock for every line and refuses if the customer's credit limit would be exceeded or any line lacks sufficient stock. `revision` must match the quote's current revision (from create_quote, update_quote, or get_quote) — refused if the quote was changed since that revision was read, naming both revisions.

ParameterTypeDescription
currency *stringMust match the quote's stored currency
discount_pct *numberMust match the quote's stored discount — cannot change at conversion time
id *stringQuote ID
revision *numberThe quote's current revision — refused if the quote has moved on to a later one
value *numberNet document total — must match the quote's stored net total
requested_deliverystringRequested delivery date (ISO 8601, optional)
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

create_invoice

Issue an invoice for a customer, from an order's lines or from explicit lines. An issued invoice is never changed or deleted — a cancellation or correction is create_credit_note. With order_id and no lines, the invoice's lines are taken from that order (its items, quantities, and the net prices it was ordered at); with explicit lines, each one declares its own description, quantity, unit price, and VAT rate. The connector recomputes the net total from the lines and refuses the call if the declared net_total, currency, or an order's ownership does not match. Refused if the order already carri…

ParameterTypeDescription
currency *stringDocument currency — must match the order's currency, or the customer's if there is no order
customer_id *stringCustomer ID
net_total *numberDeclared net total — must equal sum(qty*unit_price) over the lines
document_datestringThe document's date (ISO "YYYY-MM-DD"), printed on it and used for the due date (optional — defaults to now)
linesarrayExplicit invoice lines (optional — omit to take lines from order_id)
memostringFree-form note (optional)
order_idstringOrder ID to invoice (optional if lines is given)
payment_term_daysnumberDays until due, from issue (optional, default 14)
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

create_credit_note

Issue a credit note against an issued invoice — the only way to cancel or correct one; the invoice itself is never changed or deleted. Accepts the invoice's ID or its number. Pass explicit lines for a partial credit (each declaring its own description, quantity, unit price, and VAT rate); omit lines to credit everything on the invoice not yet credited. The connector recomputes the net total from the lines (or the remaining amount) and refuses the call if the declared credit_total or currency does not match, or if the credit would exceed what is left to credit on the invoice. On success the i…

ParameterTypeDescription
credit_total *numberDeclared net credit total — must equal sum(qty*unit_price) over the lines, or the remaining uncredited net total when lines is omitted
currency *stringMust match the invoice's currency
invoice_id *stringInvoice ID or number
reason *stringWhy this credit note is being issued
document_datestringThe document's date (ISO "YYYY-MM-DD"), printed on it (optional — defaults to now)
linesarrayExplicit credit lines for a partial credit (optional — omit to credit everything not yet credited)
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

load_simulation

Simulation mode only: load a simulation package (name, currency, customers, products) into this connector's simulated ERP. Create only — refused if test data was already loaded, or if any customer, product, quote, order, or change already exists; clear_simulation empties it first. Not available in live mode. How to build a good package: start from real cases the company's people actually handled (an email, or a short written note of a phone call) together with the reply they sent. Ask the people for what a case does not show — stock, price, credit and open balance at the time, and why some…

ParameterTypeDescription
package *objectSimulation package: one company's test world for the email, CRM and ERP simulators — each loads its part and ignores the rest. A simulator can be loaded once; a second load is refused. This connecto…
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

clear_simulation

Simulation mode only: delete all test data from this connector's simulated ERP — customers, products, quotes, orders, and the record of changes and refusals — so a new package can be loaded with load_simulation. Cannot be undone. Not available in live mode.

ParameterTypeDescription
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.