Summarize a batch of IPs (country / continent / ASN / network)
ip_summarySummarize a large batch of IPs into distributions by country, continent, ASN/operator and network prefix, each bucket with a sample of addresses. Use instead of ip_lookup once the input is in the hundreds or thousands — ip_lookup returns every row, which no context window holds. Up to 5000 addresses or 100 hostnames. Counts are per occurrence; nothing is dropped silently (failed → errors, no database record → no_data, unlisted buckets → tail), the same input set always returns the same numbers, and the result is facts only — no datacenter/residential classification, no verdict. DB-IP Lite (CC BY 4.0).
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": {
"ips": "<ips>"
},
"name": "ip_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ips | Yes | ||
| top | No | Buckets per dimension. | |
| sample | No | Sample addresses per bucket. | |
| prefix4 | No | IPv4 grouping prefix. | |
| prefix6 | No | IPv6 grouping prefix; /48 = one end-site. |