Skip to main content
Glama

PostgreSQL-Performance-Tuner-Mcp

manage_hypothetical_indexes

Test PostgreSQL query performance by creating hypothetical indexes in memory to evaluate potential improvements without building physical indexes.

Instructions

Manage HypoPG hypothetical indexes for testing.

HypoPG allows you to create "hypothetical" indexes that exist only in memory and can be used to test query plans without the overhead of creating real indexes.

Actions:

  • create: Create a new hypothetical index

  • list: List all current hypothetical indexes

  • drop: Drop a specific hypothetical index

  • reset: Drop all hypothetical indexes

  • estimate_size: Estimate the size of a hypothetical index

This is useful for:

  • Testing if an index would improve a query

  • Comparing different index strategies

  • Estimating index storage requirements

Input Schema

NameRequiredDescriptionDefault
actionYesAction to perform
tableNoTable name (required for create, estimate_size)
columnsNoColumn names for the index (required for create, estimate_size)
index_typeNoType of index to createbtree
uniqueNoWhether the index should be unique
index_idNoIndex OID (required for drop)

Input Schema (JSON Schema)

{ "properties": { "action": { "description": "Action to perform", "enum": [ "create", "list", "drop", "reset", "estimate_size", "check" ], "type": "string" }, "columns": { "description": "Column names for the index (required for create, estimate_size)", "items": { "type": "string" }, "type": "array" }, "index_id": { "description": "Index OID (required for drop)", "type": "integer" }, "index_type": { "default": "btree", "description": "Type of index to create", "enum": [ "btree", "hash", "gin", "gist", "brin" ], "type": "string" }, "table": { "description": "Table name (required for create, estimate_size)", "type": "string" }, "unique": { "default": false, "description": "Whether the index should be unique", "type": "boolean" } }, "required": [ "action" ], "type": "object" }

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/isdaniel/pgtuner-mcp'

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