Skip to main content
Glama

IP WHOIS lookup

ipWhoisLookup
Read-onlyIdempotent

Get the registry WHOIS record for an IPv4 or IPv6 address: who the IP block is allocated to. Use this to find the owning organisation, CIDR range, AS number and abuse contact of an IP, for example to report abuse. For city, ISP and coordinates use ipGeolocation. For VPN, proxy, Tor and threat signals use ipSecurity. For details about the autonomous system itself use asnWhoisLookup. For domains hosted on the IP use reverseDnsLookup. Returns the network range (inetnum/inet6num) and CIDR, owning organisation and ASN, admin, technical and abuse contacts, route objects, and the raw WHOIS text. 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": {
      "ip": "<ip>"
    },
    "name": "ipWhoisLookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesIPv4 or IPv6 address to look up. Examples: 8.8.8.8 | 2001:4860:4860::8888
formatNoResponse format. Default: json

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/openWorldHint, yet the description still adds real value: one API request per call, consumption of the WhoisFreaks account's credits via WHOISFREAKS_API_KEY or hosted auth, and a concrete failure taxonomy (403, 404, 429) with a promise of a short message rather than data. Deductions for listing 'domain extension not supported (HTTP 403)', an error mode that cannot occur for an IP lookup and looks carried over from a domain WHOIS tool, and for not clarifying whether the record is live or a cached snapshot even though liveWhoisLookup and whoisHistory exist as siblings.

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?

Front-loaded with purpose, then routing, then return shape, then behavior and errors — a sensible priority order with no filler sentences. It runs long overall, and the enumerated error paragraph (including the irrelevant 'domain extension' case) is the one section that could be trimmed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 what comes back (inetnum/inet6num and CIDR, org and ASN, admin/technical/abuse contacts, route objects, raw WHOIS text), and it covers auth, cost and failure modes. The remaining gaps are the live-vs-historical question and the inapplicable error case; neither blocks a correct call.

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% — the ip parameter already carries format examples and format documents its enum and json default. The description adds nothing param-specific beyond restating that IPv4 or IPv6 is accepted, so the baseline of 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 IPv4 or IPv6 address') plus the practical meaning of the result ('who the IP block is allocated to'). It also enumerates the concrete fields returned (owning org, CIDR, ASN, abuse contact), which lets an agent distinguish this tool from asnWhoisLookup and reverseDnsLookup without reading their schemas.

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 use case ('to report abuse') and then routes the agent away from this tool four times with concrete conditions: ipGeolocation for city/ISP/coordinates, ipSecurity for VPN/proxy/Tor/threat signals, asnWhoisLookup for AS-level detail, reverseDnsLookup for hosted domains. Nothing is left for the agent to infer about which sibling to choose.

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