{
  "server": "neon",
  "url": "https://mcp.neon.tech/mcp",
  "date": "2026-11-09",
  "protocolVersion": "2026-07-28",
  "serverInfo": {
    "name": "mcp-server-neon",
    "title": "Neon",
    "description": "Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.",
    "version": "2.0.0",
    "websiteUrl": "https://neon.com/docs/ai/neon-mcp-server",
    "icons": [
      {
        "src": "https://neon.com/brand/neon-logomark-light-color.svg",
        "mimeType": "image/svg+xml",
        "sizes": [
          "any"
        ],
        "theme": "light"
      },
      {
        "src": "https://neon.com/brand/neon-logomark-dark-color.svg",
        "mimeType": "image/svg+xml",
        "sizes": [
          "any"
        ],
        "theme": "dark"
      }
    ]
  },
  "listChangedDeclared": false,
  "toolCount": 139,
  "outputSchemaCoveragePct": 0,
  "tools": [
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Add an OAuth provider"
      },
      "description": "Adds a social login provider (Google, GitHub, Microsoft, Vercel, Apple) that users sign in with to the branch's Neon Auth integration. Takes the provider `id` and optionally `client_id`, `client_secret` and, for Microsoft, `microsoft_tenant_id`. Microsoft and Apple have no shared app, so they need your own credentials; for Apple, `client_id` is the Services ID, `client_secret` is the `.p8` private key, and `apple_team_id` and `apple_key_id` are required. This is not the OAuth Provider plugin that makes Neon Auth an OAuth 2.1 authorization server; for that use `get_auth_oauth_server` and `update_auth_oauth_server`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "apple_key_id": {
            "description": "Key ID of the Sign in with Apple private key supplied in `client_secret`.",
            "type": "string"
          },
          "apple_team_id": {
            "description": "Apple Developer Team ID.",
            "type": "string"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "client_id": {
            "description": "The client ID issued by the OAuth provider for your application.",
            "type": "string"
          },
          "client_secret": {
            "description": "OAuth client secret for the provider.",
            "type": "string"
          },
          "id": {
            "description": "OAuth provider to configure for Neon Auth.",
            "enum": [
              "google",
              "github",
              "microsoft",
              "vercel",
              "apple"
            ],
            "type": "string"
          },
          "microsoft_tenant_id": {
            "description": "Tenant ID for the Microsoft OAuth provider.",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "id"
        ],
        "type": "object"
      },
      "name": "add_auth_oauth_provider",
      "title": "Add an OAuth provider"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Add domain to redirect_uri whitelist"
      },
      "description": "Adds a domain to the redirect URI whitelist for the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "auth_provider": {
            "description": "Authentication provider integrated with this Neon Auth configuration.",
            "enum": [
              "mock",
              "stack",
              "better_auth"
            ],
            "type": "string"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "domain": {
            "description": "URI to add to the redirect URI allowlist for the auth provider.",
            "format": "uri",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "domain",
          "auth_provider"
        ],
        "type": "object"
      },
      "name": "add_auth_trusted_domain",
      "title": "Add domain to redirect_uri whitelist"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Compare database schema"
      },
      "description": "Compare one database's SQL schema on a branch to another. `database_name` is required. Omit `base_branch_id` to compare against the parent; it is a branch id (`br-...`), not a name. Pass `lsn`, `timestamp`, `base_lsn`, or `base_timestamp` only for a point-in-time comparison.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "base_branch_id": {
            "description": "The branch ID to compare the schema with",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "base_lsn": {
            "description": "The Log Sequence Number (LSN) for the base branch schema",
            "type": "string"
          },
          "base_timestamp": {
            "description": "The point in time for the base branch schema",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "Name of the database for which the schema is retrieved",
            "type": "string"
          },
          "lsn": {
            "description": "The Log Sequence Number (LSN) for which the schema is retrieved",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "timestamp": {
            "description": "The point in time for which the schema is retrieved",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "database_name"
        ],
        "type": "object"
      },
      "name": "compare_database_schema",
      "title": "Compare database schema"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Complete Database Migration"
      },
      "description": "Apply or discard a prepared migration and delete the temporary branch. NEVER run autonomously; always ask the user first. Pass migration_id, migration_sql, database_name, project_id, temporary_branch_id, and parent_branch_id from prepare_database_migration. Set apply_changes false to discard; omitting it applies the migration.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "apply_changes": {
            "default": true,
            "description": "Whether to apply the migration. Set to false to just delete the temp branch without applying.",
            "type": "boolean"
          },
          "database_name": {
            "description": "The database name. Pass the exact value from prepare_database_migration.",
            "type": "string"
          },
          "migration_id": {
            "description": "The migration ID from prepare_database_migration.",
            "type": "string"
          },
          "migration_sql": {
            "description": "The SQL statements to apply. Pass the exact value from prepare_database_migration.",
            "type": "string"
          },
          "parent_branch_id": {
            "description": "The parent branch ID where migration will be applied.",
            "type": "string"
          },
          "project_id": {
            "description": "The project ID. Pass the exact value from prepare_database_migration. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.",
            "type": "string"
          },
          "temporary_branch_id": {
            "description": "The temporary branch ID to delete after migration.",
            "type": "string"
          }
        },
        "required": [
          "migration_id",
          "migration_sql",
          "database_name",
          "temporary_branch_id",
          "parent_branch_id"
        ],
        "type": "object"
      },
      "name": "complete_database_migration",
      "title": "Complete Database Migration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Complete Query Tuning"
      },
      "description": "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.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "apply_changes": {
            "default": false,
            "description": "Whether to apply the suggested changes to the main branch",
            "type": "boolean"
          },
          "branch_id": {
            "description": "The ID or name of the branch that receives the changes. If not provided, the default (main) branch will be used.",
            "type": "string"
          },
          "database_name": {
            "description": "The name of the database to execute the query against",
            "type": "string"
          },
          "project_id": {
            "description": "The 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.",
            "type": "string"
          },
          "role_name": {
            "description": "The 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.",
            "type": "string"
          },
          "should_delete_temporary_branch": {
            "default": true,
            "description": "Whether to delete the temporary branch after tuning",
            "type": "boolean"
          },
          "suggested_sql_statements": {
            "description": "The SQL DDL statements to execute to improve performance. These statements are the result of the prior steps, for example creating additional indexes.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "temporary_branch_id": {
            "description": "The ID of the temporary branch that needs to be deleted after tuning.",
            "type": "string"
          },
          "tuning_id": {
            "description": "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.",
            "type": "string"
          }
        },
        "required": [
          "suggested_sql_statements",
          "tuning_id",
          "database_name",
          "temporary_branch_id"
        ],
        "type": "object"
      },
      "name": "complete_query_tuning",
      "title": "Complete Query Tuning"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve projects count"
      },
      "description": "Returns the number of active projects you can access in an organization, without listing them. `org_id` is optional: organization API keys use their organization; personal API keys auto-select when unambiguous and otherwise return the IDs to choose from.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "org_id": {
            "description": "Count projects in the organization with this `org_id`.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "count_projects",
      "title": "Retrieve projects count"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create an OAuth client"
      },
      "description": "Registers an OAuth client with the branch's Neon Auth OAuth server. A confidential client returns `client_secret` only once: show it to the user and tell them to store it. Every entry in `resources` must already be configured on the OAuth server (see `get_auth_oauth_server`) or be its MCP resource. `type` cannot be changed later.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "name": {
            "description": "Display name of the client.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "redirect_uris": {
            "description": "Redirect URIs the client may use.",
            "items": {
              "type": "string"
            },
            "maxItems": 10,
            "minItems": 1,
            "type": "array"
          },
          "resources": {
            "description": "Identifiers of the protected resources to link the client to.",
            "items": {
              "type": "string"
            },
            "maxItems": 11,
            "minItems": 1,
            "type": "array"
          },
          "skip_consent": {
            "description": "Whether to skip the consent prompt for this client.",
            "type": "boolean"
          },
          "type": {
            "description": "Confidential clients authenticate with a client secret.",
            "enum": [
              "confidential",
              "public"
            ],
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "name",
          "redirect_uris",
          "type",
          "resources"
        ],
        "type": "object"
      },
      "name": "create_auth_oauth_client",
      "title": "Create an OAuth client"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create new auth user"
      },
      "description": "Creates a new user in the Neon Auth user directory for the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "email": {
            "description": "Email address of the new Neon Auth user to create.",
            "format": "email",
            "maxLength": 256,
            "minLength": 1,
            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
            "type": "string"
          },
          "name": {
            "description": "Display name for the new user.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "email"
        ],
        "type": "object"
      },
      "name": "create_auth_user",
      "title": "Create new auth user"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create branch"
      },
      "description": "Creates a branch with a read-write compute and waits until it is ready. Pass `no_compute: true` to skip the endpoint. Does not return a connection string; call `get_connection_string` with the project and branch id. Copies the parent at HEAD; point-in-time restore is `restore_snapshot`.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "compute": {
            "additionalProperties": false,
            "description": "Autoscaling limits and suspend timeout for the read-write endpoint.",
            "properties": {
              "max_cu": {
                "minimum": 0.25,
                "type": "number"
              },
              "min_cu": {
                "minimum": 0.25,
                "type": "number"
              },
              "suspend_timeout_seconds": {
                "description": "Duration of inactivity in seconds after which the compute endpoint is automatically suspended.",
                "maximum": 604800,
                "minimum": -1,
                "type": "integer"
              }
            },
            "type": "object"
          },
          "name": {
            "description": "The branch name",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "no_compute": {
            "description": "Skip the read-write endpoint. Default false. Cannot be combined with compute.",
            "type": "boolean"
          },
          "parent_id": {
            "description": "The `branch_id` of the parent branch.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "create_branch",
      "title": "Create branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Issue a scoped credential on the branch"
      },
      "description": "Issues a new scoped service credential anchored to the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "name": {
            "description": "Free-form customer label for the credential.",
            "maxLength": 256,
            "type": "string"
          },
          "principal_type": {
            "description": "Principal type for the credential.",
            "enum": [
              "user"
            ],
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "scopes": {
            "description": "Capabilities to grant. The credential may only perform actions in these scopes.",
            "items": {
              "description": "A single capability you may request when issuing a credential.",
              "enum": [
                "storage:read",
                "storage:write",
                "ai_gateway:invoke",
                "functions:invoke"
              ],
              "type": "string"
            },
            "maxItems": 16,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "branch_id",
          "scopes",
          "principal_type"
        ],
        "type": "object"
      },
      "name": "create_credential",
      "title": "Issue a scoped credential on the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create database"
      },
      "description": "Creates a database in the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "name": {
            "description": "Name of the database to create.",
            "type": "string"
          },
          "owner_name": {
            "description": "The name of the role that owns the database",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "name",
          "owner_name"
        ],
        "type": "object"
      },
      "name": "create_postgres_database",
      "title": "Create database"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create compute endpoint"
      },
      "description": "Creates a compute endpoint on a branch. Does not return a connection string; call `get_connection_string`.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "autoscaling_limit_max_cu": {
            "description": "The maximum number of Compute Units.",
            "minimum": 0.25,
            "type": "number"
          },
          "autoscaling_limit_min_cu": {
            "description": "The minimum number of Compute Units.",
            "minimum": 0.25,
            "type": "number"
          },
          "branch_id": {
            "description": "The ID of the branch the compute endpoint will be associated with",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "disabled": {
            "description": "Whether to restrict connections to the compute endpoint.",
            "type": "boolean"
          },
          "name": {
            "description": "Optional name of the compute endpoint",
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "passwordless_access": {
            "description": "NOT YET IMPLEMENTED.",
            "type": "boolean"
          },
          "pooler_enabled": {
            "description": "Deprecated. To enable connection pooling, append `-pooler` to the endpoint ID in the connection string.",
            "type": "boolean"
          },
          "pooler_mode": {
            "description": "Deprecated. The connection pooler mode.",
            "enum": [
              "transaction"
            ],
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "provisioner": {
            "description": "Compute provisioner.",
            "type": "string"
          },
          "region_id": {
            "description": "The region where the compute endpoint will be created.",
            "type": "string"
          },
          "settings": {
            "additionalProperties": false,
            "description": "A collection of settings for a compute endpoint",
            "properties": {
              "pg_settings": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "A raw representation of Postgres settings",
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "pgbouncer_settings": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Deprecated. PgBouncer settings for the compute endpoint.",
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "preload_libraries": {
                "additionalProperties": false,
                "description": "The shared libraries to preload into the project's compute instances.",
                "properties": {
                  "enabled_libraries": {
                    "description": "Names of shared preload libraries to enable for the project.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "use_defaults": {
                    "description": "When true, the project's preload libraries include the platform default set in addition to any libraries listed in `enabled_libraries`.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "suspend_timeout_seconds": {
            "description": "Scale-to-zero idle timeout, in seconds, before the compute suspends.",
            "maximum": 604800,
            "minimum": -1,
            "type": "integer"
          },
          "type": {
            "description": "Compute endpoint type.",
            "enum": [
              "read_only",
              "read_write"
            ],
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "type"
        ],
        "type": "object"
      },
      "name": "create_postgres_endpoint",
      "title": "Create compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create role"
      },
      "description": "Create a Postgres role on a branch and return it with its password. access defaults to admin: the role joins neon_superuser, so it can read and write every database, create databases and roles, and bypass row-level security, and it cannot be narrowed later. For a least-privilege credential pass access read_only or read_write, scoped to database_name and schemas. Scoped roles are created with SQL as the database owner and cover tables that owner owns, now and later.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "access": {
            "description": "What the role may do. Default admin: the role joins neon_superuser. read_only: SELECT. read_write: SELECT, INSERT, UPDATE, DELETE and sequence use. Scoped roles get these grants on top of whatever PUBLIC already has in the database.",
            "enum": [
              "admin",
              "read_only",
              "read_write"
            ],
            "type": "string"
          },
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "Database a read_only or read_write role is scoped to. Optional when the branch has exactly one database.",
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "description": "The role name.",
            "type": "string"
          },
          "no_login": {
            "description": "Whether to create a role that cannot login.",
            "type": "boolean"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "schemas": {
            "description": "Schemas a read_only or read_write role can use. Default [\"public\"].",
            "items": {
              "minLength": 1,
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "branch_id",
          "name"
        ],
        "type": "object"
      },
      "name": "create_postgres_role",
      "title": "Create role"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create project"
      },
      "description": "Creates a Neon project and waits until the default compute is ready. `org_id` is optional: organization API keys use their organization; personal API keys auto-select when unambiguous and otherwise return the IDs to choose from. Does not return a connection string; call `get_connection_string` with the project id.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "autoscaling_limit_max_cu": {
            "description": "Deprecated. Use `default_endpoint_settings.autoscaling_limit_max_cu` instead.",
            "minimum": 0.25,
            "type": "number"
          },
          "autoscaling_limit_min_cu": {
            "description": "Deprecated. Use `default_endpoint_settings.autoscaling_limit_min_cu` instead.",
            "minimum": 0.25,
            "type": "number"
          },
          "branch": {
            "additionalProperties": false,
            "description": "Configuration for the initial branch created with the project.",
            "properties": {
              "annotations": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Arbitrary key-value metadata to attach to the branch.",
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "database_name": {
                "description": "The database name.",
                "type": "string"
              },
              "name": {
                "description": "The default branch name.",
                "maxLength": 256,
                "minLength": 1,
                "type": "string"
              },
              "role_name": {
                "description": "The role name.",
                "type": "string"
              }
            },
            "type": "object"
          },
          "default_endpoint_settings": {
            "additionalProperties": false,
            "description": "A collection of settings for a Neon endpoint",
            "properties": {
              "autoscaling_limit_max_cu": {
                "description": "Default maximum number of Compute Units for endpoints created under this account.",
                "minimum": 0.25,
                "type": "number"
              },
              "autoscaling_limit_min_cu": {
                "description": "Minimum number of Compute Units for this endpoint.",
                "minimum": 0.25,
                "type": "number"
              },
              "pg_settings": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "A raw representation of Postgres settings",
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "pgbouncer_settings": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Deprecated. Use the endpoint-level connection pooler configuration instead.",
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "suspend_timeout_seconds": {
                "description": "Scale-to-zero idle timeout, in seconds, before the compute suspends.",
                "maximum": 604800,
                "minimum": -1,
                "type": "integer"
              }
            },
            "type": "object"
          },
          "history_retention_seconds": {
            "description": "History window (point-in-time restore range) for all branches, in seconds.",
            "maximum": 2592000,
            "minimum": 0,
            "type": "integer"
          },
          "name": {
            "description": "The project name.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "org_id": {
            "description": "ID of the organization that will own the project.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "pg_version": {
            "description": "The major Postgres version number.",
            "maximum": 19,
            "minimum": 14,
            "type": "integer"
          },
          "provisioner": {
            "description": "Compute provisioner.",
            "type": "string"
          },
          "realtime": {
            "additionalProperties": false,
            "description": "Enable Realtime for the default branch with these options.",
            "properties": {
              "allowed_origins": {
                "description": "The browser origins allowed to connect, each `http` or `https` with a host and optional port and no path.",
                "items": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "pattern": "^(\\*|https?:\\/\\/[^\\/?#@,*\\s]+)$",
                  "type": "string"
                },
                "maxItems": 16,
                "type": "array"
              }
            },
            "type": "object"
          },
          "region_id": {
            "description": "The region identifier.",
            "type": "string"
          },
          "settings": {
            "additionalProperties": false,
            "description": "Project-level settings applied at creation.",
            "properties": {
              "allowed_ips": {
                "additionalProperties": false,
                "description": "A list of IP addresses that are allowed to connect to the compute endpoint.",
                "properties": {
                  "ips": {
                    "description": "A list of IP addresses that are allowed to connect to the endpoint.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "protected_branches_only": {
                    "description": "If true, the list will be applied only to protected branches.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "audit_log_level": {
                "enum": [
                  "base",
                  "extended",
                  "full"
                ],
                "type": "string"
              },
              "block_public_connections": {
                "description": "When set, connections from the public internet are disallowed.",
                "type": "boolean"
              },
              "block_vpc_connections": {
                "description": "When set, connections using VPC endpoints are disallowed.",
                "type": "boolean"
              },
              "enable_logical_replication": {
                "description": "Sets wal_level=logical for all compute endpoints in this project.",
                "type": "boolean"
              },
              "hipaa": {
                "description": "Enables HIPAA compliance mode for the project, including audit logging.",
                "type": "boolean"
              },
              "maintenance_window": {
                "additionalProperties": false,
                "description": "A maintenance window is a time period during which Neon may perform maintenance on the project's infrastructure.",
                "properties": {
                  "end_time": {
                    "description": "End time of the maintenance window, in the format of \"HH:MM\".",
                    "type": "string"
                  },
                  "start_time": {
                    "description": "Start time of the maintenance window, in the format of \"HH:MM\".",
                    "type": "string"
                  },
                  "weekdays": {
                    "description": "A list of weekdays when the maintenance window is active.",
                    "items": {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "weekdays",
                  "start_time",
                  "end_time"
                ],
                "type": "object"
              },
              "preload_libraries": {
                "additionalProperties": false,
                "description": "The shared libraries to preload into the project's compute instances.",
                "properties": {
                  "enabled_libraries": {
                    "description": "Names of shared preload libraries to enable for the project.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "use_defaults": {
                    "description": "When true, the project's preload libraries include the platform default set in addition to any libraries listed in `enabled_libraries`.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "quota": {
                "additionalProperties": false,
                "description": "Per-project consumption quotas.",
                "properties": {
                  "active_time_seconds": {
                    "description": "The total amount of wall-clock time allowed to be spent by the project's compute endpoints.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "compute_time_seconds": {
                    "description": "The total amount of CPU seconds allowed to be spent by the project's compute endpoints.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "data_transfer_bytes": {
                    "description": "Total amount of data transferred from all of a project's branches using the proxy.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "logical_size_bytes": {
                    "description": "Limit on the logical size of every project's branch.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "written_data_bytes": {
                    "description": "Total amount of data written to all of a project's branches.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "store_passwords": {
            "description": "Whether or not passwords are stored for roles in the Neon project.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "name": "create_project",
      "title": "Create project"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create snapshot"
      },
      "description": "Creates a snapshot from the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "expires_at": {
            "description": "The time at which the snapshot will be automatically deleted.",
            "type": "string"
          },
          "lsn": {
            "description": "The target Log Sequence Number (LSN) to take the snapshot from.",
            "type": "string"
          },
          "name": {
            "description": "A name for the snapshot.",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "timestamp": {
            "description": "The target timestamp for the snapshot.",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "create_snapshot",
      "title": "Create snapshot"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false,
        "title": "Create a bucket on the branch"
      },
      "description": "Creates a new branchable object storage bucket on the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "access_level": {
            "description": "Access level for the bucket.",
            "enum": [
              "private",
              "public_read"
            ],
            "type": "string"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "name": {
            "description": "The bucket name.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "name"
        ],
        "type": "object"
      },
      "name": "create_storage_bucket",
      "title": "Create a bucket on the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create a trigger"
      },
      "description": "Creates a trigger for a Function visible on the branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "body": {
            "description": "Trigger creation payload discriminated by `type`.",
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "enabled": {
                    "description": "Whether future occurrences should be scheduled.",
                    "type": "boolean"
                  },
                  "function_path": {
                    "description": "Path passed to the target Function.",
                    "maxLength": 2048,
                    "minLength": 1,
                    "type": "string"
                  },
                  "function_slug": {
                    "description": "The branch-local Function slug to invoke.",
                    "pattern": "^[a-z0-9]{1,20}$",
                    "type": "string"
                  },
                  "name": {
                    "description": "Human-readable name, unique among triggers visible on the branch.",
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  },
                  "schedule": {
                    "additionalProperties": false,
                    "description": "A numeric five-field cron schedule interpreted in UTC.",
                    "properties": {
                      "cron": {
                        "description": "Numeric five-field cron expression (minute through day-of-week), interpreted in UTC.",
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "cron"
                    ],
                    "type": "object"
                  },
                  "type": {
                    "const": "schedule",
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "function_slug",
                  "name",
                  "schedule"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "enabled": {
                    "description": "Whether successful matching uploads should invoke the Function.",
                    "type": "boolean"
                  },
                  "function_path": {
                    "description": "Path passed to the target Function.",
                    "maxLength": 2048,
                    "minLength": 1,
                    "type": "string"
                  },
                  "function_slug": {
                    "description": "The branch-local Function slug to invoke.",
                    "pattern": "^[a-z0-9]{1,20}$",
                    "type": "string"
                  },
                  "name": {
                    "description": "Human-readable name, unique among triggers visible on the branch.",
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  },
                  "storage_object_created": {
                    "additionalProperties": false,
                    "description": "Matches successful uploads to one exact bucket and, when configured, an object-key prefix.",
                    "properties": {
                      "bucket_name": {
                        "description": "The exact object-storage bucket name to watch.",
                        "maxLength": 63,
                        "minLength": 3,
                        "type": "string"
                      },
                      "prefix": {
                        "description": "Optional object-key prefix of at most 1024 UTF-8 bytes.",
                        "maxLength": 1024,
                        "minLength": 1,
                        "pattern": "^[^\\x00-\\x1f\\x7f-\\x9f]+$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "bucket_name"
                    ],
                    "type": "object"
                  },
                  "type": {
                    "const": "storage_object_created",
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "function_slug",
                  "name",
                  "storage_object_created"
                ],
                "type": "object"
              }
            ]
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "body"
        ],
        "type": "object"
      },
      "name": "create_trigger",
      "title": "Create a trigger"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete an OAuth client"
      },
      "description": "Deletes an OAuth client from the Neon Auth OAuth server. Irreversible. Tokens already issued to the client are not revoked.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "client_id": {
            "description": "The OAuth client ID",
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9]+$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "client_id"
        ],
        "type": "object"
      },
      "name": "delete_auth_oauth_client",
      "title": "Delete an OAuth client"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete OAuth provider"
      },
      "description": "Deletes a social login provider (Google, GitHub, Microsoft, Vercel, Apple) from the branch's Neon Auth integration. This is not the OAuth Provider plugin that makes Neon Auth an OAuth 2.1 authorization server; for that use `get_auth_oauth_server` and `update_auth_oauth_server`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "oauth_provider_id": {
            "description": "The OAuth provider ID",
            "enum": [
              "google",
              "github",
              "microsoft",
              "vercel",
              "apple"
            ],
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "oauth_provider_id"
        ],
        "type": "object"
      },
      "name": "delete_auth_oauth_provider",
      "title": "Delete OAuth provider"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete domain from redirect_uri whitelist"
      },
      "description": "Removes a domain from the redirect URI whitelist for the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "auth_provider": {
            "description": "Authentication provider integrated with this Neon Auth configuration.",
            "enum": [
              "mock",
              "stack",
              "better_auth"
            ],
            "type": "string"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "domains": {
            "description": "Domain names to remove from the redirect URI whitelist for the specified auth provider.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "domain": {
                  "description": "URI to remove from the redirect URI whitelist.",
                  "format": "uri",
                  "type": "string"
                }
              },
              "required": [
                "domain"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "auth_provider",
          "domains"
        ],
        "type": "object"
      },
      "name": "delete_auth_trusted_domain",
      "title": "Delete domain from redirect_uri whitelist"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete auth user"
      },
      "description": "Deletes the specified user from the Neon Auth user directory for the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "auth_user_id": {
            "description": "The Neon user ID",
            "type": "string"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "auth_user_id"
        ],
        "type": "object"
      },
      "name": "delete_auth_user",
      "title": "Delete auth user"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete branch"
      },
      "description": "Delete a branch and all its data. NEVER run autonomously; always ask the user first. For the whole project, use `delete_project`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "delete_branch",
      "title": "Delete branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete Neon Data API"
      },
      "description": "Deletes the Neon Data API for the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "database_name"
        ],
        "type": "object"
      },
      "name": "delete_data_api",
      "title": "Delete Neon Data API"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete a function on the branch"
      },
      "description": "Deletes the function identified by its slug.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "slug": {
            "description": "The function slug",
            "pattern": "^[a-z0-9]{1,20}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "slug"
        ],
        "type": "object"
      },
      "name": "delete_function",
      "title": "Delete a function on the branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete a custom domain from a branch"
      },
      "description": "Removes a custom domain registered on the branch and stops routing it.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "domain": {
            "description": "The registered custom domain (case-insensitive).",
            "maxLength": 254,
            "minLength": 3,
            "pattern": "^[A-Za-z0-9.-]+$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "domain"
        ],
        "type": "object"
      },
      "name": "delete_functions_custom_domain",
      "title": "Delete a custom domain from a branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete database"
      },
      "description": "Deletes the specified database from the branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "database_name"
        ],
        "type": "object"
      },
      "name": "delete_postgres_database",
      "title": "Delete database"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete compute endpoint"
      },
      "description": "Deletes the specified compute endpoint.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "endpoint_id": {
            "description": "The endpoint ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "endpoint_id"
        ],
        "type": "object"
      },
      "name": "delete_postgres_endpoint",
      "title": "Delete compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete role"
      },
      "description": "Deletes the specified Postgres role from the branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "role_name": {
            "description": "The role name",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "role_name"
        ],
        "type": "object"
      },
      "name": "delete_postgres_role",
      "title": "Delete role"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete project"
      },
      "description": "Delete a Neon project and all its data. NEVER run autonomously; always ask the user first. For a single branch, use `delete_branch`.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "The Neon project ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "project_id"
        ],
        "type": "object"
      },
      "name": "delete_project",
      "title": "Delete project"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete snapshot"
      },
      "description": "Deletes the specified snapshot.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "snapshot_id": {
            "description": "The snapshot ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "snapshot_id"
        ],
        "type": "object"
      },
      "name": "delete_snapshot",
      "title": "Delete snapshot"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete a bucket on the branch"
      },
      "description": "Deletes the named bucket from the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "bucket_name": {
            "description": "The bucket name",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "bucket_name"
        ],
        "type": "object"
      },
      "name": "delete_storage_bucket",
      "title": "Delete a bucket on the branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete an object in a bucket"
      },
      "description": "Deletes the named object from the bucket on the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "bucket_name": {
            "description": "The bucket name",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "object_key": {
            "description": "The object key.",
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "bucket_name",
          "object_key"
        ],
        "type": "object"
      },
      "name": "delete_storage_object",
      "title": "Delete an object in a bucket"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete every object under a key prefix (folder) in a bucket"
      },
      "description": "Soft-deletes every object on the specified branch whose key starts with `prefix`, in a single call.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "bucket_name": {
            "description": "The bucket name",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "prefix": {
            "description": "The key prefix (folder) to delete.",
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "bucket_name",
          "prefix"
        ],
        "type": "object"
      },
      "name": "delete_storage_objects_by_prefix",
      "title": "Delete every object under a key prefix (folder) in a bucket"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete a trigger"
      },
      "description": "Deletes a branch-local trigger or writes a branch-local tombstone for an inherited trigger so it does not reappear.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "trigger_id": {
            "description": "The opaque, project-wide trigger ID",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.\\-]{0,127}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "trigger_id"
        ],
        "type": "object"
      },
      "name": "delete_trigger",
      "title": "Delete a trigger"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Deploy code to a function"
      },
      "description": "Creates a deployment for the function. Supply at least one of `zip`, `environment`, or `runtime`; omitted fields inherit the latest version. The first deployment must include `zip`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "environment": {
            "description": "Optional JSON object (a string-to-string map) of environment variables for the deployment, e.g. {\"KEY\":\"VALUE\"}.",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "runtime": {
            "description": "The Node.js runtime for the deployment.",
            "enum": [
              "nodejs24"
            ],
            "type": "string"
          },
          "slug": {
            "description": "The function slug",
            "pattern": "^[a-z0-9]{1,20}$",
            "type": "string"
          },
          "zip": {
            "contentEncoding": "base64",
            "description": "Base64-encoded ZIP of the function source. Omit to reuse the latest bundle; required for the first deployment.",
            "format": "base64",
            "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "slug"
        ],
        "type": "object"
      },
      "name": "deploy_function",
      "title": "Deploy code to a function"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Describe Branch"
      },
      "description": "Get a tree view of all objects in a branch, including databases, schemas, tables, views, and functions. Do not use when you only need table names (use `get_database_tables` instead) or column detail (use `describe_table_schema` instead).",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "An ID of the branch to describe",
            "type": "string"
          },
          "database_name": {
            "description": "The name of the database. If not provided, the default neondb or first available database is used.",
            "type": "string"
          },
          "project_id": {
            "description": "The ID of the project. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "describe_branch",
      "title": "Describe Branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve project details"
      },
      "description": "Retrieves the project record (settings, compute, usage). Call `list_branches` for branches.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "describe_project",
      "title": "Retrieve project details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Describe Table Schema"
      },
      "description": "Get column definitions, data types, and constraints for a specific table. Do not use when you need all tables in a database (use `get_database_tables` instead).",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "An optional ID of the branch to execute the query against. If not provided the default branch is used.",
            "type": "string"
          },
          "database_name": {
            "description": "The name of the database. If not provided, the default neondb or first available database is used.",
            "type": "string"
          },
          "project_id": {
            "description": "The 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.",
            "type": "string"
          },
          "table_name": {
            "description": "The table name, optionally schema-qualified (for example, crm.contacts)",
            "type": "string"
          }
        },
        "required": [
          "table_name"
        ],
        "type": "object"
      },
      "name": "describe_table_schema",
      "title": "Describe Table Schema"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Disable Neon Auth for the branch"
      },
      "description": "Disables the Neon Auth integration for the specified branch, removing the connection to the authentication provider.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "delete_data": {
            "description": "If true, deletes the `neon_auth` schema from the database",
            "type": "boolean"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "disable_auth",
      "title": "Disable Neon Auth for the branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Disable Realtime"
      },
      "description": "Disables Realtime for the branch and discards its shared secret.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "disable_realtime",
      "title": "Disable Realtime"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Enable Realtime"
      },
      "description": "Enables Realtime for the branch, or applies new options to an enabled branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "allowed_origins": {
            "description": "The browser origins allowed to connect, each `http` or `https` with a host and optional port and no path.",
            "items": {
              "maxLength": 2048,
              "minLength": 1,
              "pattern": "^(\\*|https?:\\/\\/[^\\/?#@,*\\s]+)$",
              "type": "string"
            },
            "maxItems": 16,
            "type": "array"
          },
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "enable_realtime",
      "title": "Enable Realtime"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Explain SQL Statement"
      },
      "description": "Generate the execution plan for a SQL statement. When `analyze` is true, PostgreSQL executes the statement and any side effects. Use `analyze: false` to inspect a statement without executing it. Never analyze potentially destructive SQL autonomously. Do not use when you need query results (use `run_sql` instead).",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "analyze": {
            "default": false,
            "description": "Whether to execute the statement with EXPLAIN ANALYZE. Defaults to false because execution may cause side effects.",
            "type": "boolean"
          },
          "branch_id": {
            "description": "An optional ID of the branch to execute the query against. If not provided the default branch is used.",
            "type": "string"
          },
          "database_name": {
            "description": "The name of the database. If not provided, the default neondb or first available database is used.",
            "type": "string"
          },
          "project_id": {
            "description": "The 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.",
            "type": "string"
          },
          "sql": {
            "description": "The SQL statement to analyze",
            "type": "string"
          }
        },
        "required": [
          "sql"
        ],
        "type": "object"
      },
      "name": "explain_sql_statement",
      "title": "Explain SQL Statement"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Fetch"
      },
      "description": "Fetch detailed information about a specific organization, project, or branch using the ID returned by the `search` tool.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The ID returned by the search tool to fetch detailed information about the entity",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "name": "fetch",
      "title": "Fetch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Finalize branch restore from snapshot"
      },
      "description": "Finalize a branch created with `restore_snapshot` and `finalize: false`: reassign computes (this restarts them) and swap names so it replaces the original branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "name": {
            "description": "Name for the replaced branch.",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "finalize_branch_restore",
      "title": "Finalize branch restore from snapshot"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get branch AI Gateway endpoint"
      },
      "description": "Returns the AI Gateway endpoint host for the specified branch, used to render code-snippet base URLs.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "get_ai_gateway",
      "title": "Get branch AI Gateway endpoint"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve Neon Auth details for the branch"
      },
      "description": "Retrieves the Neon Auth integration details for the specified branch, including the auth provider type and integration status.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "get_auth",
      "title": "Retrieve Neon Auth details for the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve an OAuth client"
      },
      "description": "Returns an OAuth client registered with the branch's Neon Auth OAuth server. Not a social login provider.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "client_id": {
            "description": "The OAuth client ID",
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9]+$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "client_id"
        ],
        "type": "object"
      },
      "name": "get_auth_oauth_client",
      "title": "Retrieve an OAuth client"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve OAuth provider plugin configuration"
      },
      "description": "Retrieves how Neon Auth acts as an OAuth 2.1 authorization server for the branch, including for MCP servers. This is Better Auth's OAuth Provider plugin (API plugin `oauth_provider`), not social login; for providers such as GitHub or Google call `list_auth_oauth_providers`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "get_auth_oauth_server",
      "title": "Retrieve OAuth provider plugin configuration"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve branch details"
      },
      "description": "Retrieves information about the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "get_branch",
      "title": "Retrieve branch details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve branch consumption metrics"
      },
      "description": "Returns consumption metrics per branch for the 1 to 100 projects in `project_ids`, grouped by billing period. Pass `branch_ids` to narrow it. Requires a usage-based Launch, Scale, Agent, or Enterprise plan; other plans return HTTP 403. `metrics` is required, one or more of `compute_unit_seconds`, `root_branch_bytes_month`, `child_branch_bytes_month`, `instant_restore_bytes_month`, `public_network_transfer_bytes`, `private_network_transfer_bytes`, `functions_active_capacity_microseconds`, `functions_waiting_capacity_microseconds`, `functions_invocations`, `functions_egress_bytes`; any other name returns HTTP 400. `extra_branches_month`, `snapshot_storage_bytes_month` are per-project only, on `get_project_consumption`. `org_id` is required; call `list_organizations` for it. `from` and `to` are UTC date-times rounded to `granularity`: `hourly` reaches back 168 hours, `daily` 60 days, `monthly` one year. Returns every page. Pass `limit` to cap how many. There is no `cursor` argument.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_ids": {
            "description": "Optional branch IDs to filter the response (up to 100).",
            "items": {
              "pattern": "^([a-z0-9-]{1,60}(,[a-z0-9-]{1,60}){0,99})?$",
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 0,
            "type": "array"
          },
          "from": {
            "description": "Specify the start `date-time` for the consumption period.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "granularity": {
            "description": "Specify the granularity of consumption metrics.",
            "enum": [
              "hourly",
              "daily",
              "monthly"
            ],
            "type": "string"
          },
          "limit": {
            "description": "Maximum number of branches per page.",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "metrics": {
            "description": "Required. List the metrics to return.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "org_id": {
            "description": "Organization ID.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_ids": {
            "description": "Project IDs to include (required, 1 to 100).",
            "items": {
              "pattern": "^([a-z0-9-]{1,60}(,[a-z0-9-]{1,60}){0,99})?$",
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "type": "array"
          },
          "to": {
            "description": "Specify the end `date-time` for the consumption period.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "required": [
          "project_ids",
          "from",
          "to",
          "granularity",
          "org_id",
          "metrics"
        ],
        "type": "object"
      },
      "name": "get_branch_consumption",
      "title": "Retrieve branch consumption metrics"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get Connection String"
      },
      "description": "Get a PostgreSQL connection string for a Neon database. The branch must have a compute endpoint. `create_project` and `create_branch` do not return one; call this after they succeed. Branch, compute, and database are optional and resolved automatically if not specified; `project_id` follows the connection scope. Requires write access: the connection string carries a privileged role password, so it is unavailable in read-only mode. A read-only caller who needs a DATABASE_URL must copy it from https://console.neon.tech manually.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The ID or name of the branch. If not provided, the default branch will be used.",
            "type": "string"
          },
          "compute_id": {
            "description": "The ID of the compute/endpoint. If not provided, the read-write compute associated with the branch will be used.",
            "type": "string"
          },
          "database_name": {
            "description": "The name of the database. If not provided, the default neondb or first available database is used.",
            "type": "string"
          },
          "project_id": {
            "description": "The ID of the project. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.",
            "type": "string"
          },
          "role_name": {
            "description": "The name of the role to connect with. If not provided, the database owner name will be used.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "get_connection_string",
      "title": "Get Connection String"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve Neon Data API configuration"
      },
      "description": "Retrieves the Neon Data API configuration for the specified branch, including endpoint URL, enabled state, and database settings.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "database_name"
        ],
        "type": "object"
      },
      "name": "get_data_api",
      "title": "Retrieve Neon Data API configuration"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get Database Tables"
      },
      "description": "List all tables in a Neon database. Do not use when you need column-level detail for a specific table (use `describe_table_schema` instead).",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "An optional ID of the branch. If not provided the default branch is used.",
            "type": "string"
          },
          "database_name": {
            "description": "The name of the database. If not provided, the default neondb or first available database is used.",
            "type": "string"
          },
          "project_id": {
            "description": "The ID of the project. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "get_database_tables",
      "title": "Get Database Tables"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get default branch"
      },
      "description": "Resolve the project's default branch by the default flag, not by name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "get_default_branch",
      "title": "Get default branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": true,
        "title": "Get Documentation Page"
      },
      "description": "Fetch one neon.com page as markdown. Pass the slug of a search_docs hit (for example docs/guides/prisma).",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "slug": {
            "description": "The slug of a hit returned by search_docs, e.g. 'docs/guides/prisma' or 'postgresql/tutorial/inner-join'.",
            "type": "string"
          }
        },
        "required": [
          "slug"
        ],
        "type": "object"
      },
      "name": "get_doc",
      "title": "Get Documentation Page"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get function details"
      },
      "description": "Returns the function identified by its slug.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "slug": {
            "description": "The function slug",
            "pattern": "^[a-z0-9]{1,20}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "slug"
        ],
        "type": "object"
      },
      "name": "get_function",
      "title": "Get function details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get Neon Auth configuration"
      },
      "description": "Read Neon Auth config for a branch: trusted origins, localhost access, email and password, OAuth providers, email provider, the organization, magic link, and phone number plugins, and the webhook. OAuth and SMTP secrets are redacted as \"***redacted***\". Requires provision_neon_auth first.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "Branch ID. If omitted, the project default branch is used (same as provision_neon_auth).",
            "type": "string"
          },
          "project_id": {
            "description": "Neon 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.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "get_neon_auth_config",
      "title": "Get Neon Auth configuration"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve operation details"
      },
      "description": "Retrieves details for the specified operation.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "operation_id": {
            "description": "The operation ID",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "operation_id"
        ],
        "type": "object"
      },
      "name": "get_operation",
      "title": "Retrieve operation details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve database details"
      },
      "description": "Retrieves information about the specified database.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "database_name"
        ],
        "type": "object"
      },
      "name": "get_postgres_database",
      "title": "Retrieve database details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve compute endpoint details"
      },
      "description": "Retrieves information about the specified compute endpoint.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "endpoint_id": {
            "description": "The endpoint ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "endpoint_id"
        ],
        "type": "object"
      },
      "name": "get_postgres_endpoint",
      "title": "Retrieve compute endpoint details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve role details"
      },
      "description": "Retrieves details about the specified role.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "role_name": {
            "description": "The role name",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "role_name"
        ],
        "type": "object"
      },
      "name": "get_postgres_role",
      "title": "Retrieve role details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve project consumption metrics"
      },
      "description": "Returns consumption metrics per project in an organization, grouped by billing period. Omitting `project_ids` returns every project with history in the organization, including deleted ones; pass `project_ids` to narrow it. Requires a Launch, Scale, Agent, Business, or Enterprise plan; other plans return HTTP 403. `metrics` is required, one or more of `compute_unit_seconds`, `root_branch_bytes_month`, `child_branch_bytes_month`, `instant_restore_bytes_month`, `public_network_transfer_bytes`, `private_network_transfer_bytes`, `functions_active_capacity_microseconds`, `functions_waiting_capacity_microseconds`, `functions_invocations`, `functions_egress_bytes`, `extra_branches_month`, `snapshot_storage_bytes_month`; unknown names return no data instead of an error. `org_id` is required; call `list_organizations` for it. `from` and `to` are UTC date-times rounded to `granularity`: `hourly` reaches back 168 hours, `daily` 60 days, `monthly` one year. Returns every page. Pass `limit` to cap how many. There is no `cursor` argument. For per-branch numbers, call `get_branch_consumption`.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "from": {
            "description": "Specify the start `date-time` for the consumption period.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "granularity": {
            "description": "Specify the granularity of consumption metrics.",
            "enum": [
              "hourly",
              "daily",
              "monthly"
            ],
            "type": "string"
          },
          "limit": {
            "description": "Maximum number of projects per page.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "metrics": {
            "description": "Required. List the metrics to return.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "org_id": {
            "description": "Organization ID.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_ids": {
            "description": "Optional project IDs to filter the response (up to 100).",
            "items": {
              "pattern": "^([a-z0-9-]{1,60}(,[a-z0-9-]{1,60}){0,99})?$",
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 0,
            "type": "array"
          },
          "to": {
            "description": "Specify the end `date-time` for the consumption period.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "required": [
          "from",
          "to",
          "granularity",
          "org_id",
          "metrics"
        ],
        "type": "object"
      },
      "name": "get_project_consumption",
      "title": "Retrieve project consumption metrics"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve Realtime state"
      },
      "description": "Retrieves whether Realtime is enabled for the branch, whether a change is still being applied, and, once provisioned, its invocation URL and allowed origins.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "get_realtime",
      "title": "Retrieve Realtime state"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve the Realtime shared secret"
      },
      "description": "Retrieves the secret the application backend issues Realtime tokens with. Requires write access: the secret lets its holder issue Realtime tokens for the branch, so it is unavailable in read-only mode. Call `enable_realtime` first.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "get_realtime_secret",
      "title": "Retrieve the Realtime shared secret"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve backup schedule"
      },
      "description": "Returns the backup schedule for the specified branch, including the configured snapshot frequencies.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "get_snapshot_schedule",
      "title": "Retrieve backup schedule"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get branch object storage state"
      },
      "description": "Returns whether branchable object storage is usable for the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "get_storage",
      "title": "Get branch object storage state"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get a trigger"
      },
      "description": "Returns the trigger visible on the branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "trigger_id": {
            "description": "The opaque, project-wide trigger ID",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.\\-]{0,127}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "trigger_id"
        ],
        "type": "object"
      },
      "name": "get_trigger",
      "title": "Get a trigger"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Inspect Database"
      },
      "description": "Run one read-only neon inspect db check (pick `check` from the input schema). Not for arbitrary SQL (`run_sql`), one statement's plan (`explain_sql_statement`), or applying indexes (`prepare_query_tuning`). Omit `database_name` to cover every database; some checks are compute-wide. If a check needs an extension, the tool names `CREATE EXTENSION`; ask before running it.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "An optional ID of the branch. If not provided the default branch is used.",
            "type": "string"
          },
          "check": {
            "description": "Which diagnostic to run:\n`table-sizes`: Size of each table (including TOAST), largest first (pg_table_size)\n`index-sizes`: Size of each index, largest first (pg_relation_size)\n`unused-indexes`: Non-unique indexes with fewer than 50 scans — candidates for removal (pg_stat_user_indexes)\n`seq-scans`: Number of sequential scans recorded against each table (pg_stat_user_tables)\n`long-running-queries`: Queries running longer than 5 minutes (pg_stat_activity)\n`stalled-queries`: Active queries running longer than 30 seconds with parallel-worker grouping, waits, and blockers, oldest query group first (compute-wide)\n`locks`: Locks held with the acquiring query and its age (pg_locks + pg_stat_activity)\n`outliers`: The 25 queries with the highest cumulative execution time since statistics were last reset (needs pg_stat_statements)\n`calls`: The 25 most frequently executed queries since statistics were last reset (needs pg_stat_statements)\n`lfc-hit-rate`: Local File Cache hit rate (compute-wide, needs neon extension)\n`working-set`: Estimated working set vs LFC size (compute-wide, needs neon extension)\n`vacuum-stats`: Autovacuum status per table: last (auto)vacuum, dead tuples, threshold\n`bloat`: Estimated bloat for the 25 most bloated tables (statistical estimate, no extension needed)\n`replication-slots`: Replication slots (compute-wide): kind, status, client, restart/confirmed-flush LSNs, and lag (pg_replication_slots + pg_stat_replication)\n`subscriptions`: Per-table logical replication progress on this subscriber (pg_subscription_rel)",
            "enum": [
              "table-sizes",
              "index-sizes",
              "unused-indexes",
              "seq-scans",
              "long-running-queries",
              "stalled-queries",
              "locks",
              "outliers",
              "calls",
              "lfc-hit-rate",
              "working-set",
              "vacuum-stats",
              "bloat",
              "replication-slots",
              "subscriptions"
            ],
            "type": "string"
          },
          "compute_id": {
            "description": "The ID of the compute/endpoint. If not provided, the read-write compute associated with the branch will be used.",
            "type": "string"
          },
          "database_name": {
            "description": "For a database-scoped check, the database to inspect. Omit to cover every database on the branch. Ranking and SQL row limits stay per database. One failing database fails the whole run. For a compute-wide check, the database to connect through; the check still runs once for the whole compute and the result does not include `databaseName`. The response `limit` applies to the combined rows after that.",
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "default": 50,
            "description": "Maximum number of rows to return from the combined result. Per-database ranking and SQL caps are applied first. The response reports how many rows the check produced and whether they were truncated, so raise this only when `truncated` is true. A few checks are capped in SQL and say so in their description.",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "The ID of the project to inspect. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.",
            "type": "string"
          }
        },
        "required": [
          "check"
        ],
        "type": "object"
      },
      "name": "inspect_database",
      "title": "Inspect Database"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List OAuth clients"
      },
      "description": "Lists the OAuth clients registered with the branch's Neon Auth OAuth server (apps and MCP clients that users authorize). Not social login providers.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_auth_oauth_clients",
      "title": "List OAuth clients"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List OAuth providers for the branch"
      },
      "description": "Lists the social login providers (Google, GitHub, Microsoft, Vercel, Apple) configured for the branch's Neon Auth integration, which users sign in with. This is not the OAuth Provider plugin that makes Neon Auth an OAuth 2.1 authorization server; for that use `get_auth_oauth_server` and `update_auth_oauth_server`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_auth_oauth_providers",
      "title": "List OAuth providers for the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List domains in redirect_uri whitelist"
      },
      "description": "Lists the trusted domains in the redirect URI whitelist for the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_auth_trusted_domains",
      "title": "List domains in redirect_uri whitelist"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List branch endpoints"
      },
      "description": "Retrieves a list of compute endpoints for the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_branch_computes",
      "title": "List branch endpoints"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List branches"
      },
      "description": "Retrieves a list of branches for the specified project. Returns every page. Pass limit to cap how many.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "include_deleted": {
            "description": "If true, return recoverable deleted branches too (soft-deleted within the recovery window).",
            "type": "boolean"
          },
          "limit": {
            "description": "The maximum number of records to be returned in the response",
            "maximum": 10000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "search": {
            "description": "Search by branch `name` or `id`.",
            "type": "string"
          },
          "sort_by": {
            "description": "Sort the branches by sort_field.",
            "enum": [
              "name",
              "created_at",
              "updated_at"
            ],
            "type": "string"
          },
          "sort_order": {
            "description": "Defines the sorting order of entities.",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list_branches",
      "title": "List branches"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List credentials on the branch"
      },
      "description": "Returns metadata for customer-issued credentials on the branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_credentials",
      "title": "List credentials on the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List functions on the branch"
      },
      "description": "Lists functions on the specified branch. Returns every page. Pass limit to cap how many.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "limit": {
            "description": "Specify a value from 1 to 1000 to limit number of functions in the response",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_functions",
      "title": "List functions on the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List the custom domains on a branch"
      },
      "description": "Lists all custom domains registered on the branch, across every target entity. Returns every page. Pass limit to cap how many.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "limit": {
            "description": "Specify a value from 1 to 1000 to limit number of domains in the response",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_functions_custom_domains",
      "title": "List the custom domains on a branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List branch log field values"
      },
      "description": "Lists distinct values for a low-cardinality log field. Call `list_log_fields` first for `field_name`; a field the branch has never emitted returns `unknown_field`. Pass `since` or `start_time`, not both; default is the previous six hours, max seven days. Private beta.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "end_time": {
            "description": "Exclusive end of the lookup window.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "field_name": {
            "description": "The log field whose distinct values should be returned.",
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "Maximum number of distinct values to return.",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "since": {
            "description": "Length of the lookup window, ending at `end_time` or at the current time when `end_time` is omitted.",
            "pattern": "^[0-9]{1,6}(ms|s|m|h|d)$",
            "type": "string"
          },
          "source": {
            "description": "Only consider records emitted by this Neon service.",
            "enum": [
              "function",
              "storage",
              "pg_endpoint"
            ],
            "type": "string"
          },
          "start_time": {
            "description": "Inclusive beginning of the lookup window.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "field_name"
        ],
        "type": "object"
      },
      "name": "list_log_field_values",
      "title": "List branch log field values"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List branch log fields"
      },
      "description": "Lists the low-cardinality log fields observed on this branch. Call `list_log_field_values` with `field_name` to list distinct values.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_log_fields",
      "title": "List branch log fields"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List operations"
      },
      "description": "Lists operations for a project. Omitting `limit` returns every remaining page. There is no `cursor` argument.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "limit": {
            "description": "Specify a value from 1 to 1000 to limit number of operations in the response",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list_operations",
      "title": "List operations"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List Organizations"
      },
      "description": "List all organizations the current user belongs to. Supports optional `search` parameter to filter by name or ID.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "search": {
            "description": "Search organizations by name or ID. You can specify partial name or ID values to filter results.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list_organizations",
      "title": "List Organizations"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List databases"
      },
      "description": "Retrieves a list of databases for the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_postgres_databases",
      "title": "List databases"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List compute endpoints"
      },
      "description": "Retrieves a list of compute endpoints for the specified project.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list_postgres_endpoints",
      "title": "List compute endpoints"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List roles"
      },
      "description": "Retrieves a list of Postgres roles from the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_postgres_roles",
      "title": "List roles"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List org members and their project roles"
      },
      "description": "Lists organization members and their per-project roles for an org-owned project. Returns every page. Pass limit to cap how many.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "limit": {
            "description": "The maximum number of members to return in the response",
            "maximum": 500,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list_project_members",
      "title": "List org members and their project roles"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List project access"
      },
      "description": "Retrieves details about users who have access to the project, including the permission `id`, the granted-to email address, and the date project access was granted.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list_project_permissions",
      "title": "List project access"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List projects"
      },
      "description": "List Neon projects you own. Returns every page. Pass limit to cap how many. There is no `cursor` argument. `org_id` is optional: organization API keys use their organization; personal API keys auto-select when unambiguous and otherwise return the IDs to choose from.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "limit": {
            "description": "Specify a value from 1 to 400 to limit number of projects in the response.",
            "maximum": 400,
            "minimum": 1,
            "type": "integer"
          },
          "org_id": {
            "description": "Search for projects by `org_id`.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "recoverable": {
            "description": "Show only deleted projects within the recovery window.",
            "type": "boolean"
          },
          "search": {
            "description": "Search by project `name` or `id`.",
            "type": "string"
          },
          "timeout": {
            "description": "Specify an explicit timeout in milliseconds to limit response delay.",
            "maximum": 30000,
            "minimum": 100,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "name": "list_projects",
      "title": "List projects"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List regions"
      },
      "description": "Lists Neon regions available to the authenticated account.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "name": "list_regions",
      "title": "List regions"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List Slow Queries"
      },
      "description": "List queries from pg_stat_statements by execution time, slowest first. For sizes, indexes, locks, cache, bloat, or replication use inspect_database.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "An optional ID of the branch. If not provided the default branch is used.",
            "type": "string"
          },
          "compute_id": {
            "description": "The ID of the compute/endpoint. If not provided, the read-write compute associated with the branch will be used.",
            "type": "string"
          },
          "database_name": {
            "description": "The name of the database. If not provided, the default neondb or first available database is used.",
            "type": "string"
          },
          "limit": {
            "default": 10,
            "description": "Maximum number of slow queries to return",
            "type": "number"
          },
          "min_execution_time": {
            "default": 1000,
            "description": "Minimum execution time in milliseconds to consider a query as slow",
            "type": "number"
          },
          "project_id": {
            "description": "The ID of the project to list slow queries from. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list_slow_queries",
      "title": "List Slow Queries"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List project snapshots"
      },
      "description": "Lists the snapshots for the specified project.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list_snapshots",
      "title": "List project snapshots"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List buckets on the branch"
      },
      "description": "Lists branchable object storage buckets visible on the specified branch, including those inherited from ancestor branches.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_storage_buckets",
      "title": "List buckets on the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List objects in a bucket"
      },
      "description": "Lists objects visible in the named bucket on the specified branch, including those inherited from ancestor branches. Returns every page. Pass limit to cap how many.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "bucket_name": {
            "description": "The bucket name",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "delimiter": {
            "description": "Collapse keys sharing a common prefix up to the first occurrence of this delimiter (typically `/`) into the `folders` array.",
            "type": "string"
          },
          "limit": {
            "description": "Maximum number of items (objects + folders) to return.",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "prefix": {
            "description": "Only list objects whose key starts with this prefix.",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "bucket_name"
        ],
        "type": "object"
      },
      "name": "list_storage_objects",
      "title": "List objects in a bucket"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List triggers on the branch"
      },
      "description": "Lists the complete project-bounded set of triggers visible on the branch, ordered by `trigger_id`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "list_triggers",
      "title": "List triggers on the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Prepare Database Migration"
      },
      "description": "Apply a schema change on a temporary branch and return a migration_id. Test with run_sql on that branch, ask the user, then complete_database_migration — even if they reject, so the temporary branch is deleted. Pass every field from the prepare response.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "database_name": {
            "description": "The name of the database. If not provided, the default neondb or first available database is used.",
            "type": "string"
          },
          "migration_sql": {
            "description": "The SQL to execute to create the migration",
            "type": "string"
          },
          "project_id": {
            "description": "The 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.",
            "type": "string"
          }
        },
        "required": [
          "migration_sql"
        ],
        "type": "object"
      },
      "name": "prepare_database_migration",
      "title": "Prepare Database Migration"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Prepare Query Tuning"
      },
      "description": "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.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "database_name": {
            "description": "The name of the database to execute the query against",
            "type": "string"
          },
          "project_id": {
            "description": "The 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.",
            "type": "string"
          },
          "role_name": {
            "description": "The name of the role to connect with. If not provided, the default role (usually \"neondb_owner\") will be used.",
            "type": "string"
          },
          "sql": {
            "description": "The SQL statement to analyze and tune",
            "type": "string"
          }
        },
        "required": [
          "sql",
          "database_name"
        ],
        "type": "object"
      },
      "name": "prepare_query_tuning",
      "title": "Prepare Query Tuning"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Presign an upload or download for an object in a bucket"
      },
      "description": "Returns a presigned URL that transfers bytes directly to or from the object's bucket on the specified branch, without the caller ever handling S3 credentials.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "bucket_name": {
            "description": "The bucket name",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "content_type": {
            "description": "The `Content-Type` to bind into the signed request.",
            "type": "string"
          },
          "expires_in_seconds": {
            "description": "How long the presigned URL stays valid, in seconds.",
            "maximum": 604800,
            "minimum": 1,
            "type": "integer"
          },
          "object_key": {
            "description": "The object key.",
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "operation": {
            "description": "The transfer direction.",
            "enum": [
              "upload",
              "download"
            ],
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "bucket_name",
          "object_key",
          "operation"
        ],
        "type": "object"
      },
      "name": "presign_storage_object",
      "title": "Presign an upload or download for an object in a bucket"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Enable Neon Auth for the branch"
      },
      "description": "Enables Neon Auth for the specified branch by connecting it to an authentication provider.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "auth_provider": {
            "description": "Authentication provider integrated with this Neon Auth configuration.",
            "enum": [
              "mock",
              "stack",
              "better_auth"
            ],
            "type": "string"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "Name of the database to enable Neon Auth on.",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "auth_provider"
        ],
        "type": "object"
      },
      "name": "provision_neon_auth",
      "title": "Enable Neon Auth for the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create Neon Data API"
      },
      "description": "Creates a new instance of Neon Data API in the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "add_default_grants": {
            "description": "Grant all permissions to the tables in the public schema to authenticated users",
            "type": "boolean"
          },
          "auth_provider": {
            "description": "Authentication provider for the Neon Data API.",
            "enum": [
              "neon_auth",
              "external"
            ],
            "type": "string"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "jwks_url": {
            "description": "URL of the JWKS endpoint used to verify JWTs for this Data API.",
            "format": "uri",
            "type": "string"
          },
          "jwt_audience": {
            "description": "Expected `aud` claim in incoming JWTs.",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "provider_name": {
            "description": "Display name for the authentication provider.",
            "type": "string"
          },
          "settings": {
            "additionalProperties": false,
            "description": "Auth and schema configuration for the Data API.",
            "properties": {
              "db_aggregates_enabled": {
                "description": "Enable aggregates feature",
                "type": "boolean"
              },
              "db_anon_role": {
                "description": "Database role to use for anonymous requests",
                "type": "string"
              },
              "db_extra_search_path": {
                "description": "Extra schemas to add to the search path",
                "type": "string"
              },
              "db_max_rows": {
                "description": "Hard limit on the number of rows returned in a single Data API response.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "db_schemas": {
                "description": "List of schemas to expose via the API.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "jwt_cache_max_lifetime": {
                "description": "Maximum lifetime of the Data API's JWT cache, in seconds.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "jwt_role_claim_key": {
                "description": "JWT claim key to use for role extraction",
                "type": "string"
              },
              "openapi_mode": {
                "description": "OpenAPI specification mode (ignore-privileges, disabled)",
                "type": "string"
              },
              "server_cors_allowed_origins": {
                "description": "CORS allowed origins",
                "type": "string"
              },
              "server_timing_enabled": {
                "description": "When enabled, the Data API adds `Server-Timing` headers to each response showing database execution and internal processing time.",
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "skip_auth_schema": {
            "description": "Skip creating the auth schema and RLS functions",
            "type": "boolean"
          }
        },
        "required": [
          "branch_id",
          "database_name"
        ],
        "type": "object"
      },
      "name": "provision_neon_data_api",
      "title": "Create Neon Data API"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Query branch logs"
      },
      "description": "Returns logs for a branch. Pass `limit` to cap how many. There is no `cursor` argument. Filters combine with AND. Pass `logql` instead of structured filters, not with them. Give the window as `since` or `start_time`, not both; default is the previous hour, max seven days; `end_time` is exclusive. Private beta; a branch without logs access returns HTTP 404 with reason \"telemetry_not_enabled\".\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "body_contains": {
            "description": "Match records whose rendered `message` contains this case-sensitive substring.",
            "minLength": 1,
            "type": "string"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "end_time": {
            "description": "Exclusive end of the query window.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "limit": {
            "description": "Maximum number of log records to return per page.",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "logql": {
            "description": "Escape hatch for selections the structured filters cannot express: a raw LogQL expression, evaluated against this branch's log stream.",
            "minLength": 1,
            "type": "string"
          },
          "minimum_severity": {
            "description": "An OpenTelemetry severity level.",
            "enum": [
              "trace",
              "debug",
              "info",
              "warn",
              "error",
              "fatal"
            ],
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "scope_name": {
            "description": "Match the OpenTelemetry instrumentation scope name exactly.",
            "minLength": 1,
            "type": "string"
          },
          "service_name": {
            "description": "Match the OpenTelemetry `service.name` resource attribute exactly.",
            "minLength": 1,
            "type": "string"
          },
          "severity_text": {
            "description": "Match the OpenTelemetry severity text exactly.",
            "minLength": 1,
            "type": "string"
          },
          "since": {
            "description": "A length of time as a count and a unit, for example `30m`, `6h`, or `7d`.",
            "pattern": "^[0-9]{1,6}(ms|s|m|h|d)$",
            "type": "string"
          },
          "sort_order": {
            "description": "Order matching records by timestamp.",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string"
          },
          "source": {
            "description": "The Neon service that emitted the log record.",
            "enum": [
              "function",
              "storage",
              "pg_endpoint"
            ],
            "type": "string"
          },
          "start_time": {
            "description": "Inclusive beginning of the query window.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "trace_id": {
            "description": "Match records associated with this OpenTelemetry trace ID.",
            "pattern": "^[0-9a-f]{32}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "query_logs",
      "title": "Query branch logs"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Query branch logs (Loki)"
      },
      "description": "Runs a LogQL range query on the branch's Loki-compatible read API and returns Loki's response: `data.result` groups lines by stream labels, and each value is `[nanosecond timestamp string, line]`. Use it for sub-second ordering or stream labels; use `query_logs` for structured filters and one record per line. The source label is `entity_type`; `list_log_fields` and `list_log_field_values` list labels and values. There is no cursor: a result with `limit` lines, or 10,000 (the server's cap, which adds no warning), may be incomplete, so narrow `since` or the selector. Max seven days.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "direction": {
            "description": "backward (default) is newest first.",
            "enum": [
              "forward",
              "backward"
            ],
            "type": "string"
          },
          "end": {
            "description": "Window end as RFC 3339 or Unix nanoseconds. Defaults to now.",
            "type": "string"
          },
          "limit": {
            "description": "Maximum log lines. The server enforces its own cap.",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "query": {
            "description": "LogQL stream selector with optional line filters, e.g. {entity_type=\"function\"} |= \"error\". The source label is entity_type. No parsers, formatting stages, or metric queries.",
            "minLength": 1,
            "type": "string"
          },
          "since": {
            "description": "Lookback as a Go duration such as 30m or 24h, ending at end or now. Defaults to 1h. start takes precedence.",
            "type": "string"
          },
          "start": {
            "description": "Window start as RFC 3339 or Unix nanoseconds.",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "query"
        ],
        "type": "object"
      },
      "name": "query_loki_logs",
      "title": "Query branch logs (Loki)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Recover a deleted project"
      },
      "description": "Recovers a deleted project within the 7-day deletion recovery period.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "recover_project",
      "title": "Recover a deleted project"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Register a custom domain on a branch"
      },
      "description": "Registers a hostname on the branch and routes it to a function. Pass `entity_type: \"function\"` and `entity_id` as the slug from `list_functions`. Point a CNAME at the returned `cname_target`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "domain": {
            "description": "The custom domain to register (for example `dashboard.acme.com`).",
            "maxLength": 254,
            "minLength": 3,
            "type": "string"
          },
          "entity_id": {
            "description": "The target entity's identifier within the branch.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "entity_type": {
            "description": "The kind of branch entity to point the domain at.",
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "domain",
          "entity_type",
          "entity_id"
        ],
        "type": "object"
      },
      "name": "register_functions_custom_domain",
      "title": "Register a custom domain on a branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Reset branch from parent"
      },
      "description": "Reset a branch to its parent's current HEAD. Discards every change the branch has written since it diverged. NEVER run autonomously; always ask the user first. `preserve_under_name` saves the current state first and is required when the branch has children; those children move to the new branch. Point-in-time restore is `restore_snapshot`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "preserve_under_name": {
            "description": "Name under which to save the current branch before the reset. Required when the branch has children; those children move to the new branch.",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "reset_from_parent",
      "title": "Reset branch from parent"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Reset role password"
      },
      "description": "Resets the password for the specified Postgres role.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "role_name": {
            "description": "The role name",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "role_name"
        ],
        "type": "object"
      },
      "name": "reset_postgres_role_password",
      "title": "Reset role password"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Restart compute endpoint"
      },
      "description": "Restarts the specified compute endpoint by immediately suspending it and then starting it again.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "endpoint_id": {
            "description": "The endpoint ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "endpoint_id"
        ],
        "type": "object"
      },
      "name": "restart_postgres_endpoint",
      "title": "Restart compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Restore snapshot"
      },
      "description": "Restore a snapshot onto a new or existing branch. The call waits until the branch is ready. Pass `target_branch_id` to restore onto an existing branch; omit it to create one. Pass `finalize: false` then call `finalize_branch_restore` to swap names later.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "finalize": {
            "description": "Finalize immediately (move computes onto the restored branch). Defaults to true when restoring as a new branch and false when restoring onto an existing branch.",
            "type": "boolean"
          },
          "name": {
            "description": "A name for the newly restored branch.",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "snapshot_id": {
            "description": "The snapshot ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "target_branch_id": {
            "description": "ID of the branch to restore the snapshot into.",
            "type": "string"
          }
        },
        "required": [
          "snapshot_id"
        ],
        "type": "object"
      },
      "name": "restore_snapshot",
      "title": "Restore snapshot"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Revoke a credential"
      },
      "description": "Soft-deletes the credential.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "token_id": {
            "description": "The opaque credential id (e.g. nak_live_\u003c32hex\u003e).",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "token_id"
        ],
        "type": "object"
      },
      "name": "revoke_credential",
      "title": "Revoke a credential"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Rotate an OAuth client secret"
      },
      "description": "Generates a new secret for a confidential client of the Neon Auth OAuth server. The old secret stops working immediately. The new `client_secret` is shown only once: show it to the user and tell them to store it.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "client_id": {
            "description": "The OAuth client ID",
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9]+$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "client_id"
        ],
        "type": "object"
      },
      "name": "rotate_auth_oauth_client_secret",
      "title": "Rotate an OAuth client secret"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Rotate a credential's secrets"
      },
      "description": "Replaces the secret material on an existing scoped credential in place.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "token_id": {
            "description": "The opaque credential id (e.g. nak_live_\u003c32hex\u003e).",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "token_id"
        ],
        "type": "object"
      },
      "name": "rotate_credential",
      "title": "Rotate a credential's secrets"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Rotate the Realtime shared secret"
      },
      "description": "Replaces the branch's Realtime shared secret and waits until the change is applied. NEVER run autonomously; always ask the user first. Call `get_realtime_secret` afterwards and update the application backend with the new value.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "rotate_realtime_secret",
      "title": "Rotate the Realtime shared secret"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Run SQL"
      },
      "description": "Execute one SQL statement on a Neon database. If a prior step created a temporary branch, pass that branch_id. NEVER run destructive SQL autonomously; always ask the user first.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "An optional ID of the branch to execute the query against. If not provided the default branch is used.",
            "type": "string"
          },
          "compute_id": {
            "description": "An optional ID of the compute/endpoint to run on. If not provided, the read-write compute of the branch is used.",
            "type": "string"
          },
          "database_name": {
            "description": "The name of the database. If not provided, the default neondb or first available database is used.",
            "type": "string"
          },
          "max_rows": {
            "default": 100,
            "description": "Maximum number of rows to return per statement. When a statement returns more, the response adds a second block with `totalRowCount` and `truncated: true`; raise this only then.",
            "maximum": 10000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "The 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.",
            "type": "string"
          },
          "role_name": {
            "description": "An 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.",
            "type": "string"
          },
          "sql": {
            "description": "The SQL query to execute",
            "type": "string"
          }
        },
        "required": [
          "sql"
        ],
        "type": "object"
      },
      "name": "run_sql",
      "title": "Run SQL"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Run SQL Transaction"
      },
      "description": "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.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "An optional ID of the branch to execute the query against. If not provided the default branch is used.",
            "type": "string"
          },
          "compute_id": {
            "description": "An optional ID of the compute/endpoint to run on. If not provided, the read-write compute of the branch is used.",
            "type": "string"
          },
          "database_name": {
            "description": "The name of the database. If not provided, the default neondb or first available database is used.",
            "type": "string"
          },
          "max_rows": {
            "default": 100,
            "description": "Maximum number of rows to return per statement. When a statement returns more, the response adds a second block with `totalRowCount` and `truncated: true`; raise this only then.",
            "maximum": 10000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "The 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.",
            "type": "string"
          },
          "role_name": {
            "description": "An 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.",
            "type": "string"
          },
          "sql_statements": {
            "description": "The SQL statements to execute",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "sql_statements"
        ],
        "type": "object"
      },
      "name": "run_sql_transaction",
      "title": "Run SQL Transaction"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Search"
      },
      "description": "Search across all organizations, projects, and branches by keyword. Returns matching items with id, title, and URL. Query must be at least 3 characters. Do not use when you need all projects (use `list_projects` instead) or to search Neon documentation (use `search_docs`).",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "query": {
            "description": "The search query to find matching organizations, projects, or branches",
            "minLength": 3,
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "search",
      "title": "Search"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": true,
        "title": "Search Documentation"
      },
      "description": "Search neon.com: docs, API reference, PostgreSQL tutorial, guides, FAQs, changelog, and blog. Returns ranked pages with title, URL, the matching section, and a slug; read a full page with get_doc.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "categories": {
            "description": "Only return pages in these categories: docs, api (API reference), postgresql (PostgreSQL tutorial), guides, faqs, blog, changelog. Omit to search everything.",
            "items": {
              "enum": [
                "docs",
                "api",
                "postgresql",
                "guides",
                "faqs",
                "blog",
                "changelog"
              ],
              "type": "string"
            },
            "maxItems": 7,
            "minItems": 1,
            "type": "array"
          },
          "limit": {
            "default": 10,
            "description": "Maximum number of pages to return (1-40).",
            "maximum": 40,
            "minimum": 1,
            "type": "integer"
          },
          "query": {
            "description": "What to search for, in words, e.g. \"reset a branch\" or \"connection pooling\".",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "search_docs",
      "title": "Search Documentation"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false,
        "title": "Send test email using the saved email provider"
      },
      "description": "Sends a test email through the branch's saved SMTP provider (`type: \"standard\"`) to `recipient_email`. Only send to an address the user gave you. A failed send returns `success: false` with `error_message`, not a tool error.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "recipient_email": {
            "description": "The email address to send the test email to.",
            "format": "email",
            "maxLength": 256,
            "minLength": 1,
            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "recipient_email"
        ],
        "type": "object"
      },
      "name": "send_auth_test_email",
      "title": "Send test email using the saved email provider"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false,
        "title": "Send Feedback"
      },
      "description": "Send anonymous feedback about Neon or this MCP server to the Neon team. Only call this when the user asks to give feedback. Sends only the feedback text, not account, project, or connection details.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "feedback": {
            "description": "The feedback to send to Neon. Do not include passwords, API keys, connection strings, or other secrets.",
            "maxLength": 10000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "feedback"
        ],
        "type": "object"
      },
      "name": "send_feedback",
      "title": "Send Feedback"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Set branch as default"
      },
      "description": "Sets the specified branch as the project's default branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "set_default_branch",
      "title": "Set branch as default"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Set snapshot schedule"
      },
      "description": "Replace a branch's automatic snapshot schedule. Frequency must be daily, weekly, or monthly.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "schedule": {
            "description": "Schedule entries defining the backup frequency.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "day": {
                  "description": "The day of the week or month to take the snapshot (if applicable).",
                  "maximum": 31,
                  "minimum": 1,
                  "type": "integer"
                },
                "frequency": {
                  "enum": [
                    "daily",
                    "weekly",
                    "monthly"
                  ],
                  "type": "string"
                },
                "hour": {
                  "description": "The hour of the day to take the snapshot (if applicable).",
                  "maximum": 23,
                  "minimum": 0,
                  "type": "integer"
                },
                "month": {
                  "description": "The month of the year to take the snapshot (if applicable).",
                  "maximum": 12,
                  "minimum": 1,
                  "type": "integer"
                },
                "retention_seconds": {
                  "description": "How long to keep a scheduled snapshot (in seconds) before it's automatically deleted.",
                  "maximum": 3024000,
                  "minimum": 3600,
                  "type": "integer"
                }
              },
              "required": [
                "frequency"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "branch_id",
          "schedule"
        ],
        "type": "object"
      },
      "name": "set_snapshot_schedule",
      "title": "Set snapshot schedule"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Start compute endpoint"
      },
      "description": "Starts a compute endpoint.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "endpoint_id": {
            "description": "The endpoint ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "endpoint_id"
        ],
        "type": "object"
      },
      "name": "start_postgres_endpoint",
      "title": "Start compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Suspend compute endpoint"
      },
      "description": "Suspends the specified compute endpoint.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "endpoint_id": {
            "description": "The endpoint ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "endpoint_id"
        ],
        "type": "object"
      },
      "name": "suspend_postgres_endpoint",
      "title": "Suspend compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update localhost allow setting"
      },
      "description": "Sets whether the branch's Neon Auth accepts requests from localhost origins. Turn it off for production. Call `get_neon_auth_config` to read the current value.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "allow_localhost": {
            "description": "Whether to allow localhost connections",
            "type": "boolean"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "allow_localhost"
        ],
        "type": "object"
      },
      "name": "update_auth_allow_localhost",
      "title": "Update localhost allow setting"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update auth configuration"
      },
      "description": "Updates the auth configuration for the branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "name": {
            "description": "The application name used in auth emails and communications.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "name"
        ],
        "type": "object"
      },
      "name": "update_auth_config",
      "title": "Update auth configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update email and password configuration"
      },
      "description": "Updates email and password sign-in for the branch's Neon Auth: whether it is enabled, sign-up, email verification, and whether a password reset revokes the user's sessions. Omitted fields keep their value. Call `get_neon_auth_config` to read the current value.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "auto_sign_in_after_verification": {
            "description": "Whether users are automatically signed in after verifying their email",
            "type": "boolean"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "disable_sign_up": {
            "description": "Whether to disable new user sign ups.",
            "type": "boolean"
          },
          "email_verification_method": {
            "description": "Email verification method.",
            "enum": [
              "link",
              "otp"
            ],
            "type": "string"
          },
          "enabled": {
            "description": "Controls whether email and password authentication is enabled for this project.",
            "type": "boolean"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "require_email_verification": {
            "description": "When true, users must verify their email address before they can sign in.",
            "type": "boolean"
          },
          "revoke_sessions_on_password_reset": {
            "description": "Whether all of a user's sessions are revoked when their password is reset.",
            "type": "boolean"
          },
          "send_verification_email_on_sign_in": {
            "description": "Whether to send a verification email when a user with an unverified email signs in.",
            "type": "boolean"
          },
          "send_verification_email_on_sign_up": {
            "description": "Whether to send a verification email when users sign up.",
            "type": "boolean"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "update_auth_email_and_password",
      "title": "Update email and password configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update email provider configuration"
      },
      "description": "Sets the email provider Neon Auth sends verification, reset, and invitation emails with. Pass `body.type: \"shared\"` for Neon's sender, or `body.type: \"standard\"` with `host`, `port`, `username`, `password`, `sender_email`, and `sender_name` for your own SMTP server. The response omits `password`. Check the server with `send_auth_test_email`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "body": {
            "description": "Email provider configuration for the branch's Neon Auth integration.",
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "host": {
                    "description": "Hostname of the email server.",
                    "type": "string"
                  },
                  "password": {
                    "description": "Password for authenticating with the SMTP server.",
                    "type": "string"
                  },
                  "port": {
                    "description": "TCP port of the SMTP server.",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  "sender_email": {
                    "description": "Email address used as the From address on outgoing auth emails.",
                    "type": "string"
                  },
                  "sender_name": {
                    "description": "Display name shown as the sender in outgoing emails.",
                    "type": "string"
                  },
                  "type": {
                    "const": "standard",
                    "type": "string"
                  },
                  "username": {
                    "description": "Username for authenticating with the SMTP server.",
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "sender_email": {
                    "description": "Email address used as the sender for outgoing messages from this shared email server.",
                    "type": "string"
                  },
                  "sender_name": {
                    "description": "Display name shown as the sender in outgoing emails.",
                    "type": "string"
                  },
                  "type": {
                    "const": "shared",
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object"
              }
            ]
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "body"
        ],
        "type": "object"
      },
      "name": "update_auth_email_provider",
      "title": "Update email provider configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update an OAuth client"
      },
      "description": "Updates an OAuth client of the Neon Auth OAuth server. `redirect_uris` and `resources` replace the stored lists, so send the full list. At least one resource is required. `type` cannot be changed.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "client_id": {
            "description": "The OAuth client ID",
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9]+$",
            "type": "string"
          },
          "disabled": {
            "description": "Whether the client is disabled.",
            "type": "boolean"
          },
          "name": {
            "description": "Display name of the client.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "redirect_uris": {
            "description": "Redirect URIs the client may use.",
            "items": {
              "type": "string"
            },
            "maxItems": 10,
            "type": "array"
          },
          "resources": {
            "description": "Identifiers of the protected resources to link the client to.",
            "items": {
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "skip_consent": {
            "description": "Whether to skip the consent prompt for this client.",
            "type": "boolean"
          }
        },
        "required": [
          "branch_id",
          "client_id"
        ],
        "type": "object"
      },
      "name": "update_auth_oauth_client",
      "title": "Update an OAuth client"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update OAuth provider"
      },
      "description": "Updates a social login provider (Google, GitHub, Microsoft, Vercel, Apple) that users sign in with on the branch's Neon Auth integration. For Apple, a new `client_secret` (`.p8` key) must be sent with its `apple_key_id`. This is not the OAuth Provider plugin that makes Neon Auth an OAuth 2.1 authorization server; for that use `get_auth_oauth_server` and `update_auth_oauth_server`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "apple_key_id": {
            "description": "Key ID of the Sign in with Apple private key supplied in `client_secret`.",
            "type": "string"
          },
          "apple_team_id": {
            "description": "Apple Developer Team ID.",
            "type": "string"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "client_id": {
            "description": "The OAuth client ID registered with the provider.",
            "type": "string"
          },
          "client_secret": {
            "description": "OAuth client secret for the provider.",
            "type": "string"
          },
          "microsoft_tenant_id": {
            "description": "The tenant ID scoping the Microsoft OAuth provider.",
            "type": "string"
          },
          "oauth_provider_id": {
            "description": "The OAuth provider ID",
            "enum": [
              "google",
              "github",
              "microsoft",
              "vercel",
              "apple"
            ],
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "oauth_provider_id"
        ],
        "type": "object"
      },
      "name": "update_auth_oauth_provider",
      "title": "Update OAuth provider"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update OAuth provider plugin configuration"
      },
      "description": "Configures Neon Auth as an OAuth 2.1 authorization server for the branch, including for MCP servers. This is Better Auth's OAuth Provider plugin (API plugin `oauth_provider`), not social login; for providers such as GitHub or Google see `list_auth_oauth_providers`. Enabling requires `login_page`, `consent_page` and at least one resource (or an MCP resource). `resources` replaces the stored list: call `get_auth_oauth_server` first and send the full list to add or remove one. `mcp.resource` is required whenever `mcp` is sent; omitted `mcp` booleans keep their stored value, and `mcp.resource: \"\"` removes the MCP configuration. Prefer `client_id_metadata_documents` over the deprecated `dynamic_registration`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "consent_page": {
            "description": "URL of the page that authorization requests redirect to for consent.",
            "type": "string"
          },
          "enabled": {
            "description": "Whether the OAuth provider plugin is enabled.",
            "type": "boolean"
          },
          "login_page": {
            "description": "URL of the page that authorization requests redirect to for sign-in.",
            "type": "string"
          },
          "mcp": {
            "additionalProperties": false,
            "description": "MCP resource configuration.",
            "properties": {
              "client_id_metadata_documents": {
                "description": "Whether MCP clients may identify themselves with an https Client ID Metadata Document (CIMD) URL.",
                "type": "boolean"
              },
              "dynamic_registration": {
                "description": "Whether MCP clients may register themselves via dynamic client registration (RFC 7591).",
                "type": "boolean"
              },
              "resource": {
                "description": "The MCP server URL that MCP clients (Client ID Metadata Document and dynamically registered) are linked to.",
                "type": "string"
              }
            },
            "required": [
              "resource"
            ],
            "type": "object"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "resources": {
            "description": "Protected resources that clients can be linked to.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "identifier": {
                  "description": "Absolute URL identifying a protected resource.",
                  "type": "string"
                }
              },
              "required": [
                "identifier"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "update_auth_oauth_server",
      "title": "Update OAuth provider plugin configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update magic link plugin configuration"
      },
      "description": "Updates the Neon Auth magic link plugin: whether it is enabled, how many minutes a link is valid (`expires_in`), and whether it can sign up new users. Omitted fields keep their value. Call `get_neon_auth_config` to read the current value.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "disable_sign_up": {
            "description": "When true, sign-up via magic link is disabled.",
            "type": "boolean"
          },
          "enabled": {
            "description": "Whether to enable the magic link plugin.",
            "type": "boolean"
          },
          "expires_in": {
            "description": "Minutes until the magic link expires.",
            "maximum": 1440,
            "minimum": 5,
            "type": "integer"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "update_auth_plugins_magic_link",
      "title": "Update magic link plugin configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update organization plugin configuration"
      },
      "description": "Updates the Neon Auth organization plugin, which lets your app's users create and join organizations. These are not Neon organizations. Omitted fields keep their value. Call `get_neon_auth_config` to read the current value.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "creator_role": {
            "description": "Role of the organization's creator.",
            "enum": [
              "admin",
              "owner"
            ],
            "type": "string"
          },
          "enabled": {
            "description": "Controls whether the organization plugin is active for the organization.",
            "type": "boolean"
          },
          "membership_limit": {
            "description": "Maximum members per organization.",
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer"
          },
          "organization_limit": {
            "description": "Maximum organizations a user can belong to (created or joined).",
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "send_invitation_email": {
            "description": "When true, invited users receive an email containing an accept link.",
            "type": "boolean"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "update_auth_plugins_organization",
      "title": "Update organization plugin configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update phone number plugin configuration"
      },
      "description": "Updates the Neon Auth phone number (SMS OTP) plugin: whether it is enabled and how many seconds an OTP is valid (`otp_expires_in`). Omitted fields keep their value. Call `get_neon_auth_config` to read the current value.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "enabled": {
            "description": "Whether the phone number plugin is enabled.",
            "type": "boolean"
          },
          "otp_expires_in": {
            "description": "Time in seconds before the OTP expires",
            "maximum": 600,
            "minimum": 60,
            "type": "integer"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "update_auth_plugins_phone_number",
      "title": "Update phone number plugin configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update auth user role"
      },
      "description": "Updates the role of a user in the Neon Auth user directory for the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "auth_user_id": {
            "description": "The Neon user ID",
            "type": "string"
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "roles": {
            "description": "Roles to assign to the user in the Neon Auth (Better Auth) directory.",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "branch_id",
          "auth_user_id",
          "roles"
        ],
        "type": "object"
      },
      "name": "update_auth_user_role",
      "title": "Update auth user role"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update Neon Auth webhook configuration"
      },
      "description": "Replaces the branch's Neon Auth webhook configuration. Omitted fields reset: `{ enabled: false }` alone clears `webhook_url` and `enabled_events`. Call `get_neon_auth_config` first and send every field to keep.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "enabled": {
            "description": "Whether the webhook is active.",
            "type": "boolean"
          },
          "enabled_events": {
            "description": "Event types that trigger this webhook.",
            "items": {
              "enum": [
                "user.before_create",
                "user.created",
                "send.otp",
                "send.magic_link",
                "organization.invitation.created",
                "organization.invitation.accepted",
                "phone_number.verified"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "timeout_seconds": {
            "description": "Maximum time, in seconds, to wait for a response from the webhook endpoint.",
            "maximum": 10,
            "minimum": 1,
            "type": "integer"
          },
          "webhook_url": {
            "description": "Destination URL that receives webhook event payloads.",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "enabled"
        ],
        "type": "object"
      },
      "name": "update_auth_webhooks",
      "title": "Update Neon Auth webhook configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update branch"
      },
      "description": "Updates the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The timestamp when the branch is scheduled to expire and be automatically deleted."
          },
          "name": {
            "description": "New display name for the branch.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "protected": {
            "description": "Whether the branch is protected.",
            "type": "boolean"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "update_branch",
      "title": "Update branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update Neon Data API"
      },
      "description": "Updates the Neon Data API configuration for the specified branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "db_aggregates_enabled": {
            "description": "Enable aggregates feature",
            "type": "boolean"
          },
          "db_anon_role": {
            "description": "Database role to use for anonymous requests",
            "type": "string"
          },
          "db_extra_search_path": {
            "description": "Extra schemas to add to the search path",
            "type": "string"
          },
          "db_max_rows": {
            "description": "Hard limit on the number of rows returned in a single Data API response.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "db_schemas": {
            "description": "List of schemas to expose via the API.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "jwt_cache_max_lifetime": {
            "description": "Maximum lifetime of the Data API's JWT cache, in seconds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "jwt_role_claim_key": {
            "description": "JWT claim key to use for role extraction",
            "type": "string"
          },
          "openapi_mode": {
            "description": "OpenAPI specification mode (ignore-privileges, disabled)",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "server_cors_allowed_origins": {
            "description": "CORS allowed origins",
            "type": "string"
          },
          "server_timing_enabled": {
            "description": "When enabled, the Data API adds `Server-Timing` headers to each response showing database execution and internal processing time.",
            "type": "boolean"
          }
        },
        "required": [
          "branch_id",
          "database_name"
        ],
        "type": "object"
      },
      "name": "update_data_api",
      "title": "Update Neon Data API"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update a function"
      },
      "description": "Updates the function's mutable metadata — currently only the display `name`.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 256,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New display name for the function."
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "slug": {
            "description": "The function slug",
            "pattern": "^[a-z0-9]{1,20}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "slug",
          "name"
        ],
        "type": "object"
      },
      "name": "update_function",
      "title": "Update a function"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update database"
      },
      "description": "Updates the specified database in the branch.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "The branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "name": {
            "description": "Name of the database to update.",
            "type": "string"
          },
          "owner_name": {
            "description": "The name of the role that owns the database",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "database_name"
        ],
        "type": "object"
      },
      "name": "update_postgres_database",
      "title": "Update database"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update compute endpoint"
      },
      "description": "Updates the specified compute endpoint.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "autoscaling_limit_max_cu": {
            "description": "The maximum number of Compute Units.",
            "minimum": 0.25,
            "type": "number"
          },
          "autoscaling_limit_min_cu": {
            "description": "The minimum number of Compute Units.",
            "minimum": 0.25,
            "type": "number"
          },
          "branch_id": {
            "description": "Deprecated. The destination branch ID; must not have an existing read-write endpoint.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "disabled": {
            "description": "Whether to restrict connections to the compute endpoint.",
            "type": "boolean"
          },
          "endpoint_id": {
            "description": "The endpoint ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "name": {
            "description": "Optional name of the compute endpoint",
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "passwordless_access": {
            "description": "NOT YET IMPLEMENTED.",
            "type": "boolean"
          },
          "pooler_enabled": {
            "description": "Deprecated. To enable connection pooling, append `-pooler` to the endpoint ID in the connection string.",
            "type": "boolean"
          },
          "pooler_mode": {
            "description": "Deprecated. The connection pooler mode.",
            "enum": [
              "transaction"
            ],
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "provisioner": {
            "description": "Compute provisioner.",
            "type": "string"
          },
          "settings": {
            "additionalProperties": false,
            "description": "A collection of settings for a compute endpoint",
            "properties": {
              "pg_settings": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "A raw representation of Postgres settings",
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "pgbouncer_settings": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Deprecated. PgBouncer settings for the compute endpoint.",
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "preload_libraries": {
                "additionalProperties": false,
                "description": "The shared libraries to preload into the project's compute instances.",
                "properties": {
                  "enabled_libraries": {
                    "description": "Names of shared preload libraries to enable for the project.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "use_defaults": {
                    "description": "When true, the project's preload libraries include the platform default set in addition to any libraries listed in `enabled_libraries`.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "suspend_timeout_seconds": {
            "description": "Scale-to-zero idle timeout, in seconds, before the compute suspends.",
            "maximum": 604800,
            "minimum": -1,
            "type": "integer"
          }
        },
        "required": [
          "endpoint_id"
        ],
        "type": "object"
      },
      "name": "update_postgres_endpoint",
      "title": "Update compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update project"
      },
      "description": "Updates the specified project.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "default_endpoint_settings": {
            "additionalProperties": false,
            "description": "A collection of settings for a Neon endpoint",
            "properties": {
              "autoscaling_limit_max_cu": {
                "description": "Default maximum number of Compute Units for endpoints created under this account.",
                "minimum": 0.25,
                "type": "number"
              },
              "autoscaling_limit_min_cu": {
                "description": "Minimum number of Compute Units for this endpoint.",
                "minimum": 0.25,
                "type": "number"
              },
              "pg_settings": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "A raw representation of Postgres settings",
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "pgbouncer_settings": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Deprecated. Use the endpoint-level connection pooler configuration instead.",
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              "suspend_timeout_seconds": {
                "description": "Scale-to-zero idle timeout, in seconds, before the compute suspends.",
                "maximum": 604800,
                "minimum": -1,
                "type": "integer"
              }
            },
            "type": "object"
          },
          "history_retention_seconds": {
            "description": "History window (point-in-time restore range) for all branches, in seconds.",
            "maximum": 2592000,
            "minimum": 0,
            "type": "integer"
          },
          "name": {
            "description": "The project name",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "settings": {
            "additionalProperties": false,
            "description": "Project-level settings, for example `quota`, `allowed_ips`, `enable_logical_replication`, and `maintenance_window`.",
            "properties": {
              "allowed_ips": {
                "additionalProperties": false,
                "description": "A list of IP addresses that are allowed to connect to the compute endpoint.",
                "properties": {
                  "ips": {
                    "description": "A list of IP addresses that are allowed to connect to the endpoint.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "protected_branches_only": {
                    "description": "If true, the list will be applied only to protected branches.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "audit_log_level": {
                "enum": [
                  "base",
                  "extended",
                  "full"
                ],
                "type": "string"
              },
              "block_public_connections": {
                "description": "When set, connections from the public internet are disallowed.",
                "type": "boolean"
              },
              "block_vpc_connections": {
                "description": "When set, connections using VPC endpoints are disallowed.",
                "type": "boolean"
              },
              "enable_logical_replication": {
                "description": "Sets wal_level=logical for all compute endpoints in this project.",
                "type": "boolean"
              },
              "hipaa": {
                "description": "Enables HIPAA compliance mode for the project, including audit logging.",
                "type": "boolean"
              },
              "maintenance_window": {
                "additionalProperties": false,
                "description": "A maintenance window is a time period during which Neon may perform maintenance on the project's infrastructure.",
                "properties": {
                  "end_time": {
                    "description": "End time of the maintenance window, in the format of \"HH:MM\".",
                    "type": "string"
                  },
                  "start_time": {
                    "description": "Start time of the maintenance window, in the format of \"HH:MM\".",
                    "type": "string"
                  },
                  "weekdays": {
                    "description": "A list of weekdays when the maintenance window is active.",
                    "items": {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "weekdays",
                  "start_time",
                  "end_time"
                ],
                "type": "object"
              },
              "preload_libraries": {
                "additionalProperties": false,
                "description": "The shared libraries to preload into the project's compute instances.",
                "properties": {
                  "enabled_libraries": {
                    "description": "Names of shared preload libraries to enable for the project.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "use_defaults": {
                    "description": "When true, the project's preload libraries include the platform default set in addition to any libraries listed in `enabled_libraries`.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "quota": {
                "additionalProperties": false,
                "description": "Per-project consumption quotas.",
                "properties": {
                  "active_time_seconds": {
                    "description": "The total amount of wall-clock time allowed to be spent by the project's compute endpoints.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "compute_time_seconds": {
                    "description": "The total amount of CPU seconds allowed to be spent by the project's compute endpoints.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "data_transfer_bytes": {
                    "description": "Total amount of data transferred from all of a project's branches using the proxy.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "logical_size_bytes": {
                    "description": "Limit on the logical size of every project's branch.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "written_data_bytes": {
                    "description": "Total amount of data written to all of a project's branches.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "name": "update_project",
      "title": "Update project"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update snapshot"
      },
      "description": "Updates the specified snapshot.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The date and time when the snapshot will expire."
          },
          "name": {
            "description": "Human-readable label for the snapshot.",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "snapshot_id": {
            "description": "The snapshot ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "snapshot_id"
        ],
        "type": "object"
      },
      "name": "update_snapshot",
      "title": "Update snapshot"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update a trigger"
      },
      "description": "Applies a partial update.\n\nbranch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "body": {
            "description": "Partial trigger update discriminated by `type`.",
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "enabled": {
                    "description": "True enables and false disables future scheduling.",
                    "type": "boolean"
                  },
                  "function_path": {
                    "maxLength": 2048,
                    "minLength": 1,
                    "type": "string"
                  },
                  "function_slug": {
                    "description": "Replacement branch-local Function slug.",
                    "pattern": "^[a-z0-9]{1,20}$",
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  },
                  "schedule": {
                    "additionalProperties": false,
                    "description": "A numeric five-field cron schedule interpreted in UTC.",
                    "properties": {
                      "cron": {
                        "description": "Numeric five-field cron expression (minute through day-of-week), interpreted in UTC.",
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "cron"
                    ],
                    "type": "object"
                  },
                  "type": {
                    "const": "schedule",
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "enabled": {
                    "description": "True enables and false disables future matching uploads.",
                    "type": "boolean"
                  },
                  "function_path": {
                    "maxLength": 2048,
                    "minLength": 1,
                    "type": "string"
                  },
                  "function_slug": {
                    "description": "Replacement branch-local Function slug.",
                    "pattern": "^[a-z0-9]{1,20}$",
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  },
                  "storage_object_created": {
                    "additionalProperties": false,
                    "description": "Matches successful uploads to one exact bucket and, when configured, an object-key prefix.",
                    "properties": {
                      "bucket_name": {
                        "description": "The exact object-storage bucket name to watch.",
                        "maxLength": 63,
                        "minLength": 3,
                        "type": "string"
                      },
                      "prefix": {
                        "description": "Optional object-key prefix of at most 1024 UTF-8 bytes.",
                        "maxLength": 1024,
                        "minLength": 1,
                        "pattern": "^[^\\x00-\\x1f\\x7f-\\x9f]+$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "bucket_name"
                    ],
                    "type": "object"
                  },
                  "type": {
                    "const": "storage_object_created",
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object"
              }
            ]
          },
          "branch_id": {
            "description": "The Neon branch ID",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "The Neon 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.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "trigger_id": {
            "description": "The opaque, project-wide trigger ID",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.\\-]{0,127}$",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "trigger_id",
          "body"
        ],
        "type": "object"
      },
      "name": "update_trigger",
      "title": "Update a trigger"
    }
  ]
}
