Backup database
mysql_dumpDumps a MySQL database to a timestamped gzipped file on the server and returns the file path.
Instructions
Dump a database to a timestamped gzip file on the server and return its 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": {
"database": "<database>"
},
"name": "mysql_dump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database name | |
| dir | No | Destination directory on the server | /root/backups |