create_maintenance_plan
Create a reviewed, nontransactional PostgreSQL maintenance plan for operations like vacuum, analyze, reindex, and refresh materialized views. Define schema, target, parallel workers, skip locked, and index cleanup policy.
Instructions
Create a reviewed nontransactional PostgreSQL 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>"
},
"name": "create_maintenance_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Stable maintenance operation name | |
| parallel | No | VACUUM parallel workers | |
| operation | Yes | Structured maintenance operation | |
| 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 |