Skip to main content
Glama

PostgreSQL-Performance-Tuner-Mcp

analyze_wait_events

Identify PostgreSQL performance bottlenecks by analyzing wait events for locks, I/O, CPU usage, client communication, and extension delays to detect resource contention and saturation issues.

Instructions

Analyze PostgreSQL wait events to identify bottlenecks.

Wait events indicate what processes are waiting for:

  • Lock: Waiting for locks on tables/rows

  • IO: Waiting for disk I/O

  • CPU: Waiting for CPU time

  • Client: Waiting for client communication

  • Extension: Waiting in extension code

This helps identify:

  • I/O bottlenecks

  • Lock contention patterns

  • Resource saturation

Input Schema

NameRequiredDescriptionDefault
active_onlyNoOnly include active (running) queries

Input Schema (JSON Schema)

{ "properties": { "active_only": { "default": true, "description": "Only include active (running) queries", "type": "boolean" } }, "required": [], "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