validate_shipping_address
Validates and normalizes shipping addresses for fulfillment orders by checking required fields and country-specific postal codes, returning warnings and a normalized address for order placement.
Instructions
Validate and normalize a shipping address for fulfillment orders.
Args:
street: Street address (e.g. "123 Main St").
city: City name.
country: ISO 3166-1 alpha-2 country code (e.g. "US", "GB", "DE").
state: State/province (recommended for US addresses).
postal_code: ZIP/postal code (validated per country format).
Checks required fields, validates postal codes per country (US ZIP,
Canadian postal, UK postcode), and returns warnings for missing optional
fields. Use the ``normalized`` address in the response when placing
fulfillment orders.
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": {
"street": "<street>",
"city": "<city>",
"country": "<country>"
},
"name": "validate_shipping_address"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | City name. | |
| state | No | State/province (recommended for US addresses). Default: "". | |
| street | Yes | Street address (e.g. "123 Main St"). | |
| country | Yes | ISO 3166-1 alpha-2 country code (e.g. "US", "GB", "DE"). | |
| postal_code | No | ZIP/postal code (validated per country format). Default: "". |