工具 API
complete_ query_ tuning
Apply or discard query-tuning changes and delete the temporary branch. NEVER run autonomously. Before calling, apply suggested SQL with run_sql on the temporary branch and re-run explain_sql_statement. Pass the tuning_id from prepare_query_tuning, not the branch id, plus temporary_branch_id. Set apply_changes true to apply; omitting it discards. Call this even when the user rejects the changes. Do not use prepare_database_migration.
调用信息
- 工具标识
- mcp-server-neon.complete_query_tuning
- 服务提供方
- Neon
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
suggested_sql_statements必填The SQL DDL statements to execute to improve performance. These statements are the result of the prior steps, for example creating additional indexes.
apply_changesWhether to apply the suggested changes to the main branch
tuning_id必填The ID of the tuning to complete. This is NOT the branch ID. Remember this ID from the prior step using tool prepare_query_tuning.
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 you have used a specific role in prepare_query_tuning you MUST pass the same role again to this tool. If not provided, the default role (usually "neondb_owner") will be used.
should_delete_temporary_branchWhether to delete the temporary branch after tuning
temporary_branch_id必填The ID of the temporary branch that needs to be deleted after tuning.
branch_idThe ID or name of the branch that receives the changes. If not provided, the default (main) branch will be used.