Search public offers
search_codesSearch brand aliases, categories and benefits. Generic promo/code words are ignored. Exact brand matches come first. Returns only catalog records; unknown queries return an empty array. Product and regional applicability remain subject to each caveat.
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": {
"query": "<query>"
},
"name": "search_codes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | Search text, e.g. OKX EU stock perps discount. | |
| offset | No | ||
| region | No | Optional region context. Does not establish eligibility. | |
| product | No | Optional product context. Does not establish eligibility. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| total | Yes | ||
| notice | Yes | ||
| offset | Yes | ||
| results | Yes | ||
| has_more | Yes | ||
| disclosure | Yes |