Report whether a code worked
report_outcomeTell the service what happened when the shopper tried a code at checkout: worked or not, and how much it saved. Reports decide which codes other shoppers are shown, so call it every time a code from find_savings or check_code is tried. Pass the offer_id; for a code that did not come from this service, pass url and code instead. No personal data is stored, only the outcome.
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": {
"worked": "<worked>"
},
"name": "report_outcome"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | With code: for a code that has no offer_id yet | |
| code | No | The promo code as written, e.g. "SAVE10" | |
| note | No | What the store said, e.g. "minimum spend $50 not met". No personal details | |
| saved | No | Amount it took off the order | |
| worked | Yes | true if the store accepted the code at checkout | |
| currency | No | ||
| offer_id | No | From find_savings or check_code |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| next | No | Suggested next calls. | |
| error | No | ||
| store | No | ||
| reports | No | ||
| summary | Yes | ||
| offer_id | No |