Skip to main content
Glama

ip_geolocation

Locate any IP address to retrieve country, city, ISP, ASN, coordinates, and proxy, VPN, or hosting flags for network reconnaissance and risk assessment.

Instructions

Get geographic location and network information for an IP address. Returns country, city, ISP, ASN, coordinates, and flags for proxy/VPN/hosting detection. Uses ip-api.com (free, no API key).

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_geolocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesIP address to geolocate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the behavioral burden and does add real context: it names the upstream provider (ip-api.com), states it is free and requires no API key, and discloses the shape of the returned data including proxy/VPN/hosting flags. It omits rate limits, failure behavior for invalid or private IPs, and whether results are cached, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the purpose, then return values, then the provider note. No filler or redundancy, and each sentence carries information an agent would otherwise have to guess.

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?

With no output schema, the description correctly compensates by enumerating the returned fields, and it identifies the data source and lack of auth requirements. For a one-parameter read tool this is close to complete; only rate-limit and invalid-input behavior are unaddressed.

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?

There is a single required parameter with 100% schema description coverage, so the schema already explains 'ip'. The description adds no syntax constraints (IPv4 vs IPv6, CIDR, private-address handling) beyond what the schema provides, so the baseline 3 applies.

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?

The description opens with a specific verb and resource ('Get geographic location and network information for an IP address') and enumerates what comes back (country, city, ISP, ASN, coordinates, proxy/VPN/hosting flags). It does not explicitly contrast itself with siblings like dns_lookup or whois_lookup, but the function is unmistakable from the text alone.

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 only implied: an agent can infer this is the tool for geolocating an IP, and the mention of ip-api.com clarifies the data source. There is no explicit when-to-use versus when-not-to-use guidance, no statement about which IP forms are accepted (IPv4/IPv6/private ranges), and no routing to an alternative when geolocation isn't what's wanted.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.