list_discounts
Retrieve discount codes from a Shopify store to review promotions, with search filtering and cursor-based pagination for browsing large discount lists.
Instructions
List discount codes from the Shopify store
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": "list_discounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Cursor for pagination | |
| first | No | Number of discounts to return (1-250, default: 50) | |
| query | No | Search query to filter discounts |