invoice_preflight
Paid invoice check ($0.065 USDC on Base): UBL XML or complete PDF/image invoices up to 3 pages. Compares expected purchase fields and line items; returns evidence, amount checks and match/discrepancy/needs_review. No payment or bookkeeping action is taken.
Agent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expected | No | ||
| mime_type | No | ||
| document_url | No | ||
| document_xml | No | ||
| document_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| next | No | ||
| error | No | ||
| checks | Yes | ||
| result | No | ||
| status | No | ||
| invoice | Yes | ||
| payment | No | ||
| agent_ux | No | ||
| decision | Yes | ||
| evidence | Yes | ||
| warnings | Yes | ||
| source_sha256 | Yes | ||
| pages_processed | No |