Skip to main content
Glama

postgres_index_suggestions

Generates CREATE INDEX CONCURRENTLY SQL for PostgreSQL table columns, including partial index and ANALYZE reminder. Use when a query filters on an unindexed column or when the analyzer detects a missing index.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYesPostgreSQL table name
columnYesColumn name to index
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description fully bears the burden. It discloses generation of both full and partial index SQL, an ANALYZE reminder, and that it does not verify existing indexes. Could mention that it does not execute the SQL, but the word 'generates' implies only SQL output.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two front-loaded sentences: first delivers primary function, second provides usage context and an important caveat. Every sentence earns its place with zero waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 2 simple string parameters and no output schema, the description is nearly complete. It covers purpose, when to use, and a key limitation. Could briefly note the output is SQL text, but otherwise adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers both parameters with descriptions (100% coverage). The description does not add extra parameter-level details beyond what the schema provides, so baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it generates exact CREATE INDEX CONCURRENTLY SQL for a PostgreSQL table column, including a partial index variant and ANALYZE reminder. It distinguishes from sibling tools like mysql_index_suggestions or suggest_gsi by specifying PostgreSQL and the exact SQL generation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly recommends calling when the analyzer flags a missing index or when writing a query filtering on an unindexed column. Lacks an explicit 'when not to use' statement, but the provided use cases are clear and directional.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sidd27/infrawise'

If you have feedback or need assistance with the MCP directory API, please join our Discord server