Skip to main content
Glama

Agent Data Tools: Utilities

IP address info, classify an IP: tell whether an IP address is public, private, reserved, IPv4 or IPv6

ip_info
Read-only

Classify an IPv4 or IPv6 address without any lookup: version, whether it is private, loopback, link-local, carrier-grade NAT or public, and its integer and reverse-DNS forms (IPv4). Use to triage IPs in logs or allowlists. Example: ip=10.1.2.3. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ip": "<ip>"
    },
    "name": "ip_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesThe IP address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavior: no network dependency, no state change, per-call billing at $0.01, first 10 free, and failed calls free — cost is a real invocation consideration. It does not explain output shape beyond naming the labels, but most of that is already in the purpose sentence.

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 the capability and the returned fields, then usage, then an example, then billing. The billing sentence is long and partly commercial boilerplate, but it carries decision-relevant cost information, so it earns most of its space.

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?

No output schema exists, so the description must carry return values, and it does: version, classification labels, integer form and reverse-DNS form for IPv4. For a single-argument classifier with cost and safety covered, nothing an agent needs is missing.

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

Parameters4/5

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

With one parameter at 100% schema coverage the baseline is 3, and the description earns an extra point by supplying an example value ('ip=10.1.2.3') and by stating that both IPv4 and IPv6 are accepted — format constraints the schema's plain 'string' does not convey.

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?

States a specific verb and resource ('Classify an IPv4 or IPv6 address') and enumerates the exact outputs: version, private/loopback/link-local/CGNAT/public status, integer and reverse-DNS forms. The phrase 'without any lookup' separates it from the ip_lookup and ip_geolocate siblings without needing their schemas.

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 a concrete use case ('triage IPs in logs or allowlists') and implicitly excludes lookup-style tools by saying it works 'without any lookup.' No sibling is named outright and no when-not-to-use condition is stated, so it stops short of a 5.

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