Skip to main content
Glama

Bulk IP geolocation

bulkIpGeolocation
Read-onlyIdempotent

Geolocate up to 100 IPv4 or IPv6 addresses in one request to map visitors or attackers from logs, avoiding repeated single-IP lookups.

Instructions

Look up the location and network of up to 100 IPv4 or IPv6 addresses in one request. Use this instead of calling ipGeolocation many times, for example to map the visitors or attackers in a log. For one IP use ipGeolocation. For threat signals on many IPs use bulkIpSecurity. Costs 1 credit per IP answered. Returns one entry per IP, with the same fields as ipGeolocation. Behavior: read-only. Makes one request to the WhoisFreaks API using your WhoisFreaks API key (the WHOISFREAKS_API_KEY environment variable, or on the hosted server the key sent with the request) and uses that account's API credits; nothing is created or changed. If the call fails, the result is a short message instead of data, for example: key invalid, or plan or credits used up (HTTP 401), domain extension not supported (HTTP 403), no data found (HTTP 404), or rate limit reached (HTTP 429).

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

Input Schema

NameRequiredDescriptionDefault
ipsYesIPv4 or IPv6 addresses to geolocate, at most 100. Example: ["1.1.1.1", "8.8.8.8"]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it quantifies cost ("1 credit per IP answered"), names the credential source (WHOISFREAKS_API_KEY or key sent with request), confirms nothing is created or changed, and enumerates the failure modes with their HTTP codes (401, 403, 404, 429) and the fact that failures return a message rather than data. This is exactly the operational context an agent needs before fanning out a billable call.

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-loads the core capability in the first sentence, then routes to alternatives, then discloses cost and behavior in a predictable order. It runs long for a one-parameter tool and the error-code enumeration could be tighter, but no sentence is redundant with another.

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 still tells the agent what comes back ("one entry per IP, with the same fields as ipGeolocation") and what failure looks like. The one omission is whether result ordering corresponds to input ordering, which matters when correlating a bulk answer back to a log list, but that is a minor gap in an otherwise complete definition.

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 coverage is 100% and the single ips parameter already documents the array, the 100-item cap, and gives example values, so the description adds little param-level meaning. Its only contribution is restating the up-to-100 limit, which the schema's maxItems already encodes. Baseline 3 applies when the schema does the heavy lifting.

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 ("Look up the location and network of up to 100 IPv4 or IPv6 addresses in one request") and explicitly distinguishes itself from the single-IP tool ipGeolocation and the threat-signal tool bulkIpSecurity. The batch size ceiling is stated up front, so an agent knows the capability envelope without opening the 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 an explicit alternative for the single-IP case ("For one IP use ipGeolocation") and a second alternative for a different intent ("For threat signals on many IPs use bulkIpSecurity"), plus a concrete motivating use case ("map the visitors or attackers in a log"). The when-to-use and when-to-switch conditions are both covered.

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