TOOL API
list_ slow_ queries
<use_case> Use this tool to list slow queries from your Neon database. </use_case> <important_notes> This tool queries the pg_stat_statements extension to find queries that are taking longer than expected. The tool will return queries sorted by execution time, with the slowest queries first. </important_notes>
Call information
- Tool slug
- mcp-server-neon.list_slow_queries
- Provider
- Neon
- Average response
- 0 ms
- Calls in 7 days
- 0
Input parameters
project_idThe ID of the project to list slow queries from. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
branch_idAn optional ID of the branch. If not provided the default branch is used.
database_nameThe name of the database. If not provided, the default neondb or first available database is used.
compute_idThe ID of the compute/endpoint. If not provided, the read-write compute associated with the branch will be used.
limitMaximum number of slow queries to return
min_execution_timeMinimum execution time in milliseconds to consider a query as slow