Skip to main content
Glama

Is this IP in that range?

ip_in_range
Read-onlyIdempotent

Checks whether an IPv4 or IPv6 address falls inside a CIDR block, dash-separated range, or single address, helping validate IP membership and range access rules.

Instructions

Check whether an IPv4 or IPv6 address falls inside a range given as CIDR ("10.0.0.0/8", "2001:db8::/32"), a dash range ("192.168.1.10 - 192.168.1.60") or a single address. Web version: https://s3eidat.github.io/subnet-calc/

Input Schema

NameRequiredDescriptionDefault
ipYesThe address to test.
rangeYesCIDR, "start - end" range, or single address (same family as "ip").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/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 usefully enumerates the accepted range syntaxes, but says nothing about failure behavior for malformed input or mismatched families, nor what the result looks like.

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?

Two sentences, front-loaded with the core behavior and format examples. The trailing web-version URL is of little use to an agent and is the only wasted element.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 should say what is returned (presumably a boolean match) and how mismatched families or invalid ranges are handled. Neither is covered, leaving the result contract unspecified.

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 coverage is 100% and the schema already lists CIDR, dash range and single address; the description's examples mirror that with concrete literals. It adds a little concreteness but no semantics the schema lacks.

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 and resource: check whether an IPv4/IPv6 address falls inside a range, with concrete example formats. The operation is clearly distinct from most siblings, though the related subnet_calc is never referenced.

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 implied by the purpose statement, but there is no explicit guidance on when to pick this over subnet_calc or how to handle a range in a different family than the address. No when-not conditions are given.

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

Deploy Server

Other Tools