reindex
Rebuild PostgreSQL index, table, or schema storage in place with optional CONCURRENTLY, and preview changes using dry-run before committing. No undo.
Instructions
[WRITE][risk=medium] REINDEX an index/table/schema (rebuild in place, no undo).
Rebuilds physical index storage; there is no inverse. Pass dry_run=True to
preview.
Args:
target_name: The index/table/schema name to reindex.
kind: INDEX, TABLE, or SCHEMA (default INDEX).
concurrently: Rebuild with CONCURRENTLY.
dry_run: If True, preview without rebuilding.
target: Target name from config; omit for the default.
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": {
"target_name": "<target_name>"
},
"name": "reindex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | INDEX | |
| target | No | ||
| dry_run | No | ||
| target_name | Yes | ||
| concurrently | No |