monitor_action
Trigger monitor actions on FortiOS via POST requests to any monitor endpoint, enabling operations like session closure, tunnel teardown, or config backup.
Instructions
Trigger a monitor action (POST) on any monitor endpoint.
Covers any POST on /api/v2/monitor/{monitor_path}.
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": {
"monitor_path": "<monitor_path>"
},
"name": "monitor_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| monitor_path | Yes | Monitor action path. Examples: 'firewall/session/close_all', 'vpn/ipsec/tunnel_down', 'system/config/backup', 'wifi/managed_ap/restart' | |
| body | No | Optional JSON string with action parameters. Example: '{"mkey": "tunnel-name"}' | |
| vdom | No | Target VDOM name. Defaults to the server default VDOM. Use '*' for all VDOMs (super-admin required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||