Skip to main content
Glama

IP address check: IPv4/IPv6, public or private, reserved ranges; or your own IP

ip_info
Read-only

Classifies an IPv4 or IPv6 address: family, canonical form, and whether it is public, private (RFC 1918 or unique local), loopback, link-local, carrier-grade NAT, multicast, documentation, or reserved, including IPv4-mapped IPv6. With no input over HTTP, returns the caller's own public IP and country. Useful for validating network input and filtering internal addresses. Not charged for an invalid address. Paid via x402; see list_prices.

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_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipNoIPv4 or IPv6 address. Omit (HTTP only) to get your own IP.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations by disclosing the billing model (x402, pointer to list_prices), the error-cost behavior ('Not charged for an invalid address'), and the special no-input HTTP path that returns the caller's IP and country. These are exactly the operational facts an agent needs before spending money or relying on a network call.

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?

Three sentences, each front-loaded with the most decision-relevant fact: what it classifies, the no-input behavior, then cost and usage. The long classification enumeration is necessary precision rather than padding.

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?

For a one-optional-parameter, no-output-schema tool, the description covers input semantics, output categories, the special zero-arg mode, and the payment/error model. Nothing an agent needs in order to call it correctly is missing.

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?

The single parameter is fully documented in the schema ('IPv4 or IPv6 address. Omit (HTTP only) to get your own IP.'), which matches the description's restatement of the omission behavior. The description confirms but does not extend schema semantics (e.g., no detail on canonicalization or inputs like CIDR), so the baseline 3 applies.

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 plus resource ('Classifies an IPv4 or IPv6 address') and enumerates the exact outputs: family, canonical form, and the full set of classification buckets including IPv4-mapped IPv6. No sibling tool does anything similar, so the agent can select it unambiguously from the list.

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?

Explicitly states the use case ('validating network input and filtering internal addresses') and the zero-arg mode ('With no input over HTTP, returns the caller's own public IP and country'). It doesn't name an alternative or an exclusion case, but no sibling overlaps in function, so there is little to route away to.

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