Paid Accounts Payable API via x402. Unpaid tool calls return 402.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Flag amount mismatches, negative figures, date-order problems, and repeated lines that are present on the invoice. Unusual amounts are not guessed from a normal range. Price $0.05 USDC. POST /api/v1/accounts-payable/invoice-anomaly-detect. An unpaid call returns the x402 payment terms and does not run.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http accounts-payable https://www.brainiac.software/mcp/accounts-payable
Flag amount mismatches, negative figures, date-order problems, and repeated lines that are present on the invoice. Unusual amounts are not guessed from a normal range. Price $0.05 USDC. POST /api/v1/accounts-payable/invoice-anomaly-detect. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| file | object | |
| invoice | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string"
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1
}
}
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
}
}
}Extract supplier, invoice number, dates, currency, purchase-order number, terms, and amounts from a supplied invoice or a text-based PDF. Missing fields stay unavailable. No tax rule or payment term is invented. Price $0.06 USDC. POST /api/v1/accounts-payable/invoice-data-extract. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| file | object | |
| invoice | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string"
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1
}
}
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
}
}
}Compare one invoice with other invoices supplied in the same request using the supplier and invoice number, and a content fingerprint. This does not search an accounts payable ledger. Price $0.05 USDC. POST /api/v1/accounts-payable/invoice-duplicate-detect. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| file | object | |
| invoice | object | |
| candidates | array |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string"
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1
}
}
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
},
"maxItems": 50
}
}
}Extract invoice line descriptions, quantities, unit prices, and amounts from supplied lines or selectable document text. Lines that are not present are not created. Price $0.06 USDC. POST /api/v1/accounts-payable/invoice-line-item-extract. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| file | object | |
| invoice | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string"
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1
}
}
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
}
}
}Check a printed or supplied tax amount against a printed or supplied rate and subtotal. No statutory tax rate is applied. Price $0.04 USDC. POST /api/v1/accounts-payable/invoice-tax-validate. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| file | object | |
| invoice | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string"
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1
}
}
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
}
}
}Recompute the total from line amounts, subtotal, tax, discount, and shipping figures that are actually present. A missing figure is not treated as zero. Price $0.04 USDC. POST /api/v1/accounts-payable/invoice-total-validate. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| file | object | |
| invoice | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string"
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1
}
}
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
}
}
}Return a stated due date, or calculate one from an invoice date plus terms that were actually stated. Net 30 is not assumed, and no payment is scheduled. Price $0.03 USDC. POST /api/v1/accounts-payable/payment-due-date-calculate. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| file | object | |
| invoice | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string"
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1
}
}
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
}
}
}Read payment terms only when they are supplied or printed, including Net N, due on receipt, and a stated discount such as 2/10 Net 30. Price $0.03 USDC. POST /api/v1/accounts-payable/payment-terms-extract. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| file | object | |
| invoice | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string"
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1
}
}
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
}
}
}Match the invoice to a purchase order supplied in the request. Purchase orders are not looked up or created. Lines match on SKU when both sides have one, otherwise on the same description. Price $0.06 USDC. POST /api/v1/accounts-payable/purchase-order-match. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| file | object | |
| invoice | object | |
| purchaseOrder | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string"
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1
}
}
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
},
"purchaseOrder": {
"type": "object",
"required": [
"poNumber"
],
"properties": {
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
}
}
}
}
}Combine the invoice checks into one review. No payment is initiated, and a clear review is not an approval to pay. Price $0.12 USDC. POST /api/v1/accounts-payable/review. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| file | object | |
| invoice | object | |
| candidates | array | |
| purchaseOrder | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1
},
"mediaType": {
"enum": [
"application/pdf",
"text/plain",
"text/csv"
],
"type": "string"
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1
}
}
},
"invoice": {
"type": "object",
"properties": {
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"dueDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"taxRate": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"shipping": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"subtotal": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"invoiceDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"paymentTerms": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"invoiceNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
}
},
"maxItems": 50
},
"purchaseOrder": {
"type": "object",
"required": [
"poNumber"
],
"properties": {
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"sku": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"tax": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"amount": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"quantity": {
"type": "number",
"maximum": 1000000000,
"minimum": -1000000000
},
"unitPrice": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"description": {
"type": "string",
"maxLength": 300,
"minLength": 1
}
}
},
"maxItems": 200
},
"total": {
"type": "number",
"maximum": 1000000000000,
"minimum": -1000000000000
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"poNumber": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"supplierName": {
"type": "string",
"maxLength": 200,
"minLength": 1
}
}
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 19, 2026.
No readOnlyHint / destructiveHint annotations, so clients can't tell a read from a write without asking.
Fix: Add annotations to each tool, e.g. { readOnlyHint: true } for tools that only read.