Skip to main content
Glama

IPWhois IP Geolocation MCP

Compare two IP addresses for impossible travel and ASN overlap

compare_two_ips
Read-onlyIdempotent

Compare two IPv4 or IPv6 addresses side by side, calculating Haversine distance in km plus same-country, same-ASN, same-timezone, and EU checks.

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_a": "<ip_a>",
      "ip_b": "<ip_b>"
    },
    "name": "compare_two_ips"
  }
}

Input Schema

NameRequiredDescriptionDefault
ip_aYesFirst IPv4 or IPv6 address.
ip_bYesSecond IPv4 or IPv6 address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered; the description usefully adds that the tool performs external lookups and computes distance plus country/ASN/timezone/EU comparisons. It does not mention accuracy caveats, latency, or whether lookups count against a quota, which matters for an openWorldHint tool.

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 list of computed checks is packed efficiently. It is dense but readable, with nothing that could be cut without losing information.

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?

With no output schema, the description carries the burden of describing return values; it names the derived checks but not their types or structure (booleans vs nested objects, presence of raw ASN/geo fields). For a simple two-parameter read-only computation this is adequate but leaves an agent guessing at response shape.

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 only two required parameters, so the schema already explains ip_a and ip_b fully. The description's 'IPv4 or IPv6' phrasing reinforces accepted formats but adds no ordering, validation, or edge-case semantics beyond that.

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 states a specific verb (compare) and resource (two IPv4/IPv6 addresses) and enumerates the computations: Haversine distance in km plus same-country, same-ASN, same-timezone, and EU checks. That distinguishes it in substance from the single-IP siblings like lookup_ip_geolocation and check_ip_jurisdiction, though no sibling is named explicitly.

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?

There is no explicit when-to-use or when-not-to-use guidance and no routing to alternatives such as lookup_ip_geolocation for a single address or check_ip_jurisdiction for jurisdiction questions. The 'impossible travel' framing lives only in the title, so an agent must infer the use case.

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.