Skip to main content
Glama

Look up a public IP (RDAP + reverse DNS)

ip_lookup
Read-onlyIdempotent

[PAID $0.005 USDC per call via x402 on Base; errors are free] Given a public IPv4 or IPv6 address (default 1.1.1.1), returns the RDAP registration record from rdap.org (network name, handle, type, country, start/end, CIDRs, org when present) and the reverse DNS PTR via Cloudflare DNS-over-HTTPS. Private, reserved and documentation ranges are rejected (400, not charged). This is not a city-level geolocation product and does not use a paid IP-intel vendor. Two outbound requests, 5 s RDAP / 4 s DNS timeouts. Missing RDAP with no PTR = 404; both sources down = 502; never charged on errors.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ip_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipNoPublic IPv4 or IPv6 address to look up (default 1.1.1.1). Private/reserved addresses are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/open-world safety, and the description adds substantial context beyond them: x402 pricing of $0.005 USDC per call on Base with free errors, two outbound requests, 5 s RDAP / 4 s DNS timeouts, and per-outcome status codes (400 not charged, 404, 502). Cost and failure semantics are exactly the kind of behavior an agent needs before calling.

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?

One dense paragraph with no filler; every clause (pricing, sources, timeouts, error codes) carries information. Minor weakness: the price bracket is front-loaded ahead of the actual purpose, so the most important sentence is not first.

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 fully compensates by listing the RDAP fields returned and the PTR source, plus error outcomes and timeouts. Nothing an agent needs to call it correctly or interpret a failure is missing.

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% for the single 'ip' parameter, so the schema already documents type and default. The description restates the default (1.1.1.1) and adds the rejection rule for private/reserved ranges, but contributes no format or syntax detail beyond the schema — baseline 3.

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 ('Given a public IPv4 or IPv6 address... returns the RDAP registration record... and the reverse DNS PTR') and enumerates the returned fields (network name, handle, type, country, start/end, CIDRs, org). It also draws a hard boundary against geolocation/intel products, so an agent can tell what this is and is not.

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?

Gives clear context for use (public IPs only; private/reserved/documentation ranges rejected with 400) and an explicit exclusion ('not a city-level geolocation product, does not use a paid IP-intel vendor'). It does not name a sibling tool to use instead for geo or intel needs, so routing to an alternative is left implicit.

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