Skip to main content
Glama

IP-API.io

ip_lookup_batch

ip_lookup_batch
Destructive

Analyze up to 100 IP addresses in one request. One IP quota unit is charged per unique IP after successful processing.

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>",
      "ips": "<ips>"
    },
    "name": "ip_lookup_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipsYesList of 1 to 100 IPv4 or IPv6 addresses.
api_keyYesip-api.io API key.

Output Schema

NameRequiredDescriptionDefault
resultsYes
failed_lookupsYes
total_processedYes
successful_lookupsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

The description adds substantive context beyond the annotations by disclosing the billing model: one quota unit per unique IP, charged only after successful processing, which implies partial failures are free and that repeat calls re-charge (consistent with idempotentHint=false). With annotations already supplying the safety profile, this is useful but thin — no rate limits, batch atomicity, or per-IP error behavior.

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?

Two sentences, capacity limit front-loaded, and the second sentence spends its words on the cost rule that is the least obvious thing about the tool. No filler or restated title.

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?

An output schema exists, so return values need not be described, and the billing rule is covered. What is missing for a 100-item batch tool is failure semantics: whether one invalid address fails the whole batch, how partial results are surfaced, and any per-call rate limit.

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%, and the schema already states "1 to 100 IPv4 or IPv6 addresses", so the description's "up to 100" adds nothing new. The api_key parameter is left entirely to the schema, which is acceptable at this coverage level; 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?

"Analyze up to 100 IP addresses in one request" gives a specific resource (IP addresses) and a clear batch scope, so an agent can distinguish it from single-address lookups by the cardinality alone. It stops short of naming the single-IP sibling it replaces, leaving the differentiation implicit.

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

Usage Guidelines2/5

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

No explicit when-to-use or when-not guidance: nothing says to prefer this over ip_lookup for single addresses, or that one call should replace N single calls to save overhead. The batch framing implies the use case, but prerequisites and failure handling are unstated.

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