submit_receipt
Process receipt images/PDFs, including 'log this', 'save this receipt', 'expense this', 'add this to my expenses' or a shared receipt/invoice photo. Starts on call (no server preview); AI extracts vendor, amount, date, tax and category (usually 1–3 minutes; longer for PDFs/batches); poll get_last_receipt_result with the returned submissionId. Mixed images/PDFs work. Required for PDFs; use this flow for large files/batches: call filesToUpload for EVERY file; PUT each ONE AT A TIME to signed URLs, report file/count progress, then call ONCE with all uploadRefs as one batch, never once per file. photo accepts one ChatGPT image/PDF; photoBase64 only for one small image without file references. note maps to Notes L, tag to Tag K; batch defaults apply to all files and uploadRefs items may override.
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": "submit_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Batch-level project or client tag for every row; a file may override it. Stored in the Tag column (K). | |
| note | No | Batch-level note for every file; a file may override it. Stored in the Notes column (L). | |
| photo | No | Single attached receipt image or PDF supplied by ChatGPT. For multiple files or large files, use filesToUpload and uploadRefs instead. | |
| filename | No | Optional filename (e.g., 'lunch_receipt.jpg') | |
| mimeType | No | MIME type of the file (default: image/jpeg) | |
| uploadRef | No | Single-file shorthand for uploadRefs. Use uploadRefs when there is more than one file. | |
| uploadRefs | No | Every uploadRef from the filesToUpload step, as ONE batch. If any file fails validation nothing is processed. | |
| photoBase64 | No | Legacy fallback for MCP clients that send one small image as complete base64 data. ChatGPT should use photo or uploadRefs instead. | |
| filesToUpload | No | Every file the user provided, in one call. Returns signedUrl + uploadRef per file; upload each, then call with uploadRefs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| files | No | ||
| status | No | ||
| message | No | ||
| success | Yes | ||
| fileCount | No | ||
| statusCode | No | ||
| submissionId | No | ||
| spreadsheetUrl | No | ||
| reviewExpensesUrl | No |