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>

devOAuth1 credits

Call information

Tool slug
mcp-server-neon.list_slow_queries
Provider
Neon
Average response
0 ms
Calls in 7 days
0

Input parameters

project_id

The 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_id

An optional ID of the branch. If not provided the default branch is used.

database_name

The name of the database. If not provided, the default neondb or first available database is used.

compute_id

The ID of the compute/endpoint. If not provided, the read-write compute associated with the branch will be used.

limit

Maximum number of slow queries to return

min_execution_time

Minimum execution time in milliseconds to consider a query as slow