Classify AP exceptions
classify_ap_exceptionsClassify vendor invoices into AP exception types: duplicate, missing/mismatched PO, missing receipt, wrong legal entity, tax review, ownerless approval. Outputs confidence and stable reason codes.
Instructions
Classify vendor invoices into the AP exception taxonomy: duplicate invoice (reuses audit normalize/duplicate rules), missing/mismatched PO, missing receipt, wrong legal entity, tax review, and ownerless approval. Each exception includes confidence and a stable reason code. Invoices without match-context fields are only eligible for duplicate and inconsistent-tax reuse.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoices": "<invoices>"
},
"name": "classify_ap_exceptions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Optional line items (enables inconsistent-tax → tax_review). | |
| today | No | ||
| invoices | Yes | Invoice rows plus optional PO/receipt/entity/tax/approval fields. | |
| include_audit_tax | No | ||
| include_duplicates | No | ||
| po_amount_tolerance_pct | No |