Clean a messy address from any country into structured fields, with India PIN, district and state checks
clean_addressAI turns free-text addresses (any language or format, e.g. "near water tank 2nd main rd AN chennai 40") into house, street, landmark, locality, city, district, state, postal code and country. Then checks the postal code format for the country, and for India that the PIN exists and matches the district and state, with warnings and suggested fixes. Never invents a postal code. Price 0.005 USDC per call; first 3 calls per day free.
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": {
"address": "<address>"
},
"name": "clean_address"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Free-text address (max 500 chars) | |
| country | No | Optional 2-letter country hint, e.g. IN | |
| payment | No | Optional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts. |