Skip to main content
Glama
duksh

PeerGlass

by duksh

rir_as_relationships

Read-onlyIdempotent

Fetch AS relationship data from CAIDA AS-Rank API to classify neighboring ASNs as providers, customers, or peers using BGP-path-based inference for accurate network analysis.

Instructions

Fetch AS relationship data from CAIDA AS-Rank API.

Classifies neighbouring ASNs as: • Providers (upstream transit) • Customers (downstream networks) • Peers (settlement-free peering)

Unlike RIPE Stat asn-neighbours (which only gives left/right/uncertain), CAIDA AS-Rank uses a BGP-path-based inference algorithm for higher accuracy.

Args: params (ASRelationshipInput): - asn (str): ASN e.g. 'AS13335' or '13335' - response_format (str): 'markdown' (default) or 'json'

Returns: str: Classified providers, customers, and peers with relationship type.

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?

Annotations cover safety profile (readOnly, idempotent, non-destructive). Description adds value by disclosing the inference methodology (BGP-path-based algorithm), classification taxonomy (upstream/downstream/settlement-free), and external data source (CAIDA AS-Rank API).

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?

Docstring format (Args/Returns) is slightly verbose but efficiently structured. Classification bullets front-load key value propositions. Every section earns its place, particularly parameter documentation which fills schema gaps.

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 data-fetch tool: covers source API, inference methodology, classification categories, parameter details, and return format. Well-supported by annotations covering safety; no significant gaps despite zero schema description coverage.

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

Parameters5/5

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

Schema has 0% description coverage but description fully compensates via Args section: documents 'asn' with format examples ('AS13335' or '13335'), and 'response_format' with allowed values and default. Explains semantics beyond raw schema types.

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?

Specific verb 'Fetch' + resource 'AS relationship data' + explicit scope (CAIDA AS-Rank API). Explicitly distinguishes from sibling/alternative RIPE Stat asn-neighbours tool by contrasting accuracy levels and classification methods.

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 clear comparative context: explains that unlike RIPE Stat (which gives left/right/uncertain), this uses BGP-path-based inference for higher accuracy, implicitly guiding selection when accurate classification is needed. Lacks explicit 'when not to use' constraints.

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