Skip to main content
Glama

x402-validate-ip

Validate IP: Check value for IPv4, each octet at most 255, or for IPv6 syntax, and return valid plus version 4 or 6. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  2. Changed1 schema field changed
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the validation rule (octets at most 255, IPv6 syntax check) and the response shape (valid plus version), plus the payment/trial constraint, which is useful context. It omits what happens for malformed input (error vs valid=false), whitespace handling, and whether the call is read-only/pure.

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?

One compact sentence front-loads the verb and resource, then states the rules and the return values, with the pricing note clearly separated. The middle clause ('each octet at most 255, or for IPv6 syntax') is slightly mangled but still readable.

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?

With no output schema, the description correctly spells out the return payload (valid plus version 4 or 6), which is the key thing an agent needs. For a single-parameter validation tool the coverage is close to sufficient, with only invalid-input semantics 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 schema declares a single 'value' string with 0% description coverage, so the description must compensate. It implicitly conveys that 'value' is the IP string to be checked, but adds no format details such as whether CIDR suffixes or leading/trailing whitespace are accepted.

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?

States a specific verb (validate/check) and resource (IP value) and adds the outcome (valid + version 4 or 6), so the operation is unambiguous. It does not differentiate itself from close siblings such as x402-is-ip, x402-is-ipv4, or x402-is-ipv6, leaving the agent to infer that this one returns a version discriminator.

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?

Usage is only implied by the purpose — validate a string as an IP address. Given a dense sibling cluster of IP validators and converters (is-ipv4, is-ipv6, ip-to-int), a sentence naming when to prefer this combined validator would have been valuable, and none is present.

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