Routes covering a prefix
pwhois_prefix_routesActive routes in the global table for a CIDR prefix (IPv4 or IPv6): origin AS and AS path for the best route and, when asked, every route-server view. Use this when you have a CIDR block; for a single address use pwhois_lookup_ip, for everything an AS announces use pwhois_asn_prefixes. Costs 1 query.
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": {
"prefix": "<prefix>"
},
"name": "pwhois_prefix_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Return all routes rather than only the best. Default false. | |
| prefix | Yes | CIDR prefix, IPv4 or IPv6. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| prefix | Yes | ||
| routes | Yes | ||
| allowance | No | Daily allowance after this call. | |
| origin_as | No |