Skip to main content
Glama

Check a prefix against an origin AS

check_route
Read-onlyIdempotent

Check one (prefix, origin AS) pair against the public records: RPKI route origin validation (RFC 6811), the routing registries (IRR route objects) and how many RIPE RIS peers see that origin for the prefix.

Use it to answer whether an AS is authorised to originate a prefix, why a route may be dropped by networks that filter on RPKI, or whether a registry object matches an announcement. For everything about one prefix or AS use lookup_target instead.

Behavior: offline, answered from local snapshots; the result lists only the datasets this instance has loaded. RPKI "invalid" can be a stale ROA and an IRR object is a claim, so neither is proof of a hijack or of authorisation. A prefix RIS does not see may still be announced to peers it does not have.

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>",
      "origin": "<origin>"
    },
    "name": "check_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
originYesthe origin AS number to check the prefix against, written AS13335; a bare number is not an ASN
prefixYesone announced or planned prefix in CIDR form, IPv4 or IPv6, e.g. 1.1.1.0/24 or 2606:4700::/32; host bits are ignored. A bare address or a range is not accepted

Output Schema

NameRequiredDescriptionDefault
irrNorouting registry check: match, less_specific, mismatch or none; absent without an IRR dataset. A registry object is a claim, not an authorisation
rpkiNoroute origin validation of (prefix, origin): valid, invalid or not_found; absent without a VRP set. Informational
originYes
prefixYesthe prefix with host bits cleared
seen_byNonumber of RIPE RIS peers that see this origin for the prefix
summaryYesthe human-readable result, the same text as the text content
announcedNowhether the routing table lists this exact prefix with this origin; absent without a routing table
details_urlNothe result page of the prefix
data_warningsNolimited_coverage when RPKI, IRR or the routing table is not loaded (the matching field is then absent, which is not a negative answer), stale_dataset when one is past its window

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / data_warnings
      Added value: +{
      +  "description": "limited_coverage when RPKI, IRR or the routing table is not loaded (the matching field is then absent, which is not a negative answer), stale_dataset when one is past its window",
      +  "items": {
      +    "properties": {
      +      "code": {
      +        "description": "partial_data (a source failed in this call), stale_dataset (a local dataset is past its freshness window) or limited_coverage (this instance has not loaded data the section needs)",
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "source": {
      +        "description": "the provider or dataset id the note is about",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and closed-world, but the description adds genuinely new behavioral context: results come from local snapshots, only datasets loaded on this instance are listed, and the response is a set of claims rather than proof — RPKI 'invalid' may be a stale ROA and an IRR object is only a claim. The RIS blind-spot warning further constrains how results should be interpreted. Slightly redundant with openWorldHint=false on the 'offline' point, which keeps it from a full 5.

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

Conciseness5/5

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

Front-loads the core action and data sources, then usage guidance, then behavioral caveats — a sensible ordering with no filler. Every sentence, including the interpretation warnings, carries information an agent needs to act on the output.

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?

An output schema exists, so return values need not be described, and the description instead covers what an agent genuinely needs: snapshot-based sourcing, dataset availability, interpretive caveats about RPKI/IRR evidence, and the sibling alternative. Nothing material for correct invocation and interpretation is missing.

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

Parameters3/5

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

Schema description coverage is 100% and the schema already spells out the AS13335 form, the CIDR form with host bits ignored, and the rejection of bare addresses, ranges, and bare numbers. The description adds no additional meaning beyond 'one (prefix, origin AS) pair', so the baseline 3 for fully covered schemas applies.

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?

States a specific verb and resource — checking one (prefix, origin AS) pair — and enumerates the three data sources consulted (RPKI RFC 6811, IRR route objects, RIPE RIS visibility). It also names the sibling it is not ('For everything about one prefix or AS use lookup_target instead'), so an agent can route between them without opening a schema.

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

Usage Guidelines5/5

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

Gives three concrete questions the tool answers (is an AS authorised to originate a prefix, why a route may be dropped by RPKI-filtering networks, does a registry object match an announcement) and an explicit exclusion pointing at lookup_target for single-target lookups. Nothing is left for the agent to infer about when to pick this tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources