Validate IP Address
validate_ipValidate a string as IPv4 or IPv6 address. Returns a message indicating validity for input validation before geolocation lookup.
Instructions
Check if a string is a valid IPv4 or IPv6 address. Returns a human-readable message stating whether the input is valid. Useful for input validation before making a geo lookup. Example: ip="8.8.8.8" → valid, ip="not-an-ip" → invalid. Runs locally — no API call, no quota usage.
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": {
"ip": "<ip>"
},
"name": "validate_ip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | the IPv4 or IPv6 address to look up |