Skip to main content
Glama

IP-API.io

ip_lookup_self

ip_lookup_self
Destructive

Get IP intelligence for the MCP HTTP client's peer IP 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>"
    },
    "name": "ip_lookup_self"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 description frames a pure read ('Get IP intelligence') while annotations declare readOnlyHint=false, destructiveHint=true, and idempotentHint=false, an inconsistency the description never addresses. Beyond that, it adds no behavioral context such as caching of the peer IP, proxy/forwarded-header handling, or API-key failure behavior for an openWorld 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?

One front-loaded sentence with zero filler, and the scope constraint is placed where it matters. It is well-sized, though it leaves no room for the disambiguation from ip_lookup that would have cost only a clause.

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 needn't be described, and the single-parameter schema is fully covered. However, a tool that requires an API key and is flagged openWorld/destructive should say something about authentication and the peer-IP resolution caveat; the description is silent on both.

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 api_key parameter is fully documented in the schema, so baseline 3 applies. The description usefully signals that no IP argument exists — the target is implicit — but adds nothing about credential handling.

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 gives a specific verb ("Get"), a specific resource ("IP intelligence"), and a precise scope ("the MCP HTTP client's peer IP address"), which implicitly distinguishes it from the parameterized sibling ip_lookup. It stops short of naming that sibling, so the differentiation must be inferred from the scope wording rather than stated.

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 implied by the scope phrase 'peer IP address' — an agent can infer this is for inspecting the caller's own connection rather than an arbitrary address — but there is no explicit when-to-use, when-not, or named alternative such as ip_lookup. Guidance is present only by implication.

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