IP and Host Geolocation
ip_lookupResolve an IP address or domain name to its network operator and approximate location: ASN, organization, country, region, city, coordinates, and timezone. Domains are resolved to their first IPv4 address before lookup. Location is IP-level and approximate; it is not the address of the site owner.
Related: dns, whois, ns_reverse.
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": "ip_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | IP address or domain name. Scheme, port, path, and a leading www. are stripped automatically |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Zero or one record | |
| error | No | ||
| total | No | 1 when the address is in the database, 0 when it is not | |
| success | No |