Skip to main content
Glama

IP Geolocation

ip_lookup
Read-only

IP lookup and geolocation: resolve any public IPv4 or IPv6 address to location and network data from a local database (no third-party call, answers in milliseconds): country, country_code, region, city, lat/lon, IANA timezone, continent, is_eu, ASN with organization (isp, org, asn). Use for fraud and bot checks, geo-routing, analytics, or tagging traffic. Invalid, private and reserved addresses are rejected for free. Params: ip (defaults to the caller's IP). IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0. Price: $0.0055 USDC per call, paid inside this MCP call via x402 (USDC on Base, Solana, Polygon or Arbitrum). x402 MCP clients such as @x402/mcp pay automatically. Free sample: call with the example input {"ip":"8.8.8.8"}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYesIPv4 or IPv6 address to look up (e.g. '8.8.8.8' or '2001:4860:4860::8888')

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 past the readOnly/openWorld annotations by disclosing the local-database source (no third-party call), millisecond latency, address-class rejection behavior, the $0.0055 USDC per-call price with the x402 payment rails, and a free sample input. An agent knows exactly what it will cost and how payment is handled before invoking.

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 and return fields, and the pricing/licensing detail is genuinely decision-relevant for an agent paying per call. It is a single dense paragraph with heavy parenthetical stacking (payment rails, attribution), which costs it a point versus a cleanly segmented version.

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 enumerating the returned fields (country, region, city, lat/lon, timezone, ASN/org, is_eu). Payment mechanics, latency, and validation behavior are all covered, so nothing needed to call it correctly is missing.

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 already 100%, so the schema documents the ip format. The description nonetheless adds meaning beyond it: the parameter defaults to the caller's IP, and invalid/private/reserved values are rejected rather than returning nulls. Minor tension with the schema marking ip required, but the added semantics are real.

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?

Opens with a specific verb+resource ("IP lookup and geolocation: resolve any public IPv4 or IPv6 address to location and network data") and enumerates the returned fields. This clearly separates it from address-oriented siblings like geocode or postal_code and from dns_lookup.

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?

Explicit use cases are given: fraud and bot checks, geo-routing, analytics, tagging traffic, plus the boundary rule that invalid/private/reserved addresses are rejected. It lacks an explicit "use X instead" comparison to the nearest sibling (geocode), so it stops short of a 5.

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