工具 API
run_ sql_ transaction
Execute multiple SQL statements as one transaction. If a prior step created a temporary branch, pass that branch_id. NEVER run destructive SQL autonomously; always ask the user first.
调用信息
- 工具标识
- mcp-server-neon.run_sql_transaction
- 服务提供方
- Neon
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
sql_statements必填The SQL statements to execute
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.
branch_idAn optional ID of the branch to execute the query against. 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.
role_nameAn optional Postgres role to log in as. The server resolves its credentials internally and never returns them. If not provided, the database owner is used. On a connection pinned to a role, omit this or pass that role.
compute_idAn optional ID of the compute/endpoint to run on. If not provided, the read-write compute of the branch is used.