BGP / ASN lookup
asnLook up BGP routing prefixes, RPKI ROA validity, upstreams/peers, hijack/leak alerts, and PeeringDB IXPs for an ASN, IP, prefix, or domain. target accepts "AS13335" or bare "13335" (1-4294967295), IPv4/IPv6, CIDR (uses base IP), or hostname. Use for BGP/RPKI and peering context, not RIR abuse contacts (whois_ip), location (geoip), or batch IPs (bulk_ip). Uses Team Cymru DNS with RIPEstat failover; partial outages set limited while invalid targets return isError=true. Requires middle.network auth; uses 4 daily quota units.
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": {
"target": "<target>"
},
"name": "asn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | An AS number (AS13335), an IP, a prefix (1.1.1.0/24) or a domain. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ISO-8601 UTC timestamp when the result was generated. | |
| ms | No | Elapsed execution time in milliseconds. | |
| data | Yes | Tool-specific structured payload (records, timings, parsed fields, or scores). | |
| tool | Yes | Catalog tool identifier. | |
| share | No | Optional shareable report link metadata. | |
| status | Yes | Overall diagnostic verdict (worst finding wins; no findings = pass). | |
| target | Yes | Normalised domain, IP, or input target. | |
| limited | No | Optional list of upstream data sources that were rate-limited or unavailable. | |
| summary | Yes | Plain-English and technical one-line summaries. | |
| findings | Yes | Ordered diagnostic findings with severity and actionable fixes. |