List coupons for a deal
list_deal_couponsActive coupon codes of the store selling a deal, to check whether one applies to it. Each coupon title states its rule (discount, eligible products or brands, minimum purchase) and valid_until is the end date the store reports: compare them with the deal's title and price before suggesting a code. Content in Brazilian Portuguese.
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": {
"id": "<id>"
},
"name": "list_deal_coupons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Deal id, the UUID in https://pechincha.ai/p/<id>/<slug> |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deal | Yes | null when the deal does not exist | |
| store | Yes | ||
| total | Yes | ||
| coupons | Yes |