ip_lookup
Retrieve geolocation data for any IP address, including city, region, country, coordinates, timezone, and EU status. Use 'auto:ip' to locate your own IP address.
Instructions
Look up geolocation data for an IP address: city, region, country, coordinates, timezone, and whether it's in the EU. Pass 'auto:ip' to geolocate the caller's own IP address.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | IPv4 address, IPv6 address, or 'auto:ip' for caller's IP. |
Implementation Reference
- src/index.ts:332-336 (handler)The handler logic for 'ip_lookup' which calls the 'weatherRequest' function with the '/ip.json' endpoint.
case "ip_lookup": { const { q } = args as { q: string }; result = await weatherRequest("/ip.json", { q }); break; } - src/index.ts:225-239 (schema)The tool definition and input schema for 'ip_lookup'.
{ name: "ip_lookup", description: "Look up geolocation data for an IP address: city, region, country, coordinates, timezone, and whether it's in the EU. Pass 'auto:ip' to geolocate the caller's own IP address.", inputSchema: { type: "object", properties: { q: { type: "string", description: "IPv4 address, IPv6 address, or 'auto:ip' for caller's IP.", }, }, required: ["q"], }, },