Skip to main content
Glama

Enrich one address

pwhois_lookup_ip
Read-onlyIdempotent

Who announces this address right now: origin AS, most-specific prefix, AS path, network and organization names, country and approximate location, from the live global routing table plus registry data. For more than one address use pwhois_lookup_ips instead; for a whole CIDR block use pwhois_prefix_routes; for an AS use pwhois_asn_info. Set registry=true to also get the registry organization record with abuse and admin contacts. Costs 1 query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYesIPv4 or IPv6 address, or a hostname (resolved first). A trailing /bits is ignored.
registryNoAlso return the registry organization record (address, contacts). Default false.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYes
cityNo
noteNo
org_idNo
prefixNoMost specific covering prefix in CIDR form.
regionNo
routedYesFalse when no covering route exists in the global table.
as_pathNoAS path from the route-server view to the origin (last element).
countryNo
latitudeNo
net_nameNo
net_typeNo
org_nameNo
registryNo
allowanceNoDaily allowance after this call.
longitudeNo
net_rangeNo
origin_asNo
cache_dateNoWhen the routing-table snapshot was taken.
queried_asNoThe hostname or spelling you passed, when it differed from ip.
as_org_nameNo
country_codeNo
route_originatedNoWhen this route was first seen with this origin.
pwhois_registry_recordNoRegistry organization or contact record; keys are the registry field names in snake_case.

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, so the description does not need to repeat safety traits. It adds valuable behavioral context by stating that data comes from the 'live global routing table plus registry data' and that the operation costs 1 query, which is important for quota management.

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 sentences with no filler: the first sentence states the core function and output, the second routes to the right sibling, and the third explains the optional parameter and cost. The most important scoping info is front-loaded.

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 single-IP enrichment tool, this description is complete: it covers query semantics, optional behavior, cost, output categories, and clear alternatives. The presence of an output schema and annotations means the description does not need to restate return structure or safety hints.

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%, so the schema fully documents both ip and registry parameters. The description adds a small clarifying note about registry=true returning abuse/admin contacts, but this largely overlaps with the schema's 'address, contacts' description; it does not significantly change parameter understanding.

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 starts with a concrete, specific question ('Who announces this address right now') and lists the key resources returned: origin AS, most-specific prefix, AS path, network and organization names, country, and location. It also explicitly distinguishes itself from sibling tools by naming alternatives with their different scopes.

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 routing guidance: use pwhois_lookup_ips for multiple addresses, pwhois_prefix_routes for a CIDR block, and pwhois_asn_info for an AS. It also tells the agent when to set registry=true, leaving no ambiguity about when this tool should be selected over siblings.

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