Skip to main content
Glama

Validate IPv4 or IPv6 address syntax

is-ip-safe
Read-onlyIdempotent

Validate IPv4 or IPv6 without lookup. Use to check whether a supplied string is structurally an IP address. Do not use it to geolocate a host or test network reachability. Local syntax validation only; performs no DNS or network request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYesIPv4 or IPv6 literal address such as 192.0.2.1 or 2001:db8::1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / ip / description
      Added value: +"IPv4 or IPv6 literal address such as 192.0.2.1 or 2001:db8::1."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds genuine value by reinforcing the closed-world claim with concrete operational detail: 'Local syntax validation only; performs no DNS or network request,' which tells the agent there is no latency or network failure mode to handle.

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?

Four short sentences, zero waste, and the core purpose ('Validate IPv4 or IPv6') is front-loaded ahead of the exclusions. Every clause earns its place by either defining scope or ruling out a misuse.

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?

There is no output schema, so the description could arguably state the return shape (a validity boolean), which it only implies with 'check whether'. Otherwise, for a single-parameter, annotation-covered validation tool, the definition covers purpose, scope, and exclusions fully.

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?

Schema description coverage is 100% and the single 'ip' parameter is already documented with concrete IPv4/IPv6 examples in the schema itself. The description's 'supplied string' phrasing adds no syntax or format constraints beyond what the schema provides, so this sits at the baseline.

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 (Validate) and resource (IPv4 or IPv6 address syntax), and the 'without lookup' qualifier immediately distinguishes it from network-probing siblings. An agent can tell it apart from is-url-safe or is-google-tag without further reading.

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

Usage Guidelines5/5

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

Explicitly says when to use it ('check whether a supplied string is structurally an IP address') and when not to ('Do not use it to geolocate a host or test network reachability'). Both the positive and negative conditions are stated, leaving nothing to inference.

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