Skip to main content
Glama

Look up an IP address

lookup_ip
Read-onlyIdempotent

Look up one public IPv4 or IPv6 address and return its WorldIP profile: owner/organisation, ASN, country, region, city, CIDR, reverse DNS (PTR) and forward-confirmed DNS. IPv4 profiles include domains_hosted, a daily count of the domains hosted on the address from issued.live (a number, never the names). IPv6 profiles add version, prefixes and an rdns block that flags ISP-generated PTR names. Use it for a specific address; for the user's own connection, call whats_my_ip instead. Problems come back as a tool result with isError true and a one-line reason: a malformed address, a CIDR range or hostname, or a private, loopback, documentation or other reserved address (these have no public profile). Free and keyless, limited per calling IP to 60 calls a minute and 1,000 a UTC day (shared with the keyless JSON API); a limited call says when to retry.

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": "lookup_ip"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesThe address to look up, e.g. 8.8.8.8 or 2001:4860:4860::8888. One address only: not a CIDR range, hostname or URL. Surrounding spaces are ignored, and an IPv4-mapped IPv6 address (::ffff:8.8.8.8) is looked up as the IPv4 address it carries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / ip / description
      Previous value: -"Public IPv4 or IPv6 address, e.g. 8.8.8.8 or 2001:4860:4860::8888"New value: +"The address to look up, e.g. 8.8.8.8 or 2001:4860:4860::8888. One address only: not a CIDR range, hostname or URL. Surrounding spaces are ignored, and an IPv4-mapped IPv6 address (::ffff:8.8.8.8) is looked up as the IPv4 address it carries."
    • addedInput schema / properties / ip / examples
      Added value: +[
      +  "8.8.8.8",
      +  "2001:4860:4860::8888"
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses the full return payload, the quirk that domains_hosted is a count and never the names, the IPv6-specific fields, and that errors surface as isError true with a one-line reason. It also gives concrete rate limits (60/minute, 1,000/day, shared with the keyless JSON API) and notes that a limited call says when to retry.

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?

The paragraph is front-loaded with purpose and return shape, then alternatives, then errors, then limits, and every sentence carries information. It is dense and long for a one-parameter tool, with some repetition of the schema's "one address only" constraint.

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 describing the returned fields and their caveats, and it covers error semantics and quota behavior. For a single-parameter lookup tool this leaves nothing an agent needs in order to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents the single ip parameter, including space trimming and IPv4-mapped IPv6 handling. The description reinforces the constraint that only one address is accepted and that CIDR ranges, hostnames and reserved addresses produce errors, adding failure-mode meaning rather than new syntax.

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 ("look up one public IPv4 or IPv6 address") and enumerates the returned profile fields, so the agent knows exactly what comes back. It also names the sibling it is not for ("for the user's own connection, call whats_my_ip instead"), making it distinguishable without opening either schema.

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?

Explicitly routes between this tool and the alternative: "Use it for a specific address; for the user's own connection, call whats_my_ip instead." It also states the inputs that are out of scope (CIDR range, hostname, private/loopback/reserved addresses), which is when-not-to-use guidance in concrete form.

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.