Skip to main content
Glama

ASN WHOIS lookup

asnWhoisLookup
Read-onlyIdempotent

Get the registry WHOIS record for an autonomous system (ASN): the network operator behind a set of IP routes. Use this when you have an AS number (for example from ipWhoisLookup or ipGeolocation output) and need the operator's name, country, contacts or the IP prefixes it announces. If you only have an IP address, call ipWhoisLookup first to get its ASN. Returns the organisation name and description, country of registration, announced IPv4 and IPv6 prefixes, peering information, admin and technical contacts, and AS sets and blocks. Behavior: read-only. Makes one request to the WhoisFreaks API for your WhoisFreaks account (identified by the WHOISFREAKS_API_KEY environment variable or, on the hosted server, by the API key sent with the request or the account connected with OAuth) and uses that account's API credits; nothing is created or changed. If the call fails, the result is a short message instead of data, for example: the API key was refused (invalid, or plan or credits used up) with what to do next, domain extension not supported (HTTP 403), no data found (HTTP 404), or rate limit reached (HTTP 429).

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": {
      "asn": "<asn>"
    },
    "name": "asnWhoisLookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
asnYesAutonomous System Number to look up. Accepts 'AS15169' or plain '15169'.
formatNoResponse format. Default: json

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the upstream dependency (one request to the WhoisFreaks API), the credential source (WHOISFREAKS_API_KEY env var, request API key, or OAuth on the hosted server), and that the call consumes the account's API credits without creating or changing anything. It also enumerates failure modes with concrete HTTP codes (403 unsupported extension, 404 no data, 429 rate limit) and says a short message is returned instead of data.

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?

Well front-loaded: purpose, then usage routing, then return contents, then behavior and errors. The long parenthetical about authentication paths and the enumerated HTTP failure codes is slightly dense but each clause carries operational information an agent can act on.

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?

With no output schema, the description compensates by listing returned fields (organisation, country, IPv4/IPv6 prefixes, peering, admin/technical contacts, AS sets and blocks). Combined with auth, credit-cost and error disclosures, an agent has everything needed to call and interpret results for this two-parameter read tool.

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 accepted 'AS15169' or '15169' forms and the json/xml enum are already documented in the schema. The description adds only indirect context by noting where the ASN typically comes from, not new meaning about the format parameter, so the baseline 3 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 ('Get the registry WHOIS record for an autonomous system') and immediately defines the resource in plain terms ('the network operator behind a set of IP routes'). It is clearly distinguishable from ipWhoisLookup, which is named as the IP-based counterpart.

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 an explicit trigger ('when you have an AS number, for example from ipWhoisLookup or ipGeolocation output') and an explicit exclusion with the alternative: if you only have an IP, call ipWhoisLookup first. That is a full when/when-not/alternative routing rule.

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