Skip to main content
Glama

Agent Data Tools: Utilities

IP geolocation: city, region, country and coordinates

ip_geolocate
Read-only

Geolocate an IPv4 or IPv6 address to its city, region, country (code and name), continent and approximate latitude and longitude, with the address range the record covers, from DB-IP's City Lite data (CC BY 4.0, monthly; attribution in every answer). City level at best; private and reserved addresses are refused. Use to localise a visitor or caller, pick a region or enrich logs; for the network owner and registry record use ip_lookup. Example: ip=8.8.8.8. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
ipYesPublic IPv4 or IPv6 address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: names the data source and license (DB-IP City Lite, CC BY 4.0), discloses the accuracy ceiling ('city level at best'), the refusal behavior for private/reserved IPs, and the cost model ($0.01/call, first 25 free, failed calls free). It also explains why repeated calls are not free, which reconciles with idempotentHint=false.

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 verb, resource and returned fields, then usage, then pricing. It is a single dense paragraph where nearly every sentence earns its place; the payment-channel detail ('x402 USDC or a card key (/credits)') is slightly more than an agent needs to invoke the tool.

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?

No output schema exists, yet the description enumerates the returned fields, the data provenance and accuracy, and the cost/failure behavior. An agent has everything required to decide whether to call it and what to expect back.

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?

With only one parameter at 100% schema coverage, the schema already documents 'Public IPv4 or IPv6 address'. The description reinforces the public-only constraint and adds a worked example (ip=8.8.8.8), but supplies no format or edge-case detail beyond what the schema carries. Baseline 3 applies.

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 ('Geolocate an IPv4 or IPv6 address') and enumerates the exact outputs (city, region, country code/name, continent, lat/long, address range). It explicitly separates itself from ip_lookup ('for the network owner and registry record use ip_lookup'), so an agent can route between the two 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?

Gives concrete use cases ('localise a visitor or caller, pick a region or enrich logs') plus a named alternative with its distinguishing condition ('network owner and registry record' → ip_lookup). It also states an exclusion rule: private and reserved addresses are refused.

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.