Skip to main content
Glama
duksh

PeerGlass

by duksh

rir_get_announced_prefixes

Read-onlyIdempotent

Retrieve all IP prefixes an ASN announces in BGP to analyze routing footprint, detect potential hijacks, or conduct network due diligence.

Instructions

Retrieve all IP prefixes currently being announced by an ASN in BGP.

This shows the ASN's complete routing footprint — every IP range it is actively advertising to the global internet via BGP. Uses RIPE Stat's announced-prefixes endpoint.

Useful for:

  • Understanding an organization's complete IP footprint

  • Detecting unexpected prefix announcements (possible hijacks)

  • M&A due diligence on network assets

  • Security research and threat intelligence

min_peers_seeing filters out unstable/flapping routes that only a small number of BGP peers can see. Higher = more stable routes only.

Results are cached for 5 minutes.

Args: params (AnnouncedPrefixesInput): - asn (str): ASN to query (e.g. 'AS13335' or '15169') - min_peers_seeing (int): Minimum peer count filter (default: 5)

Returns: str: Complete list of announced prefixes with peer visibility and first/last seen timestamps. JSON schema: { "resource": str, "is_announced": bool, "announced_prefixes": [ {"prefix": str, "peers_seeing": int, "first_seen": str, "last_seen": str} ] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds valuable behavioral context beyond annotations: cites RIPE Stat as data source, discloses 5-minute cache, explains min_peers_seeing filters 'unstable/flapping routes' (semantic meaning beyond schema), and documents the complete return structure including peer visibility and timestamps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with clear visual hierarchy: one-line summary → scope elaboration → bulleted use cases → Args/Returns documentation. Front-loaded with the core action. Slightly verbose but every section earns its place by providing distinct value (use cases vs technical specs).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity and existing safety annotations (readOnly, non-destructive), the description is complete: covers data source, freshness/caching, input semantics, and detailed output schema with JSON structure. No gaps remain for agent invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

While input schema describes the two parameters (asn, min_peers_seeing), the description adds critical semantic context: explains min_peers_seeing controls route stability ('Higher = more stable routes only') and provides ASN format examples ('AS13335' or '15169'). Also documents the return structure not present in input schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with specific verb 'Retrieve' + resource 'IP prefixes' + scope 'currently being announced by an ASN in BGP'. Clearly distinguishes from siblings like rir_prefix_history (historical) and rir_check_bgp_status (status check) by emphasizing 'complete routing footprint' and 'currently'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides four concrete use cases (IP footprint, hijack detection, M&A diligence, threat intel) and explains the min_peers_seeing filter purpose. Lacks explicit 'when not to use' guidance or named alternatives, though 'currently' implies distinction from historical tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/duksh/peerglass'

If you have feedback or need assistance with the MCP directory API, please join our Discord server