Skip to main content
Glama

IP Geolocation Lookup

ipgeolocation_lookup
Read-onlyIdempotent

Look up geolocation data for an IP address, IPv6, or hostname. Returns location, network, currency, timezone, and optional security details.

Instructions

Look up geolocation data for an IP address, IPv6 address, or hostname. Returns location, network/ASN, currency, timezone and optionally security, dma_code, 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
fieldsNoComma-separated dot-path fields to include in the response (allowlist). E.g. 'location.city,asn.organization'.
includeNoAdditional data modules to include. Available: security, hostname, liveHostname, hostnameFallbackLive, user_agent, abuse, dma_code, geo_accuracy. Use '*' to include all modules. Note: 'security' and 'abuse' fields cost extra credits.
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 provide readOnlyHint, openWorldHint, idempotentHint, destructiveHint. The description adds context about optional data modules costing extra credits (security, abuse), which is valuable behavioral information not covered by annotations.

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 concise, using three short sentences to convey the core action, returned data, and required parameter. Every sentence adds value without unnecessary fluff.

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?

For a lookup tool with no output schema, the description adequately covers the purpose, required input, returned data, and an important caveat about optional costs. It lacks information on error handling or limits, but this is acceptable given the tool's simplicity.

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%, so the description's value is marginal. It repeats that 'ip' is required and lists optional fields, but adds no new semantic detail beyond what the schema already provides.

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 tool's purpose: to look up geolocation data for an IP address, IPv6 address, or hostname. It is specific and distinguishes from sibling tools like ipgeolocation_bulk_lookup and ip_security_lookup by focusing on a single IP lookup and listing returned data.

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?

No explicit guidance on when to use this tool versus alternatives. The description does not mention when not to use it or suggest other tools for different contexts, leaving the agent to infer usage from the tool name and description.

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