Resolve an address to a district
resolve_districtResolves a structured address (governorate / city / area) to one bookable delivery district id. Returns { match, candidates }: when the address resolves exactly, match holds the districtId; when it does not, match is null and candidates lists the closest districts. A free-text district is rejected at booking.
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>"
},
"name": "resolve_district"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | The district / neighbourhood. | |
| city | No | City within the governorate. | |
| store | Yes | The store, from find_stores or search_all_stores (its `store` field). | |
| governorate | No | Arabic or English name. |