get_ip_geolocation
Retrieves geographic location details like country, city, and ISP for any IP address using a free API. Pass an IP or leave blank for your own.
Instructions
查询 IP 地址的地理位置信息(国家、城市、ISP 等)。 数据来源: ip-api.com,完全免费,无需 API key。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_ip_geolocation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | IP 地址,不传则查询本机公网 IP |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |