Skip to main content
Glama

static_lease_remove

Destructive

Remove an OpenWrt DHCP static lease by section ID or MAC with a UCI change preview and safety rollback. Set confirm=true to apply; only server-created leases are removed unless force=true.

Instructions

Remove a static lease, by section id (see uci_show dhcp) or by MAC. Only leases this server created are removed unless force=true. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "static_lease_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
macNo
forceNo
confirmNo
sectionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation by disclosing that the default call is a no-op preview, that confirm=true triggers the router's rollback timer with a post-apply reachability check, and that a failed check self-restores the old config. That is exactly the safety context an agent needs before mutating router config.

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 sentences, front-loaded with identity then safety behavior, each adding distinct information. The only near-redundancy is "and changes nothing" after "only returns a preview," which is a minor emphasis cost in an otherwise dense paragraph.

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?

An output schema exists, so the preview return format needs no explanation, and the mutation semantics are fully covered. The remaining gap is parameter-level: with zero schema descriptions and four optional parameters, an agent is left to guess the mac/section precedence and whether any of them is effectively required.

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

Parameters4/5

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

With schema description coverage at 0%, the description carries the load and explains three of four parameters well: force gates removal of leases not created by this server, and confirm selects preview versus apply with detailed consequences. It does not state whether mac and section are alternatives, whether one is required, or what happens if both or neither are supplied.

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 ("Remove a static lease") and immediately names the two identification routes (section id or MAC), which lets an agent distinguish it from static_lease_add without opening either schema.

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 routes the agent: point at uci_show dhcp to obtain the section id, note that only server-created leases are removable unless force=true, and establish a clear preview-first (confirm=false) then apply (confirm=true) workflow. Both the when and the when-not conditions are stated.

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