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).

Input Schema

TableJSON 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.1/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, but the description adds substantial beyond-schema behavior: the $0.002 USDC price, that failed calls cost nothing, the quote-then-sign payment handshake, and the first-3-calls-per-day free tier. This is exactly the pricing/auth/risk context an agent needs 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-loads the core capability, then tacks on accuracy caveat, data attribution and pricing in short sentences with little waste. The DB-IP license line is compliance-relevant though slightly peripheral for tool selection, keeping it just below a 5.

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?

There is no output schema, yet the description specifies the return fields and accuracy level, and covers cost and the payment handshake. That is nearly everything needed to call it correctly, with only minor gaps (e.g., error behavior on invalid IPs).

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 description coverage is 100%, so the schema already documents both the 'ip' and 'payment' parameters including the quote/sign flow. The description's mention of calling without payment largely restates the schema's own payment note, adding no new syntax or format detail. Baseline 3 is appropriate.

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+resource ('Find where an IP address is') and enumerates the returned fields (country, region, city, continent, approximate coordinates) plus the accuracy boundary. However, it does not distinguish itself from the sibling geocode_address, which is the closest ambiguous alternative, 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 clear operational context: city-level accuracy rather than a street address, the x402 payment flow ('Call without payment to get a quote'), and the free daily tier. It stops short of stating explicit when-not-to-use cases or naming an alternative tool, so no 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.