rir_check_bgp_status
Check if a prefix or ASN is visible in the global BGP routing table using RIPE Stat data, identifying announcements and visibility percentages for routing security assessment.
Instructions
Check whether a prefix or ASN is currently visible in the global BGP routing table.
Uses RIPE Stat (which aggregates data from RIPE RIS route collectors worldwide). BGP is the internet's routing protocol — the "GPS" that tells traffic how to navigate from one network to another.
For a prefix, returns:
Whether it is currently announced in BGP
Which ASN(s) are announcing it (multiple = potential hijack)
Percentage of global BGP peers that can see it (visibility)
For an ASN, returns:
Whether the ASN has any active BGP announcements
A list of all announced prefixes (use rir_get_announced_prefixes for details)
Combine with rir_check_rpki for complete routing security assessment. Results are cached for 5 minutes (BGP tables change frequently).
Args: params (BGPStatusInput): - resource (str): Prefix (e.g. '1.1.1.0/24') or ASN (e.g. 'AS15169') - response_format (str): 'markdown' (default) or 'json'
Returns: str: BGP visibility, announcing ASNs, and prefix list. JSON schema: { "resource": str, "resource_type": str, "is_announced": bool, "announcing_asns": [str], "visibility_percent": float, "announced_prefixes": [{"prefix": str, "peers_seeing": int}] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |