Skip to main content
Glama

IP-API.io

ip_lookup

ip_lookup
Destructive

Get IP geolocation, ASN, ISP, timezone, and suspicious-factor intelligence for a specific IPv4 or IPv6 address.

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": {
      "api_key": "<api_key>",
      "ip": "<ip>"
    },
    "name": "ip_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesIPv4 or IPv6 address to analyze.
api_keyYesip-api.io API key.

Output Schema

NameRequiredDescriptionDefault
ipYes
asnNo
ispNo
locationYesComprehensive geographic location and timezone intelligence for an IP address. Provides detailed location data including administrative regions, precise coordinates, timezone information, and real-time local time calculations with daylight saving awareness. **Geolocation Accuracy**: - Country: 99.8% accuracy - Region/State: 95% accuracy - City: 85-95% accuracy (varies by region and population density) - Coordinates: Median accuracy radius of ~50km **Data Sources**: Multiple commercial and open geolocation databases
suspicious_factorsYesComprehensive security threat assessment and suspicious activity indicators. Contains boolean flags for various types of potentially malicious or suspicious network behavior, enabling fine-grained security decision making. **Detection Methods**: - Machine learning classification models - Real-time threat intelligence feeds - Behavioral pattern analysis - Network fingerprinting techniques

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

The annotations already declare the safety profile (readOnlyHint=false, destructiveHint=true, openWorldHint=true, idempotentHint=false), so the description's only job is to add context beyond that, and it adds essentially none. It never mentions that a key is consumed (quota/rate-limit implications of an external call), what happens on invalid or private IPs, or how errors surface. Listing the returned data types is scope, not behavior.

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?

A single front-loaded sentence with no filler, and the output enumeration is packed efficiently rather than spread across paragraphs. Slightly vague phrasing like "suspicious-factor intelligence" keeps it short of perfect precision.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (two required parameters, output schema present, annotations supplied), so the description needs little, and the output schema covers return values. Still, for an external paid-API call it omits quota consumption, failure modes, and any pointer toward the batch or self siblings, leaving an agent to guess on routing.

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%, with both parameters documented in-schema ("IPv4 or IPv6 address to analyze", "ip-api.io API key"), so the baseline is 3. The description's "specific IPv4 or IPv6 address" merely echoes the schema's accepted formats and adds no new detail on key handling or address validation.

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 concrete retrieval verb ("Get") and enumerates the exact data classes returned: geolocation, ASN, ISP, timezone, and suspicious-factor intelligence, scoped to a single IPv4/IPv6 address. That is enough to separate it conceptually from batch/self variants, but it never names a sibling such as ip_lookup_batch, so the differentiation is only implied by "a specific ... address."

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: "for a specific IPv4 or IPv6 address" hints at the single-address case versus the batch sibling, but there is no explicit when-to-use, when-not-to-use, or named alternative. An agent must infer the routing decision from the phrase "specific" rather than being told it.

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