Find a delivery district
search_districtsRanked delivery-district candidates for an address typed as free text. Each has an id (the district id a checkout routes on), a name, and the governorate it sits in. A free-text district is rejected when the order is booked; the candidate id goes in the checkout address's area.
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": {
"store": "<store>",
"query": "<query>"
},
"name": "search_districts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What the shopper called the place — a district or area name, Arabic or English. | |
| store | Yes | The store, from find_stores or search_all_stores (its `store` field). |