Skip to main content
Glama

IP address lookup

ip_lookup
Read-only

Find where an IP address is: country, region, city, continent and approximate coordinates, for IPv4 or IPv6. City-level accuracy, not a street address. Data: IP Geolocation by DB-IP (db-ip.com), CC BY 4.0.

$0.002 USDC per call over x402. Failed calls cost nothing. Call without payment to get a quote. The first 3 calls a day through this tool server are free (no wallet needed).

When to use: You need roughly where an IP address is. Parameters: ip: one IPv4 or IPv6 address. Private and reserved addresses are refused free. Returns: country, region, city, continent and approximate latitude/longitude (city level, not a street address).

Input Schema

NameRequiredDescriptionDefault
ipYesIPv4 or IPv6 address.
paymentNoBase64 x402 payment payload. Omit it to receive a quote; sign that and call again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial behavior the agent could not otherwise know: $0.002 USDC per call via x402, failed calls free, quote-then-pay flow, a 3-call/day free tier requiring no wallet, and that private/reserved addresses are refused at no cost. It also discloses accuracy limits (city-level, not street address) and the data source/license.

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?

Purpose, data source, pricing, when-to-use, parameters and returns are all present and reasonably front-loaded. It loses a point for redundancy: 'City-level accuracy, not a street address' is repeated verbatim in the Returns line, and the attribution/license sentence is of marginal value to tool selection.

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 carries the return contract and does so (country, region, city, continent, approximate lat/long at city level). Combined with the payment/free-tier mechanics and the private-address refusal case, an agent has everything needed to invoke this correctly on the first try.

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%, so both parameters are already documented, making 3 the baseline. The description adds meaning beyond the schema by noting that the `ip` value may be IPv4 or IPv6 and that private/reserved addresses are rejected free, and by explaining the omit-payment quote round-trip for the `payment` field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Find where an IP address is', enumerating the returned fields (country, region, city, continent, coordinates) and covering IPv4/IPv6. The resource 'IP address' implicitly separates it from geocode_address, but no sibling is named or contrasted explicitly, so it falls short of a 5.

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 an explicit 'When to use: You need roughly where an IP address is' statement plus concrete payment-flow guidance (call without `payment` to get a quote; first 3 calls/day are free; failed calls cost nothing). It does not, however, address when to prefer this over the adjacent geocode_address tool, so it stops at clear-context-without-exclusions.

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.