All tools

Finance · parse_expense_receipt

Parse expense receipt

Amount, category and VAT of an expense receipt.

Price
plan AI usage
Requirements
No connector
runs on platform keys
Human approval
No
read or internal write

Input

FieldTypeDescription
receiptsarrayBatch: the FULL list of receipts to parse in one call (preferred whenever there is more than one). When provided, the top-level single fields are ignored.
receiptTextstringReceipt text or OCR output
employeeNamestringEmployee who submitted the expense (optional)
expenseDatestringExpense date override (ISO 8601, optional)
persistbooleanSave to the Ezyagents ledger (finance_transactions, source expense_receipt). Default: true when an amount was found. Idempotent on (date, merchant, amount).
merchantstringMerchant override when the text is ambiguous
amountnumberTotal amount override (positive number) when the text is ambiguous
categorystringCategory override (repas, transport, hébergement, fournitures, formation, véhicule, santé, divers)

Call this tool

Through the HTTP API, or from the MCP server with the run meta-tool.

curl https://api.ezyagents.fr/gateway/v1/run \
  -H "Authorization: Bearer ezk_…" -H "Content-Type: application/json" \
  -d '{"tool":"parse_expense_receipt","input":{"receipts":[],"receiptText":"…","employeeName":"…","expenseDate":"…"}}'
$run({ "tool": "parse_expense_receipt", "input": {"receipts":[],"receiptText":"…","employeeName":"…","expenseDate":"…"} })