remove_static_dns
Remove a static DNS entry from MikroTik RouterOS by name, optionally filtered by record type. Preview removal with confirm=False; execute with confirm=True.
Instructions
Remove a static DNS entry (/ip/dns/static remove) by name,
optionally narrowed by record_type ("A"/"CNAME").
WRITE tool, guarded: blocked entirely unless the server is running
with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the
default) to get a preview of what would be removed; call again with
confirm=True to actually remove it. Errors clearly if nothing
matches name (narrowed by record_type), or if more than one row
still matches after narrowing (AmbiguousResourceError) - never
guesses which one to remove.
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": {
"device_name": "<device_name>",
"name": "<name>"
},
"name": "remove_static_dns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| confirm | No | ||
| device_name | Yes | ||
| record_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||