min_calls
Minimum call count filter (default: 1)
How to use it
min_calls is exposed by the Pgtuner MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the min_calls tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Pgtuner MCP
pip install pgtuner_mcpOther tools in Pgtuner MCP (39)
Execute query with EXPLAIN ANALYZE (default: true)
Analyze disk I/O read/write patterns, identify hot tables, buffer cache efficiency, and I/O bottlenecks. Supports filtering by analysis type (all, bufferpool, tables, indexes, tempfiles, checkpoints).
Analyze B-tree index bloat using pgstatindex. Shows leaf density, fragmentation, and empty/deleted pages. Also supports GIN and Hash indexes.
Analyze a query's execution plan with EXPLAIN ANALYZE, including automated issue detection
Analyze table bloat using pgstattuple extension. Shows dead tuple counts, free space, and wasted space percentage.
Analyze wait events to identify I/O, lock, or CPU bottlenecks. Focuses on client backend processes.
Include buffer statistics (default: true)
Comprehensive health check with scoring (connections, cache, locks, replication, wraparound, disk, checkpoints)
Run EXPLAIN with hypothetical indexes to test improvements without creating real indexes
Find unused and duplicate indexes that can be safely dropped
Output format - json, text, yaml, xml
Monitor active queries, find long-running transactions and blocked queries. By default excludes system processes.
Get a comprehensive overview of database bloat with top bloated tables/indexes, total reclaimable space, and priority maintenance actions.
AI-powered index recommendations based on query workload analysis
Retrieve slow queries from pgstatstatements with detailed stats (total time, mean time, calls, cache hit ratio). Excludes system catalog queries.
Get detailed table statistics including size, row counts, dead tuples, and access patterns
Test with HypoPG (default: true)
Include actionable recommendations (default: true)
Include TOAST table analysis (default: false)
Name of a specific index to analyze (optional)
Maximum queries to return (default: 10)
Create, list, drop, or reset HypoPG hypothetical indexes. Supports hide/unhide existing indexes.
Maximum recommendations (default: 10)
Only show indexes with bloat above this percentage (default: 20)
Minimum improvement threshold (default: 10%)
Minimum index size in GB to include (default: 5)
Minimum mean (average) execution time in milliseconds filter
Minimum table size in GB to include in schema-wide scan (default: 5)
Track manual VACUUM, VACUUM FULL, and autovacuum operations. Monitor progress percentage, dead tuples collected, index vacuum rounds, and estimated time remaining. Includes autovacuum configuration review and tables needing maintenance.
Sort by meantime, calls, or rows
(required): SQL query to analyze
Review PostgreSQL settings by category with optimization recommendations
Schema name (default: public)
Name of a specific table to analyze (optional)
Focus on specific tables
Number of top bloated objects to show (default: 10)
Use pgstattupleapprox for faster analysis on large tables (default: false)
Include detailed statistics (default: false)
Optional list of specific queries to analyze