Query Ip Location
query_ip_location查询 IPv4 地址的归属地和运营商信息。ip为空时尝试取调用方IP。返回归属地(国家/省份/城市)、经纬度、时区、运营商、AS编号。主源ip-api.com,备源ipwho.is。
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": "query_ip_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | 要查询的 IPv4 地址,如 "8.8.8.8";留空时尝试取调用方 IP |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||