工具 API

explain_sql_statement

Generate the execution plan for a SQL statement. When `analyze` is true, PostgreSQL executes the statement and any side effects. Use `analyze: false` to inspect a statement without executing it. Never analyze potentially destructive SQL autonomously. Do not use when you need query results (use `run_sql` instead).

devOAuth1 积分

调用信息

工具标识
mcp-server-neon.explain_sql_statement
服务提供方
Neon
平均响应
0 ms
近 7 天调用
0

输入参数

sql必填

The SQL statement to analyze

project_id

The ID of the project to execute the query against. 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 to execute the query against. 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.

analyze

Whether to execute the statement with EXPLAIN ANALYZE. Defaults to false because execution may cause side effects.