remove_from_address_list
Delete a specific IP address entry from a MikroTik firewall address-list by matching list name and address. Preview first, then confirm to apply the removal.
Instructions
Remove the entry matching list_name+address from a firewall
address-list (/ip/firewall/address-list).
Like add_to_address_list, this only manages the list - see that tool's docstring and README's "Blocking/allowing a client via address lists" section for why this alone doesn't guarantee a change in blocking/allowing behavior.
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 no entry
matches list_name+address.
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>",
"list_name": "<list_name>",
"address": "<address>"
},
"name": "remove_from_address_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| confirm | No | ||
| list_name | Yes | ||
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||