Skip to main content
Glama
crisjonblvx

enrichrapi-mcp

by crisjonblvx

enrich_ip

Resolve an IP address to its geographic location, returning country, region, city, ISP, timezone, and coordinates. Uses ipinfo.io or ipwho.is for public IPs, with explicit error handling for private or unavailable addresses.

Instructions

Geolocate an IP address over HTTPS.

Public IPs are looked up via ipinfo.io (if IPINFO_TOKEN is configured) or ipwho.is. Private/loopback addresses are classified locally. Vendor failures return error=geolocation_unavailable with null coordinates — never invented lat/lon.

Args: ip: IPv4 or IPv6 address (e.g. "8.8.8.8")

Returns: dict with keys: valid, country, country_code, region, city, isp, timezone, lat, lon, error (when unavailable), cost_usd

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations present, the description carries the full behavioral disclosure burden and meets it well. It reveals provider selection logic, local handling of private/loopback addresses, and crucially states that vendor failures produce error=geolocation_unavailable with null coordinates and never invented lat/lon.

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?

The description is front-loaded with a one-sentence purpose, then uses clear Args and Returns sections. Every sentence adds meaningful information: provider behavior, failure semantics, accepted input, and return keys. There is no filler or redundancy.

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

Completeness5/5

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

Given a bare schema, no output schema, and no annotations, the description is unusually complete. It defines the input format, the output dictionary keys, the error behavior, and even the cost_usd key, leaving no critical gap for an agent attempting to call or interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema only provides 'ip' as a string with no description, so the description fully compensates by specifying IPv4 or IPv6 format and giving a concrete example, '8.8.8.8'. For a single required parameter, this is exactly the semantic support an agent needs.

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?

The description opens with a specific verb-resource pair, 'Geolocate an IP address', and the enrichment-focused context is unmistakable. It clearly distinguishes this tool from sibling tools like enrich_email or enrich_phone by naming the target resource and operation.

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

Usage Guidelines4/5

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

The intended use is clear: call this tool when you need to geolocate an IP address. It also gives conditional context by distinguishing public IP handling, private/loopback classification, and vendor failure behavior, though it does not explicitly discuss when-not-to-use or name alternative tools.

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