TOOL API

reset_from_parent

Resets a branch to match its parent's current state, effectively discarding all changes made on the branch. To avoid data loss, provide a name to preserve the changes in a new branch using `preserveUnderName` parameter. This tool is commonly used to create fresh development branches from updated parent branch, undo experimental changes, or restore a branch to a known good state. Warning: This operation will discard all changes if `preserveUnderName` is not provided.

devOAuth1 credits

Call information

Tool slug
mcp-server-neon.reset_from_parent
Provider
Neon
Average response
0 ms
Calls in 7 days
0

Input parameters

project_id

Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.

branch_idrequired

string

preserve_under_name

Name under which to save the current branch before the reset. Required when the branch has children; those children move to the new branch.