execute_maintenance
Execute SQL maintenance operations like DROP, TRUNCATE, ALTER, VACUUM, and REINDEX only when POSTGRES_ENABLE_MAINTENANCE is true. Keeps destructive commands gated until explicitly enabled.
Instructions
Ejecuta mantenimiento SQL solo si POSTGRES_ENABLE_MAINTENANCE=true.
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": {
"sql": "<sql>"
},
"name": "execute_maintenance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Sentencia DROP/TRUNCATE/ALTER/CREATE/VACUUM/ANALYZE/REINDEX/GRANT/REVOKE |