Manage Lakebase branches
manage_lakebase_branchManage Lakebase autoscaling branches and compute endpoints: create, update, delete, undelete, and list copy-on-write Postgres branches with point-in-time branching.
Instructions
Manage Lakebase autoscaling branches (copy-on-write Postgres branches) and their compute endpoints.
Branch actions: list (project), get, create (project, branch id, optional source_branch, source_branch_time for point-in-time, source_branch_lsn, spec), update (spec, e.g. {"is_protected": true}), delete (soft unless purge=true; the default branch is refused unless allow_default_branch=true), undelete. Endpoint actions: list_endpoints, get_endpoint, create_endpoint (endpoint id + spec with endpoint_type), update_endpoint (e.g. CU limits, {"disabled": true}), delete_endpoint. get_operation polls a long-running operation. Writes return status 'pending' unless wait_seconds.
Safety classification: list, get, list_endpoints, get_endpoint, get_operation = READ_ONLY; create, update, undelete, create_endpoint, update_endpoint = WRITE; delete, delete_endpoint = DESTRUCTIVE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | BranchSpec fields (create/update, e.g. {"ttl": "86400s"}, {"no_expiry": true}, {"is_protected": true}) or EndpointSpec fields (create_endpoint/update_endpoint, e.g. {"endpoint_type": "ENDPOINT_TYPE_READ_WRITE", "autoscaling_limit_min_cu": 0.5, "autoscaling_limit_max_cu": 2}). Unknown fields are rejected. | |
| purge | No | delete: hard delete (irreversible). Default is a soft delete restorable with action='undelete'. | |
| action | Yes | Branch lifecycle, plus compute endpoints (*_endpoint) of a branch. | |
| branch | No | Branch id or full name 'projects/<p>/branches/<b>'. | |
| confirm | No | Set to true ONLY after the user has reviewed the plan returned by a previous call with status 'confirmation_required'. Required for destructive/security-sensitive actions. | |
| dry_run | No | If true, validate and return the planned change without executing it. | |
| project | No | Project id or 'projects/<id>'. | |
| endpoint | No | Endpoint id or full endpoint name. | |
| page_size | No | Max items to return (server caps this). | |
| page_token | No | next_page_token from a previous response. | |
| update_mask | No | Comma-separated field paths to update. Default: derived from the keys of `spec` (autoscaling resources use 'spec.<field>' paths). | |
| show_deleted | No | list: include soft-deleted branches. | |
| wait_seconds | No | Seconds to wait for a long-running create/update/delete to finish. 0 (default) returns immediately with status 'pending'. Capped by DBX_MCP_MAX_WAIT_SECONDS and the tool timeout. | |
| source_branch | No | create: parent branch id/name to branch from (default: the project's default branch). | |
| operation_name | No | Autoscaling operation name returned by a previous call (for action='get_operation'). | |
| source_branch_lsn | No | create: Postgres LSN of the parent branch to branch from. | |
| source_branch_time | No | create: point in time of the parent branch (RFC3339, e.g. 2025-01-31T12:00:00Z). | |
| allow_default_branch | No | delete: permit deleting the project's default branch (refused otherwise). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| page | No | ||
| plan | No | ||
| tool | Yes | ||
| action | No | ||
| safety | No | ||
| status | No | success | |
| summary | Yes | ||
| warnings | No | ||
| next_steps | No | Suggested follow-up calls. | |
| request_id | No |