Skip to main content
Glama

IP Geolocation Lookup

ipgeolocation_lookup
Read-onlyIdempotent

Look up geolocation, network, ASN, and currency details for any IP address or hostname. Optionally include security, timezone, or abuse data.

Instructions

Look up geolocation data for an IP address, IPv6 address, or hostname. Returns location, network/ASN, currency, and optionally security, timezone, hostname, abuse contact, and user-agent data. 'ip' field is required — pass the IP or hostname to look up.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYesIPv4 address, IPv6 address, or hostname to look up.
langNoLanguage for location name fields. Defaults to English.en
includeNoAdditional data modules to include. Available: security, hostname, liveHostname, hostnameFallbackLive, user_agent, abuse, dma_code, time_zone, geo_accuracy.
fieldsNoComma-separated dot-path fields to include in the response (allowlist). E.g. 'location.city,asn.organization'.
excludesNoComma-separated dot-path fields to exclude from the response (denylist). E.g. 'location.city,asn.organization'.
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is clear. The description adds value by detailing the response data categories (location, network/ASN, currency, optional modules), which goes beyond the annotations. No contradictions.

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 consists of two clear, front-loaded sentences with no redundant information. Every sentence adds value, making it efficient for an AI agent to parse.

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?

Given the moderate complexity (5 parameters, 1 required) and high schema coverage, the description adequately covers the tool's purpose and returns. It lists the main data categories and optional modules, though it could briefly note the response structure since no output schema is provided.

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 description restates the required 'ip' field and the optional 'include' field. It does not add significant meaning beyond the schema, such as clarifying dot-path syntax for 'fields' and 'excludes'. Baseline 3 is appropriate.

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 clearly states the action ('look up'), the resource ('geolocation data'), and the accepted inputs (IP address, IPv6, hostname). It distinguishes from sibling tools like dns_lookup or ssl_live_lookup by specifying the data returned (location, network/ASN, currency, etc.).

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?

The description does not explicitly state when to use this tool over alternatives (e.g., ipgeolocation_bulk_lookup for multiple IPs) or when not to use it. No usage context or exclusions are provided beyond the default behavior.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/api-freaks/apifreaks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server