Skip to main content
Glama

Verify an AS path with ASPA

check_aspa_path
Read-onlyIdempotent

Check an AS_PATH against the published ASPA objects (RPKI attestations of which providers a network authorises), following the verification procedure of draft-ietf-sidrops-aspa-verification. The result is valid, invalid or unknown, with the reason and the first hop that broke the path.

Use it to find out whether a path shows a route leak or an unauthorised provider. "Unknown" only means some network on the path published no ASPA; it is not a fault.

Behavior: offline, answered from the local RPKI snapshot. The procedure is an Internet-Draft, not an RFC, and the neighbor-AS and AS_SET prerequisite checks of a real router are left out. Only the path is read; it is neither stored nor logged.

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": {
      "path": "<path>"
    },
    "name": "check_aspa_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesthe AS_PATH as seen by the receiver, neighbor first and origin last, separated by spaces or commas, e.g. 3356 1299 14041 194 (every hop is an AS number, with or without the AS prefix). Prepending is fine; an AS_SET {..} is refused
directionNoupstream (default): the route came from a customer or peer; downstream: it came from a provider

Output Schema

NameRequiredDescriptionDefault
pathYesthe path after removing repeated ASes, neighbor first
reasonNo
outcomeYesvalid, invalid or unknown (no attestation for some hop). Informational; follows an Internet-Draft, not an RFC
summaryYesthe human-readable result, the same text as the text content
directionYes
aspa_countNonumber of ASes with an ASPA in the loaded set
data_warningsNostale_dataset when the RPKI snapshot is past its freshness window

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / data_warnings
      Added value: +{
      +  "description": "stale_dataset when the RPKI snapshot is past its freshness 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.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/closed-world annotations it discloses operationally decisive facts: the check is offline against a local RPKI snapshot, the procedure is an Internet-Draft rather than an RFC, and the neighbor-AS and AS_SET prerequisite checks a real router performs are deliberately omitted. It also states the path is only read, never stored or logged, which tells the agent the result may differ from on-router behavior.

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?

Three short blocks, front-loaded with the action and procedure, then usage, then behavioral caveats. Every sentence carries information an agent would otherwise have to guess, including the misreading warning about "Unknown".

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?

For a two-parameter, read-only verifier with an output schema, the description supplies everything needed: the governing procedure, result vocabulary and what the reason/first-broken-hop fields mean, plus the draft and offline caveats. Return-value details are correctly left to the output schema.

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 both parameters are fully documented there, including the hop order, accepted separators, AS-prefix tolerance, prepending, and AS_SET refusal. The description adds no further meaning about `path` or `direction`, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource: checking an AS_PATH against published ASPA objects per draft-ietf-sidrops-aspa-verification, and names the outcome set (valid/invalid/unknown). It is unmistakably an ASPA-path verifier rather than a generic route check, though it never names the sibling it supersedes (e.g. check_route) to draw the boundary explicitly.

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?

"Use it to find out whether a path shows a route leak or an unauthorised provider" gives a concrete decision context, and it pre-empts a likely misuse by explaining that "Unknown" only means some network published no ASPA, not a fault. It stops short of stating when to prefer check_route or other siblings instead, so no explicit exclusions.

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