Email the user price-adjustment alerts for a Costco receipt (they confirm by email)
track_receiptSign the user up for 30 days of email alerts on one Costco receipt: the site emails them when something on it goes on sale, the same as forwarding the receipt to the site. Use it ONLY when the user has asked for ongoing alerts and has given you their email address themselves; never guess or look up an address.
The site emails that address a link to confirm. Nothing is saved under the address until its owner opens that email and presses Confirm; the link lasts 7 days, and receipts not confirmed by then are deleted. Tell the user to open the email from couponpriceadjustment.com and confirm. One confirmation covers every receipt waiting for the address, so several receipts can be sent in a row (at most 10 waiting; at most 3 confirmation emails per address a day).
Read the receipt as for check_receipt (warehouse, date, items with price per unit, quantity and instant savings), and the purchase must be in the last 30 days. Optionally give each item's name as printed on the receipt (plain text, at most 60 characters, shown only to the confirmed owner) and the register transaction number ("Trn: 391"), which lets the site recognise a receipt already on file.
Unlike the other tools, this stores what it is sent: the email address and the receipt's warehouse, date, items, prices and quantities, as forwarding a receipt does. Never send the member number, payment details or the receipt image. The user can delete everything with the link in any email from the site. It does not check the receipt: call check_receipt for today's answer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"email": "<email>",
"warehouse": "<warehouse>",
"date": "<date>",
"items": "<items>"
},
"name": "track_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The purchase date, YYYY-MM-DD, within the last 30 days. | |
| Yes | The email address the user gave you for the alerts. Never guess one. | ||
| items | Yes | The receipt's item lines, at most 100. | |
| warehouse | Yes | The warehouse number printed on the receipt, e.g. 111. | |
| transaction | No | The register transaction number printed as "Trn: 391". Optional; lets the site recognise a receipt already on file. |