Skip to main content
Glama
duksh

PeerGlass

by duksh

rir_check_rpki

Read-onlyIdempotent

Validate IP prefix and ASN pairs against RPKI to detect unauthorized route announcements and potential hijacks using Cloudflare's validator.

Instructions

Validate a prefix + ASN pair against the global RPKI using Cloudflare's validator.

RPKI (Resource Public Key Infrastructure) is the internet's route security framework. RIRs issue Route Origin Authorizations (ROAs) — digital certificates that cryptographically prove an ASN is authorized to announce a prefix.

Validity states: ✅ VALID — A matching ROA exists. Route is cryptographically authorized. 🚨 INVALID — A ROA exists but this ASN/prefix violates it. Possible hijack. ⚠️ NOT-FOUND — No ROA exists. Route is unverified (common, not inherently bad). ❓ UNKNOWN — Could not determine validity.

Combine with rir_check_bgp_status for full routing security assessment.

Results are cached for 15 minutes (ROAs can change, but not frequently).

Args: params (RPKICheckInput): - prefix (str): CIDR prefix e.g. '1.1.1.0/24' or '2400:cb00::/32' - asn (str): Originating ASN e.g. 'AS13335' or '13335'

Returns: str: RPKI validity state, description, and list of covering ROAs. JSON schema: { "prefix": str, "asn": str, "validity": "valid"|"invalid"|"not-found"|"unknown", "covering_roas": [{"asn": int, "prefix": str, "maxLength": int}], "description": 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?

While annotations declare read-only/idempotent hints, the description adds critical context: 15-minute cache duration with rationale ('ROAs can change, but not frequently'), external dependency (Cloudflare's validator), and detailed semantic meaning of each validity state (e.g., 'Possible hijack' for INVALID). No contradictions with annotations.

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: summary, RPKI background, validity states with emoji indicators, usage note, caching note, Args, and Returns. Slightly verbose due to embedded RPKI primer and JSON return schema, but justified given the specialized domain and lack of formal output schema in structured fields.

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?

Comprehensive for a validation tool: documents input semantics, provides full JSON output schema in description (including covering_roas structure), explains cryptographic meaning of results, and notes caching behavior. Given the complexity of RPKI validation and rich output structure, the description provides sufficient context for correct invocation and result interpretation.

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?

Context signals indicate 0% schema description coverage (the top-level 'params' object lacks description). The description compensates effectively with an 'Args' section documenting both nested fields (prefix, asn) with format examples (CIDR notation, ASN formats). This compensates for the schema coverage gap and clarifies the expected string formats.

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 action ('Validate a prefix + ASN pair against the global RPKI') and identifies the external validator (Cloudflare). Explicitly distinguishes from sibling tool 'rir_check_bgp_status' by recommending combination for 'full routing security assessment', clearly delineating this tool's specific scope.

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 explicit pairing guidance ('Combine with rir_check_bgp_status') and explains the four validity states (VALID, INVALID, NOT-FOUND, UNKNOWN) with contextual meaning to guide interpretation. Lacks explicit 'when NOT to use' exclusions, but the validity state descriptions effectively guide appropriate usage contexts.

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