Skip to main content
Glama

find_free_ip

Read-onlyIdempotent

Find unused IPs on your LAN before creating a static DHCP lease. Scans a given range, excluding active leases, static reservations, gateway, and broadcast, to prevent IP conflicts.

Instructions

Suggest up to 5 unused IPs on the LAN for a new static reservation (read-only; changes nothing). Use before set_static_lease or pin_device(ip=...) to avoid conflicts. Excludes active leases, existing static reservations, the gateway and broadcast. start/end are last octets (e.g. 100 and 149 → 192.168.1.100-149); pick a range outside the router's dynamic DHCP pool. start > end is accepted and swapped.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoLast last-octet to scan (2-254).
startNoFirst last-octet to scan (2-254).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, and non-destructive, and the description reinforces 'read-only; changes nothing.' It adds valuable behavior beyond annotations: exclusions (active leases, static reservations, gateway, broadcast) and the accepted/auto-swapped behavior for start > end.

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?

The description is three tight sentences, with the core purpose and safety property first, followed by usage guidance and parameter clarification. Every clause carries information; there is no filler or duplication of the schema.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a low-complexity read-only scan tool with two optional params, an output schema, and safety annotations, the description covers purpose, preconditions, exclusions, and parameter semantics. There is no missing information an agent would need to invoke it appropriately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema already describes the last-octet range with defaults, the description adds the crucial domain meaning: start/end are last octets, with a concrete example, the recommendation to avoid the DHCP pool, and the swap behavior for reversed bounds. This moves well beyond the schema's bare integer descriptions.

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?

The description opens with a specific verb ('Suggest'), a concrete deliverable ('up to 5 unused IPs on the LAN'), and the intended purpose ('for a new static reservation'). It also notes the read-only nature and differentiates this suggestion/scan tool from sibling mutation tools like set_static_lease and pin_device.

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?

It explicitly says to use this before set_static_lease or pin_device(ip=...) to avoid conflicts, and it tells the caller to pick a range outside the router's dynamic DHCP pool. It also states what the scan excludes, so the agent knows what results mean and when the tool is appropriate.

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