apply_maintenance_plan
Apply a reviewed nontransactional maintenance plan to PostgreSQL relations, supporting vacuum, analyze, reindex, and refresh operations.
Instructions
Apply an exact reviewed nontransactional maintenance plan
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": {
"name": "<name>",
"operation": "<operation>",
"schema_name": "<schema_name>",
"target_name": "<target_name>",
"review_hash": "<review_hash>"
},
"name": "apply_maintenance_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Stable maintenance operation name | |
| parallel | No | VACUUM parallel workers | |
| operation | Yes | Structured maintenance operation | |
| review_hash | Yes | Exact review hash returned by create_maintenance_plan | |
| schema_name | Yes | Exact target schema | |
| skip_locked | No | Skip relations that cannot be locked immediately | |
| target_name | Yes | Exact relation or index name | |
| index_cleanup | No | VACUUM index cleanup policy | auto |
| timeout_seconds | No | ||
| lock_timeout_seconds | No |