Skip to main content
Glama

static_lease_add

Destructive

Reserves an IPv4 address as a DHCP static lease, previewing UCI changes by default and applying them only with confirm=true; automatic rollback protects the router if health check fails.

Instructions

Reserve an IPv4 address for a device (a DHCP static lease). mac: aa:bb:cc:dd:ee:ff; ip: a free address in the LAN; name: a hostname (letters, digits, hyphens). Without confirm=true this only returns a preview of the UCI changes and changes nothing. With confirm=true it applies them with the router's rollback timer, checks the router still answers, and confirms; if the check fails, the router restores the old config by itself.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mac": "<mac>",
      "ip": "<ip>",
      "name": "<name>"
    },
    "name": "static_lease_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYes
macYes
nameYes
confirmNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false; the description goes well beyond them by disclosing the preview/apply split, the router's rollback timer, a post-apply reachability check, and automatic config restoration on failure. It does not address idempotency (what happens if the same MAC or IP lease already exists) or whether an existing lease is overwritten, which keeps it from a 5.

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?

Front-loads the purpose in one clause, then compresses the three identity params into a terse semicolon list, then closes with the confirm behavior. No filler and no repetition of schema types.

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 destructive mutation with an output schema available, the description covers the risky parts an agent needs: it will not change anything without confirm, and failures self-revert. Return values are covered by the output schema, so nothing essential is missing.

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?

Schema description coverage is 0%, so the description carries the full burden — and it does: MAC format example ('aa:bb:cc:dd:ee:ff'), the constraint that ip must be a free LAN address, the allowed character set for name, and the exact semantics and default of confirm. Every parameter gains meaning beyond its bare type.

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 and resource — 'Reserve an IPv4 address for a device (a DHCP static lease)' — which is immediately distinguishable from the sibling static_lease_remove. The parenthetical clarifies the domain term for an agent that may not know 'static lease'.

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?

Gives explicit two-phase usage: without confirm=true it is a dry-run preview, with confirm=true it applies. This is clear operational context. It stops short of naming alternatives (e.g. static_lease_remove for cleanup, or pending_changes for reviewing queued UCI diffs), so it lands at 4 rather than 5.

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