Suggest a PostgreSQL index
postgres_index_suggestionsGenerate CREATE INDEX CONCURRENTLY SQL for a PostgreSQL table column when queries filter an unindexed column or analysis flags a missing index; includes partial index variant and ANALYZE reminder.
Instructions
Generates the exact CREATE INDEX CONCURRENTLY SQL for a PostgreSQL table column, including a partial index variant and a post-creation ANALYZE reminder. Call this when the analyzer flags a missing index finding or when writing a query that filters on a column without an existing index. Does not verify whether the index already exists.
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": {
"table": "<table>",
"column": "<column>"
},
"name": "postgres_index_suggestions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | PostgreSQL table name | |
| column | Yes | Column name to index |