erp-mcp
v0.10.0ERP 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)
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum results to return (default: 50) |
query | string | Text search across sku and name |
get_item
Get a single item, including stock and list price
| Parameter | Type | Description |
|---|---|---|
id * | string | Item ID |
find_customers
Search customers by name or email
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum results to return (default: 50) |
query | string | Text search across name and email |
get_customer
Get a single customer, including credit limit, open balance, and available credit
| Parameter | Type | Description |
|---|---|---|
id * | string | Customer ID |
list_quotes
List quotes, optionally filtered by status or customer. Each result includes its current revision.
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Filter by customer ID |
limit | number | Maximum results to return (default: 50) |
status | string | Filter 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).
| Parameter | Type | Description |
|---|---|---|
id * | string | Quote ID |
revision | number | Optional — return this past revision's content instead of the current one |
list_orders
List orders, optionally filtered by customer
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Filter by customer ID |
limit | number | Maximum results to return (default: 50) |
get_order
Get a single order with its lines
| Parameter | Type | Description |
|---|---|---|
id * | string | Order ID |
get_invoice
Get a single invoice with its lines. Accepts the invoice ID or its number (e.g. INV-2026-0001).
| Parameter | Type | Description |
|---|---|---|
id * | string | Invoice ID or number |
list_invoices
List invoices, optionally filtered by customer or status
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Filter by customer ID |
limit | number | Maximum results to return (default: 50) |
status | string | Filter by status |
get_credit_note
Get a single credit note with its lines
| Parameter | Type | Description |
|---|---|---|
id * | string | Credit note ID |
list_credit_notes
List credit notes, optionally filtered by invoice or customer
| Parameter | Type | Description |
|---|---|---|
customer_id | string | Filter by customer ID |
invoice_id | string | Filter by invoice ID |
limit | number | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Invoice or credit note ID (or number) |
kind * | string | Which 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.
| Parameter | Type | Description |
|---|---|---|
currency * | string | Document currency — must match the customer's currency |
customer_id * | string | Customer ID |
discount_pct * | number | Document discount against list price, in percent (0-100) |
lines * | array | Quote lines |
value * | number | Net document total — must equal sum(qty*list_price)*(1-discount_pct/100) |
notes | string | Free-form notes (optional) |
ticket_id | string | Authorization reference for this call, set by the governing gateway — agents do not set this. |
valid_until | string | ISO 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.
| Parameter | Type | Description |
|---|---|---|
currency * | string | Document currency — must match the quote's currency |
discount_pct * | number | Document discount against list price, in percent (0-100) |
id * | string | Quote ID |
value * | number | Net document total — must equal sum(qty*list_price)*(1-discount_pct/100) |
lines | array | Replacement quote lines (optional — omit to keep existing lines) |
notes | string | Free-form notes (optional) |
ticket_id | string | Authorization reference for this call, set by the governing gateway — agents do not set this. |
valid_until | string | ISO 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.
| Parameter | Type | Description |
|---|---|---|
currency * | string | Must match the quote's stored currency |
discount_pct * | number | Must match the quote's stored discount — cannot change at send time |
id * | string | Quote ID |
revision * | number | The quote's current revision — refused if the quote has moved on to a later one |
value * | number | Net document total — must match the quote's stored net total |
ticket_id | string | Authorization 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.
| Parameter | Type | Description |
|---|---|---|
currency * | string | Must match the quote's stored currency |
discount_pct * | number | Must match the quote's stored discount — cannot change at conversion time |
id * | string | Quote ID |
revision * | number | The quote's current revision — refused if the quote has moved on to a later one |
value * | number | Net document total — must match the quote's stored net total |
requested_delivery | string | Requested delivery date (ISO 8601, optional) |
ticket_id | string | Authorization 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…
| Parameter | Type | Description |
|---|---|---|
currency * | string | Document currency — must match the order's currency, or the customer's if there is no order |
customer_id * | string | Customer ID |
net_total * | number | Declared net total — must equal sum(qty*unit_price) over the lines |
document_date | string | The document's date (ISO "YYYY-MM-DD"), printed on it and used for the due date (optional — defaults to now) |
lines | array | Explicit invoice lines (optional — omit to take lines from order_id) |
memo | string | Free-form note (optional) |
order_id | string | Order ID to invoice (optional if lines is given) |
payment_term_days | number | Days until due, from issue (optional, default 14) |
ticket_id | string | Authorization 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…
| Parameter | Type | Description |
|---|---|---|
credit_total * | number | Declared net credit total — must equal sum(qty*unit_price) over the lines, or the remaining uncredited net total when lines is omitted |
currency * | string | Must match the invoice's currency |
invoice_id * | string | Invoice ID or number |
reason * | string | Why this credit note is being issued |
document_date | string | The document's date (ISO "YYYY-MM-DD"), printed on it (optional — defaults to now) |
lines | array | Explicit credit lines for a partial credit (optional — omit to credit everything not yet credited) |
ticket_id | string | Authorization 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…
| Parameter | Type | Description |
|---|---|---|
package * | object | Simulation 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_id | string | Authorization 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.
| Parameter | Type | Description |
|---|---|---|
ticket_id | string | Authorization reference for this call, set by the governing gateway — agents do not set this. |