Add a RouterOS item
mikrotik_addAdds an item to any RouterOS menu via a specified path and properties, returning the new item's .id for subsequent configuration.
Instructions
Add an item to any RouterOS menu (/<path> add ...). Returns the new item's .id.
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": {
"path": "<path>",
"properties": "<properties>"
},
"name": "mikrotik_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | RouterOS menu path, e.g. "/ip/address", "/interface/bridge/port" or "ip firewall filter". | |
| device | No | Name of the configured device. Defaults to the first device (see mikrotik_list_devices). | |
| properties | Yes | Item properties as in the CLI, e.g. {"address": "10.0.0.1/24", "interface": "ether2"}. |