Skip to main content
Glama

IP Country & Network Lookup (DB-IP Lite)

ip_lookup

Find which country and network an IP address belongs to, for fraud checks, geo-compliance or log enrichment. Looks up 1-50 IPv4/IPv6 addresses: country, ASN and organisation, network range and private/reserved detection, from a monthly local copy of DB-IP Lite, so no IP is sent to third parties. Country-level only; VPNs and proxies are not detected. Use when a decision depends on where a request or login comes from. $0.001 per call, USDC on Base (x402).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ip_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipNoIPv4/IPv6 address, or up to 50 comma-separated
payment_signatureNox402 v2 PAYMENT-SIGNATURE header value. Omit to receive payment requirements.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full disclosure burden and does so unusually well: it names the data source and freshness (monthly local copy of DB-IP Lite), states the privacy property that matters most here (no IP sent to third parties), discloses accuracy limits (country-level only, no VPN/proxy detection), the batch ceiling (1-50), and the cost model ($0.001 per call, USDC on Base via x402). The only absent detail is error/rate-limit behavior, which is minor against this coverage.

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?

Front-loaded with purpose, then returns, then limitations, then price — a sensible information hierarchy with almost no filler. There is mild overlap between the opening 'country and network' and the later restatement of the returned fields, and the single dense block of clauses is slightly harder to scan than separate sentences would be.

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?

There is no output schema and no annotations, so the description must supply everything. It covers input limits, returned fields, data provenance, privacy, accuracy boundaries, and payment requirements — an agent can call this correctly and interpret the response without further sources.

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%, so both parameters are already documented ('IPv4/IPv6 address, or up to 50 comma-separated' and the x402 PAYMENT-SIGNATURE semantics). The description restates the 1-50 batch limit and the payment model but adds no syntax, formatting, or validation detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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?

Opens with a specific verb and resource ('Find which country and network an IP address belongs to') and enumerates the returned fields: country, ASN, organisation, network range, private/reserved detection. An agent knows exactly what the tool produces without opening the schema. No siblings exist to differentiate from, so the burden is on precision, which is met.

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?

Gives explicit usage context ('for fraud checks, geo-compliance or log enrichment' and 'Use when a decision depends on where a request or login comes from') plus meaningful exclusions ('Country-level only; VPNs and proxies are not detected'). No alternative tools are named, but none exist in the sibling list, so there is nothing further to route against.

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