Mine kvitteringer
get_receiptsUse this when the user asks about their grocery receipts. Returns the newest receipts Goma has synced from the user's connected store accounts, with date, chain, total and number of lines. With receiptId it returns that receipt with its lines: text, quantity, price and the matched Goma product.
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_receipts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| receiptId | No | From an earlier get_receipts or search_purchases result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hasMore | Yes | Older receipts exist beyond limit. | |
| receipt | Yes | The receipt asked for with receiptId, with its lines; else null. | |
| receipts | Yes | Newest first; empty when receiptId is given. | |
| hasReceipts | Yes | The user has receipts in Goma. | |
| receiptsInfo | Yes | Set when the user has no receipts: how receipts reach Goma (store accounts connected in the Goma app). |