backup_config
Downloads and saves a FortiGate device's running configuration to a file on the MCP server host for backup, with optional VDOM scope and overwrite control.
Instructions
Download the running configuration and save it to a file on the MCP server host.
Parameters:
device_id: Identifier of the FortiGate device
output_path: Absolute file path to write (parent directory must exist)
scope: "global" (default, whole device) or "vdom"
overwrite: Replace an existing file (default false)
vdom: Virtual Domain name (optional)
Returns:
Saved path, size and line count
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_id": "<device_id>",
"output_path": "<output_path>"
},
"name": "backup_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vdom | No | Virtual Domain | |
| scope | No | Backup scope | global |
| device_id | Yes | FortiGate device identifier | |
| overwrite | No | Replace an existing file | |
| output_path | Yes | Absolute file path to write on the MCP host |