fortigate_api
Call any FortiOS REST endpoint directly when no dedicated tool covers it. Use /api/v2/ paths for configuration or live state, with read-only guardrails enforced.
Instructions
Call any FortiOS REST endpoint directly. path must start with /api/v2/ (cmdb/... for configuration, monitor/... for live state). FORTIGATE_READ_ONLY still applies. Prefer the dedicated tools when one exists.
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": {
"method": "<method>",
"path": "<path>"
},
"name": "fortigate_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST/PUT | |
| path | Yes | e.g. /api/v2/cmdb/system/global or /api/v2/monitor/system/ha-peer | |
| vdom | No | VDOM (default: FORTIGATE_VDOM, usually root) | |
| method | Yes | GET, POST, PUT or DELETE | |
| params | No | Query parameters |