stop_container
Stop a running container on a MikroTik device by name or tag. Preview the change with confirm=False, then apply it with confirm=True to halt the container.
Instructions
Stop a container by name or tag (/container/stop).
WRITE tool, guarded: blocked entirely unless the server is running
with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the
default) to get a before/after preview without changing anything;
call again with confirm=True to actually apply it. Errors clearly
(without changing anything) if container doesn't match any
/container row's name or tag on the device - it is never
created.
The after.status in the preview is the status RouterOS sets
immediately ("stopping"), not a guaranteed final state - use
containers again afterward to see the settled status.
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>",
"container": "<container>"
},
"name": "stop_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| container | Yes | ||
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||