Skip to main content
Glama
README.md873 B
# PostgreSQL Explain Tools This module provides tools for analyzing PostgreSQL query execution plans. ## Tools ### ExplainPlanTool Provides methods for generating different types of EXPLAIN plans. ## Usage The explain tool is integrated into the PostgreSQL MCP server and can be used through the MCP API via the function: - `explain_query` This function accepts parameters to control the behavior: - `sql` - The SQL query to explain (required) - `analyze` - When true, executes the query to get real statistics (default: false) - `hypothetical_indexes` - Optional list of indexes to simulate without creating them ## Benefits - **Query Understanding**: Helps understand how PostgreSQL executes queries - **Performance Analysis**: Identifies bottlenecks and optimization opportunities - **Index Testing**: Tests hypothetical indexes without actually creating them

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/crystaldba/postgres-mcp'

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