static_lease_add
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
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | ||
| mac | Yes | ||
| name | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||