Skip to main content
Glama

Routes covering a prefix

pwhois_prefix_routes
Read-onlyIdempotent

Active routes in the global table for a CIDR prefix (IPv4 or IPv6): origin AS and AS path for the best route and, when asked, every route-server view. Use this when you have a CIDR block; for a single address use pwhois_lookup_ip, for everything an AS announces use pwhois_asn_prefixes. Costs 1 query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoReturn all routes rather than only the best. Default false.
prefixYesCIDR prefix, IPv4 or IPv6.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
prefixYes
routesYes
allowanceNoDaily allowance after this call.
origin_asNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint. The description adds meaningful context by noting the data scope ('global table', 'active routes'), the best-route-versus-all-routes behavior, and the query cost ('Costs 1 query'). No contradiction exists.

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 tight sentences deliver purpose, scope, output details, alternative tools, and cost with no filler. The core purpose is front-loaded before the routing guidance.

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?

The description is complete for this tool's complexity: it explains what the tool does, when to choose it, what distinguishes it from siblings, and its cost. An output schema exists, so return-value detail is not required here.

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 coverage is 100%, so the schema fully documents both 'prefix' and 'all'. The description references the 'all' behavior ('when asked, every route-server view') but does not substantially add semantics beyond the schema's parameter descriptions. This matches the baseline for full schema coverage.

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?

The description states a specific action and resource: retrieving active routes in the global table for a CIDR prefix, including origin AS and AS path. It also explicitly distinguishes itself from pwhois_lookup_ip and pwhois_asn_prefixes, making sibling differentiation immediate.

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?

The description gives explicit when-to-use guidance: use this tool when you have a CIDR block. It names the alternatives for single addresses and for an AS's full prefix set, so an agent can route correctly without extra reasoning.

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