Skip to main content
Glama

Lookup Kit

ip_location

Read-only

IP geolocation, IP address lookup (country, city, coordinates). Approximate location of an IPv4 or IPv6 address: country, region, city and coordinates (city-level accuracy, not a street address). Offline lookup in DB-IP's IP to City Lite database; the IP is not stored or logged. IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0. Price: $0.002 per call (x402, USDC on Base).

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

Input Schema

NameRequiredDescriptionDefault
ipYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the lookup is offline against DB-IP's IP to City Lite database, that the IP is not stored or logged, the data licensing/attribution, and a per-call price of $0.002 via x402/USDC on Base. The cost and privacy disclosures are exactly the kind of operational context annotations cannot convey.

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 the primary verb and resource, then accuracy, then provenance/cost — a sensible ordering. The opening clause is mildly redundant with the following sentence that re-lists country, region, city and coordinates, but the attribution and price lines earn their space.

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?

For a one-parameter, read-only lookup with no output schema, it covers purpose, precision, data source, privacy, and cost — nearly everything needed to invoke it correctly. The only gap is the response shape beyond a field list and behavior on malformed IPs.

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?

The single parameter has 0% schema description coverage, so the description carries the burden and does state the accepted input is an IPv4 or IPv6 address, matching the schema's 45-char bound. It does not spell out format expectations or invalid-input behavior, which keeps it short of a 5.

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?

Names the resource and operation explicitly (IP geolocation / IP address lookup) and enumerates the returned fields (country, city, coordinates). It also disambiguates precision with 'city-level accuracy, not a street address,' so an agent knows exactly what class of answer to expect.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the accuracy caveat and the supported address families (IPv4 or IPv6), which helps an agent decide whether this tool answers its question. However, there is no explicit when-to-use/when-not framing or pointer to any alternative (e.g., a country_info sibling) for coarser lookups.

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