工具 API
prepare_ query_ tuning
Analyze a slow query on a temporary branch and return a tuning_id. Apply suggested SQL with run_sql on that branch, re-run explain_sql_statement there, then complete_query_tuning with the tuning_id (not the branch id) — apply_changes true if they accept, omit it or pass false if they reject, so the temporary branch is deleted. Do not use prepare_database_migration.
调用信息
- 工具标识
- mcp-server-neon.prepare_query_tuning
- 服务提供方
- Neon
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
sql必填The SQL statement to analyze and tune
database_name必填The name of the database to execute the query against
project_idThe 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.
role_nameThe name of the role to connect with. If not provided, the default role (usually "neondb_owner") will be used.