Skip to main content
Glama

Analizar dirección IP

ip-parse
Read-onlyIdempotent

Valida una IP v4/v6 y devuelve forma canónica y expandida, entero, nombre DNS inverso y tipo (privada, loopback, global…). Cuándo: hay que leer, construir o revisar con exactitud una URL, una cabecera HTTP, un token, una versión, un rango de IP, un documento HTML o Markdown o un archivo para agentes. No para: describir un bloque CIDR IPv4/IPv6 (cidr-info). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Validates an IPv4 or IPv6 address and returns canonical (RFC 5952 compressed) and expanded forms, integer and hex values, reverse-DNS name, and its type (private, loopback, link-local, documentation, multicast, CGNAT, global…). When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
ipYesIP address (string; required; up to 64 chars).

Output Schema

NameRequiredDescriptionDefault
hexNo
ipv4No
typeNo
addressNo
integerNo
versionNo
expandedNo
is_privateNo
reverse_dnsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / ip / examples
      Added value: +[
      +  "192.168.1.10"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Validates an IPv4 or IPv6 address and returns canonical (RFC 5952 compressed) and expanded forms, integer and hex values, reverse-DNS name, and its type (private, loopback, link-local, documentation, multicast, CGNAT, global…). When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. Not for: describing an IPv4 or IPv6 CIDR block (cidr-info). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false, so the safety profile is largely given. The description goes beyond them usefully by adding hard limits (64 KB JSON input, 1 s per call, 1 MB result) and an explicit determinism guarantee, which annotations do not express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded correctly, but the text is duplicated: a full Spanish block followed by a full English block, and the EN text is repeated verbatim again in inputSchema.description. The redundancy inflates the payload without adding information.

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 the enumerated return fields are redundant-yet-harmless rather than required; with annotations, limits, determinism and the sibling exclusion all covered, an agent has everything it needs to call this correctly. Missing only edge-case behavior (e.g. what happens on invalid/empty input) to reach a 5.

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?

Only one parameter and schema coverage is 100% – the schema already documents type, required-ness, the 64-char maxLength and an example. The description adds nothing parameter-specific (no format nuances such as accepting IPv6 zone IDs or bracketed forms), so 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?

States a specific verb+resource ('Valida una IP v4/v6') and enumerates the outputs (canonical RFC 5952, expanded, integer, hex, reverse DNS, type), so the agent knows exactly what comes back. It also distinguishes itself from a close sibling by name: 'No para: describir un bloque CIDR (cidr-info)'.

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?

There is an explicit 'Cuándo' section and an explicit exclusion pointing to cidr-info, which is exactly the routing an agent needs against the many CIDR siblings. However, the trigger list is scattershot ('un token, una versión, ... un documento HTML o Markdown'), which muddies rather than sharpens the selection criteria and may cause over-invocation.

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