Skip to main content
Glama

ip_info

Classify an IP address locally to determine its version, private/global/loopback status, and PTR name without network access.

Instructions

Classify an IP locally: version, private/global/loopback, PTR name. No network.

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": {
      "address": "<address>"
    },
    "name": "ip_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.14.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden; it does disclose the key trait that everything is computed locally with no network calls, which implies no auth, no rate limits, and no side effects. But claiming a 'PTR name' while also saying 'No network' is ambiguous about the source of that name (hosts file, cache, or resolver), and nothing is said about invalid-input behavior.

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?

One clause-dense sentence, front-loaded with the action and its outputs, ending with the most decision-relevant constraint ('No network'). Nothing is redundant for a tool of this simplicity.

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?

An output schema exists, so return values need not be explained further, and the description still previews the classification dimensions. For a one-parameter local utility the definition is nearly sufficient; the only real gap is accepted address formats and invalid-input handling.

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?

There is only one parameter, 'address', and schema coverage is 0% — the schema shows only a bare string with no format guidance. The description at least establishes that the argument is an IP address, but it does not state whether IPv4, IPv6, or both are accepted, nor any expected string format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ('Classify') plus the resource ('an IP') and enumerates the exact outputs: version, private/global/loopback classification, and PTR name. The 'No network' clause implicitly separates it from network-based siblings like domain_resolve or domain_whois, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'No network' implies a use case (fast, offline classification where a live DNS query is unnecessary), which is useful context for choosing between this and the domain_* resolution tools. However, there is no explicit when-to-use or when-not-to-use statement, so an agent must infer the selection rule.

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