get_last_receipt_result
Read the authoritative outcome of a receipt batch: a submit_receipt batch by its exact ID (submissionId), or the latest upload (including in-app) via withinSeconds. Poll at the returned interval/time allowance (small batch at least 5 minutes; larger longer). Pending is normal: never blindly resubmit. found:false = pending/no terminal verdict; found:true = terminal. Returns added/duplicate/skipped/held_for_review/errored per-file outcomes, exact counts and up to 10 summaries. Held files (missing details or a possible duplicate) were not added; relay only their message's next step (use the returned Review files link), do not invent a missing card or direct held uploads to Gmail Action Needed. Show spreadsheetUrl/reviewExpensesUrl for rows actually added, not for held files. Unknown outcomes stay unknown. Gmail scans use get_scan_status. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_last_receipt_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| submissionId | No | Exact submissionId returned by submit_receipt. Strongly preferred because it binds the result to this upload instead of an earlier receipt. | |
| withinSeconds | No | Lookback seconds for the latest upload when there is no submissionId. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| found | Yes | ||
| state | No | Present on pending polls for a specific submission. | |
| counts | No | ||
| message | Yes | ||
| success | Yes | ||
| verdict | No | Terminal only. held_for_review: every file was held, none added; mixed also covers batches with held files. | |
| receipts | No | Processed receipt summaries. Held files are not listed here; see data.outcomes. | |
| timestamp | No | ||
| submissionId | No | ||
| spreadsheetUrl | No | ||
| reviewExpensesUrl | No |