Search mailing addresses
postalform.search_addressesUse this to search for a mailing address and return Loqate suggestions with IDs. Pass country_code to filter by country; it defaults to US. If a suggestion has type "Container" (building/complex), call this tool again with container= and a refined query to drill down to type "Address". Only type "Address" is valid for order creation.
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": "postalform.search_addresses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Partial address text, e.g. "123 Main St" | |
| target | No | Which address field is being searched (used for UI context). | |
| container | No | Loqate container id for drilling into suggestions, if provided | |
| country_code | No | Two-letter country code to filter suggestions. Defaults to US. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | Yes | ||
| query | Yes | ||
| target | No | ||
| suggestions | Yes |