{
  "server": "neon",
  "url": "https://mcp.neon.tech/mcp",
  "date": "2026-11-21",
  "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": 141,
  "outputSchemaCoveragePct": 100,
  "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, Discord) to a branch's Neon Auth. Microsoft, Apple, and Discord have no shared app, so they need your own `client_id` and `client_secret`. Apple and Discord work only on Better Auth projects, not legacy Stack Auth. 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. For Neon Auth as an OAuth server, use update_auth_oauth_server.",
      "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": "A br-... id, not a name.",
            "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",
              "discord"
            ],
            "type": "string"
          },
          "microsoft_tenant_id": {
            "description": "Tenant ID for the Microsoft OAuth provider.",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "apple_key_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "apple_team_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "client_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "client_secret": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "microsoft_tenant_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 a branch's Neon Auth may redirect to after sign-in.",
      "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": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Add domain to redirect_uri whitelist"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Compare database schema"
      },
      "description": "Diffs one database's SQL schema on a branch against another branch, by default its parent. lsn, timestamp, base_lsn, and base_timestamp are only for point-in-time comparisons.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "base_branch_id": {
            "description": "Branch id (br-...) to compare against, not its name. Omit for the parent branch.",
            "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": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "diff": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Compare database schema"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Complete Database Migration"
      },
      "description": "Applies or discards a prepared migration and deletes the temporary branch. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. Pass the complete object from prepare_database_migration; apply_changes false discards.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "apply_changes": {
            "default": true,
            "description": "Apply the migration to the parent branch. false only deletes the temporary branch.",
            "type": "boolean"
          },
          "database_name": {
            "description": "The exact database_name from prepare_database_migration.",
            "type": "string"
          },
          "migration_id": {
            "description": "The migration_id from prepare_database_migration.",
            "type": "string"
          },
          "migration_sql": {
            "description": "The exact migration_sql from prepare_database_migration.",
            "type": "string"
          },
          "parent_branch_id": {
            "description": "The branch the migration is applied to.",
            "type": "string"
          },
          "project_id": {
            "description": "The exact project_id 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 to delete.",
            "type": "string"
          }
        },
        "required": [
          "migration_id",
          "migration_sql",
          "database_name",
          "temporary_branch_id",
          "parent_branch_id"
        ],
        "type": "object"
      },
      "name": "complete_database_migration",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "applied": {
                "description": "Whether the migration ran on the parent branch.",
                "type": "boolean"
              },
              "cleanupError": {
                "description": "Set when the temporary branch could not be deleted.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "deletedBranchId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "migrationResult": {
                "anyOf": [
                  {
                    "items": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "applied"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Complete Database Migration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Complete Query Tuning"
      },
      "description": "Applies or discards query-tuning changes and deletes the temporary branch. NEVER run autonomously. Pass the complete object from prepare_query_tuning and suggested_sql_statements; apply_changes true applies, omitted discards. Call it even when the user rejects.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "apply_changes": {
            "default": false,
            "description": "Apply suggested_sql_statements to branch_id.",
            "type": "boolean"
          },
          "branch_id": {
            "description": "A br-... id, not a name. The branch that receives the changes; omit it for the default branch.",
            "type": "string"
          },
          "database_name": {
            "description": "The database_name from prepare_query_tuning.",
            "type": "string"
          },
          "project_id": {
            "description": "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"
          },
          "role_name": {
            "description": "The role_name passed to prepare_query_tuning, if any. Omit for the database owner.",
            "type": "string"
          },
          "should_delete_temporary_branch": {
            "default": true,
            "description": "Delete the temporary branch.",
            "type": "boolean"
          },
          "suggested_sql_statements": {
            "description": "The DDL statements that improved the plan on the temporary branch, for example CREATE INDEX.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "temporary_branch_id": {
            "description": "The temporary_branch_id from prepare_query_tuning.",
            "type": "string"
          },
          "tuning_id": {
            "description": "The tuning_id from prepare_query_tuning, not a branch id.",
            "type": "string"
          }
        },
        "required": [
          "suggested_sql_statements",
          "tuning_id",
          "database_name",
          "temporary_branch_id"
        ],
        "type": "object"
      },
      "name": "complete_query_tuning",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "appliedChanges": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deletedBranches": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "message": {
                "description": "What ran, one step per line.",
                "type": "string"
              },
              "results": {
                "anyOf": [
                  {
                    "items": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Complete Query Tuning"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve projects count"
      },
      "description": "Counts an organization's active projects without listing them; ones being created or deleted are not counted. `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": "Organization id from list_organizations; required with a personal API key.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "count_projects",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "number"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve projects count"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create an OAuth client"
      },
      "description": "Registers an OAuth client with a branch's Neon Auth OAuth server. A confidential client's client_secret is returned once: show it to the user and tell them to store it. resources must already be on the server, or be its MCP resource (get_auth_oauth_server). type is permanent.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "name": {
            "description": "Display name of the client.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "client_id": {
                "type": "string"
              },
              "client_secret": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "disabled": {
                "type": "boolean"
              },
              "name": {
                "type": "string"
              },
              "redirect_uris": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "resources": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "skip_consent": {
                "type": "boolean"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "client_id",
              "name",
              "type",
              "redirect_uris",
              "resources",
              "skip_consent",
              "disabled"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Create an OAuth client"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create new auth user"
      },
      "description": "Creates a Neon Auth user on a branch who can sign in right away.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Create new auth user"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create branch"
      },
      "description": "Creates a branch from its parent's current data, with a read-write compute unless no_compute, and waits until it is ready. Returns no connection string; use get_connection_string.",
      "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": "Parent branch id (br-...). Omit for the project's default branch.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default": {
                "type": "boolean"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "init_source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "logical_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "parent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_lsn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_timestamp": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "primary": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "project_id": {
                "type": "string"
              },
              "protected": {
                "type": "boolean"
              },
              "recovery": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "restore_status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_as": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_from": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restricted_actions": {
                "anyOf": [
                  {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state_changed_at": {
                "type": "string"
              },
              "ttl_interval_seconds": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "project_id",
              "name",
              "current_state",
              "state_changed_at",
              "creation_source",
              "default",
              "protected",
              "cpu_used_sec",
              "compute_time_seconds",
              "active_time_seconds",
              "written_data_bytes",
              "data_transfer_bytes",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Create branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Issue a scoped credential on the branch"
      },
      "description": "Issues a scoped credential on a branch. api_token and s3_secret_access_key are returned once: show them to the user and tell them to store them.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "expires_at": {
            "description": "When the credential stops working, 1 minute to 365 days from now. Omit for a credential that never expires.",
            "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"
          },
          "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "api_token": {
                "type": "string"
              },
              "branch_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "s3_secret_access_key": {
                "type": "string"
              },
              "scopes": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "token_id": {
                "type": "string"
              },
              "token_id_short": {
                "type": "string"
              }
            },
            "required": [
              "token_id",
              "token_id_short",
              "api_token",
              "s3_secret_access_key",
              "scopes",
              "branch_id",
              "created_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Issue a scoped credential on the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create database"
      },
      "description": "Creates a database on a branch, owned by owner_name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "branch_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "id": {
                "type": "number"
              },
              "name": {
                "type": "string"
              },
              "owner_name": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "branch_id",
              "name",
              "owner_name",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Create database"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create compute endpoint"
      },
      "description": "Creates a compute endpoint on a branch; a branch takes one read-write endpoint and any number of read-only. Returns no connection string; use 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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "autoscaling_limit_max_cu": {
                "type": "number"
              },
              "autoscaling_limit_min_cu": {
                "type": "number"
              },
              "branch_id": {
                "type": "string"
              },
              "compute_release_version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "disabled": {
                "type": "boolean"
              },
              "host": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "last_active": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "passwordless_access": {
                "type": "boolean"
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pooler_enabled": {
                "type": "boolean"
              },
              "pooler_mode": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "provisioner": {
                "type": "string"
              },
              "proxy_host": {
                "type": "string"
              },
              "region_id": {
                "type": "string"
              },
              "settings": {
                "type": "object"
              },
              "started_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "suspend_timeout_seconds": {
                "type": "number"
              },
              "suspended_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "host",
              "id",
              "project_id",
              "branch_id",
              "autoscaling_limit_min_cu",
              "autoscaling_limit_max_cu",
              "region_id",
              "type",
              "current_state",
              "settings",
              "pooler_enabled",
              "pooler_mode",
              "disabled",
              "passwordless_access",
              "creation_source",
              "created_at",
              "updated_at",
              "proxy_host",
              "suspend_timeout_seconds",
              "provisioner"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Create compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create role"
      },
      "description": "Creates a Postgres role on a branch and returns its password. The default access, admin, joins neon_superuser: every database, creating databases and roles, bypassing row-level security, and it cannot be narrowed later. For least privilege pass read_only or read_write with database_name and schemas, covering the tables the database owner owns, now and later.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "access": {
            "description": "read_only grants SELECT; read_write adds INSERT, UPDATE, DELETE, and sequences, on top of what PUBLIC has. Default admin joins neon_superuser.",
            "enum": [
              "admin",
              "read_only",
              "read_write"
            ],
            "type": "string"
          },
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "authentication_method": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "branch_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "password": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "protected": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "branch_id",
              "name",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Create role"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create project"
      },
      "description": "Creates a project with a default branch and read-write compute and waits until it is ready. Returns no connection string; use get_connection_string. `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": {
          "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "branch_logical_size_limit": {
                "type": "number"
              },
              "branch_logical_size_limit_bytes": {
                "type": "number"
              },
              "compute_last_active_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "consumption_period_end": {
                "type": "string"
              },
              "consumption_period_start": {
                "type": "string"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "creation_source": {
                "type": "string"
              },
              "data_storage_bytes_hour": {
                "type": "number"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default_endpoint_settings": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "effective_project_permission": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "hipaa_enabled_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "history_retention_seconds": {
                "type": "number"
              },
              "id": {
                "type": "string"
              },
              "maintenance_scheduled_for": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "maintenance_starts_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "org_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "owner_id": {
                "type": "string"
              },
              "pg_version": {
                "type": "number"
              },
              "platform_id": {
                "type": "string"
              },
              "provisioner": {
                "type": "string"
              },
              "proxy_host": {
                "type": "string"
              },
              "quota_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region_id": {
                "type": "string"
              },
              "settings": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "store_passwords": {
                "type": "boolean"
              },
              "synthetic_storage_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "data_storage_bytes_hour",
              "data_transfer_bytes",
              "written_data_bytes",
              "compute_time_seconds",
              "active_time_seconds",
              "cpu_used_sec",
              "id",
              "platform_id",
              "region_id",
              "name",
              "provisioner",
              "pg_version",
              "proxy_host",
              "branch_logical_size_limit",
              "branch_logical_size_limit_bytes",
              "store_passwords",
              "creation_source",
              "history_retention_seconds",
              "created_at",
              "updated_at",
              "consumption_period_start",
              "consumption_period_end",
              "owner_id"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Create project"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create snapshot"
      },
      "description": "Creates a snapshot of a branch.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "created_at": {
                "type": "string"
              },
              "diff_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "full_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "lsn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "manual": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "source_branch_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "timestamp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "created_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Create snapshot"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false,
        "title": "Create a bucket on the branch"
      },
      "description": "Creates an object storage bucket on a branch.",
      "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": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "name": {
            "description": "The bucket name.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "access_level": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "access_level",
              "created_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Create a bucket on the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create a trigger"
      },
      "description": "Creates a trigger that calls a function on a five-field UTC cron schedule, or after an upload to one bucket, optionally under a key prefix. Names are unique on the branch.",
      "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": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "anyOf": [
              {
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "function_path": {
                    "type": "string"
                  },
                  "function_slug": {
                    "type": "string"
                  },
                  "inherited": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "next_run_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "schedule": {
                    "type": "object"
                  },
                  "trigger_id": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "version": {
                    "type": "number"
                  }
                },
                "required": [
                  "type",
                  "trigger_id",
                  "function_slug",
                  "name",
                  "function_path",
                  "schedule",
                  "enabled",
                  "version",
                  "next_run_at",
                  "inherited"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "function_path": {
                    "type": "string"
                  },
                  "function_slug": {
                    "type": "string"
                  },
                  "inherited": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "storage_object_created": {
                    "type": "object"
                  },
                  "trigger_id": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "version": {
                    "type": "number"
                  }
                },
                "required": [
                  "type",
                  "trigger_id",
                  "function_slug",
                  "name",
                  "function_path",
                  "storage_object_created",
                  "enabled",
                  "version",
                  "inherited"
                ],
                "type": "object"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Create a trigger"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete an OAuth client"
      },
      "description": "Deletes an OAuth client from Neon Auth's OAuth server, irreversibly; tokens already issued stay valid.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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, Discord) from a branch's Neon Auth. For Neon Auth as an OAuth server, use update_auth_oauth_server.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "oauth_provider_id": {
            "description": "The OAuth provider ID",
            "enum": [
              "google",
              "github",
              "microsoft",
              "vercel",
              "apple",
              "discord"
            ],
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 ones a branch's Neon Auth may redirect to.",
      "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": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Delete domain from redirect_uri whitelist"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete auth user"
      },
      "description": "Deletes a Neon Auth user from a branch. Irreversible.",
      "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": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Delete auth user"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete branch"
      },
      "description": "Deletes a branch with all its data and disconnects its clients. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. The root, the default, and a branch with children cannot be deleted. Returns the deleted branch, or null when the project has no branch with that id. For the whole project, use delete_project.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "anyOf": [
              {
                "properties": {
                  "active_time_seconds": {
                    "type": "number"
                  },
                  "compute_time_seconds": {
                    "type": "number"
                  },
                  "cpu_used_sec": {
                    "type": "number"
                  },
                  "created_at": {
                    "type": "string"
                  },
                  "created_by": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "creation_source": {
                    "type": "string"
                  },
                  "current_state": {
                    "type": "string"
                  },
                  "data_transfer_bytes": {
                    "type": "number"
                  },
                  "default": {
                    "type": "boolean"
                  },
                  "expires_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "id": {
                    "type": "string"
                  },
                  "init_source": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "last_reset_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "logical_size": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "name": {
                    "type": "string"
                  },
                  "parent_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "parent_lsn": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "parent_timestamp": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "pending_state": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "primary": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "project_id": {
                    "type": "string"
                  },
                  "protected": {
                    "type": "boolean"
                  },
                  "recovery": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "restore_status": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "restored_as": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "restored_from": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "restricted_actions": {
                    "anyOf": [
                      {
                        "items": {
                          "type": "object"
                        },
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "state_changed_at": {
                    "type": "string"
                  },
                  "ttl_interval_seconds": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "updated_at": {
                    "type": "string"
                  },
                  "written_data_bytes": {
                    "type": "number"
                  }
                },
                "required": [
                  "id",
                  "project_id",
                  "name",
                  "current_state",
                  "state_changed_at",
                  "creation_source",
                  "default",
                  "protected",
                  "cpu_used_sec",
                  "compute_time_seconds",
                  "active_time_seconds",
                  "written_data_bytes",
                  "data_transfer_bytes",
                  "created_at",
                  "updated_at"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Delete branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete Neon Data API"
      },
      "description": "Deletes the Neon Data API for a database; requests to its endpoint start failing.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Delete Neon Data API"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete a function on the branch"
      },
      "description": "Deletes a function from a branch.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 from a branch and stops routing it.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Delete a custom domain from a branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete database"
      },
      "description": "Deletes a database and its data from a branch.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Delete database"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete compute endpoint"
      },
      "description": "Deletes a compute endpoint and drops its connections.",
      "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Delete compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete role"
      },
      "description": "Deletes a Postgres role from a branch.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Delete role"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete project"
      },
      "description": "Deletes a project with all its branches, computes, databases, and roles. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. recover_project undoes it within 7 days. For one branch, use delete_branch.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "Project id.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          }
        },
        "required": [
          "project_id"
        ],
        "type": "object"
      },
      "name": "delete_project",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "branch_logical_size_limit": {
                "type": "number"
              },
              "branch_logical_size_limit_bytes": {
                "type": "number"
              },
              "compute_last_active_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "consumption_period_end": {
                "type": "string"
              },
              "consumption_period_start": {
                "type": "string"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "creation_source": {
                "type": "string"
              },
              "data_storage_bytes_hour": {
                "type": "number"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default_endpoint_settings": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "effective_project_permission": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "hipaa_enabled_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "history_retention_seconds": {
                "type": "number"
              },
              "id": {
                "type": "string"
              },
              "maintenance_scheduled_for": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "maintenance_starts_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "org_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "owner_id": {
                "type": "string"
              },
              "pg_version": {
                "type": "number"
              },
              "platform_id": {
                "type": "string"
              },
              "provisioner": {
                "type": "string"
              },
              "proxy_host": {
                "type": "string"
              },
              "quota_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region_id": {
                "type": "string"
              },
              "settings": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "store_passwords": {
                "type": "boolean"
              },
              "synthetic_storage_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "data_storage_bytes_hour",
              "data_transfer_bytes",
              "written_data_bytes",
              "compute_time_seconds",
              "active_time_seconds",
              "cpu_used_sec",
              "id",
              "platform_id",
              "region_id",
              "name",
              "provisioner",
              "pg_version",
              "proxy_host",
              "branch_logical_size_limit",
              "branch_logical_size_limit_bytes",
              "store_passwords",
              "creation_source",
              "history_retention_seconds",
              "created_at",
              "updated_at",
              "consumption_period_start",
              "consumption_period_end",
              "owner_id"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Delete project"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete snapshot"
      },
      "description": "Deletes a snapshot.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Delete snapshot"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Delete a bucket on the branch"
      },
      "description": "Deletes a bucket from a branch.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "bucket_name": {
            "description": "The bucket name",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 one object from a bucket on a branch.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "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 this branch whose key starts with prefix and returns the count; inherited objects stay.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "bucket_name": {
            "description": "The bucket name",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "prefix": {
            "description": "Key prefix to delete, ending in / (for example app/avatars/).",
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "deleted": {
                "type": "number"
              }
            },
            "required": [
              "deleted"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 function trigger, or hides an inherited one on this branch. Invocations already queued still run.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Delete a trigger"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Deploy code to a function"
      },
      "description": "Deploys a function version from any of zip, environment, and runtime; omitted ones keep the latest value, and the first deployment needs zip. It can return while still pending.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "created_at": {
                "type": "string"
              },
              "environment": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "error": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "number"
              },
              "memory_mib": {
                "type": "number"
              },
              "runtime": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "status",
              "memory_mib",
              "runtime",
              "created_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Deploy code to a function"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Describe Branch"
      },
      "description": "Returns a branch summary, its database names, and a tree of one database's schemas, tables, views, indexes, sequences, and functions. Read-only: one catalog query in a READ ONLY transaction, so it changes no data; a suspended compute wakes to run it. Branch record only: get_branch; table names: get_database_tables; columns: describe_table_schema.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "type": "string"
          },
          "database_name": {
            "description": "Database name. Omit for neondb, else the first database.",
            "type": "string"
          },
          "project_id": {
            "description": "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"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "name": "describe_branch",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "branch": {
                "type": "object"
              },
              "console_url": {
                "type": "string"
              },
              "database_structure": {
                "anyOf": [
                  {
                    "items": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "`[[], treeRows]`, or null when the tree query failed."
              },
              "database_structure_error": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "text": {
                "description": "The branch details and database tree as text.",
                "type": "string"
              }
            },
            "required": [
              "branch",
              "console_url",
              "text",
              "database_structure"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Describe Branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve project details"
      },
      "description": "Gets a project's settings, owner, and usage. For branches, use list_branches.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "branch_logical_size_limit": {
                "type": "number"
              },
              "branch_logical_size_limit_bytes": {
                "type": "number"
              },
              "compute_last_active_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "consumption_period_end": {
                "type": "string"
              },
              "consumption_period_start": {
                "type": "string"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "creation_source": {
                "type": "string"
              },
              "data_storage_bytes_hour": {
                "type": "number"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default_endpoint_settings": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "effective_project_permission": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "hipaa_enabled_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "history_retention_seconds": {
                "type": "number"
              },
              "id": {
                "type": "string"
              },
              "maintenance_scheduled_for": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "maintenance_starts_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "org_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "owner_id": {
                "type": "string"
              },
              "pg_version": {
                "type": "number"
              },
              "platform_id": {
                "type": "string"
              },
              "provisioner": {
                "type": "string"
              },
              "proxy_host": {
                "type": "string"
              },
              "quota_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region_id": {
                "type": "string"
              },
              "settings": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "store_passwords": {
                "type": "boolean"
              },
              "synthetic_storage_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "data_storage_bytes_hour",
              "data_transfer_bytes",
              "written_data_bytes",
              "compute_time_seconds",
              "active_time_seconds",
              "cpu_used_sec",
              "id",
              "platform_id",
              "region_id",
              "name",
              "provisioner",
              "pg_version",
              "proxy_host",
              "branch_logical_size_limit",
              "branch_logical_size_limit_bytes",
              "store_passwords",
              "creation_source",
              "history_retention_seconds",
              "created_at",
              "updated_at",
              "consumption_period_start",
              "consumption_period_end",
              "owner_id"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve project details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Describe Table Schema"
      },
      "description": "Returns a table's columns, indexes, constraints, and sizes. For every table, use get_database_tables.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name. Omit it for the default branch.",
            "type": "string"
          },
          "database_name": {
            "description": "Database name. Omit for neondb, else the first database.",
            "type": "string"
          },
          "project_id": {
            "description": "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"
          },
          "table_name": {
            "description": "The table name, optionally schema-qualified (for example, crm.contacts)",
            "type": "string"
          }
        },
        "required": [
          "table_name"
        ],
        "type": "object"
      },
      "name": "describe_table_schema",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "formatted": {
                "description": "The same, as text.",
                "type": "string"
              },
              "raw": {
                "description": "Columns, indexes, constraints, and sizes.",
                "type": "object"
              }
            },
            "required": [
              "raw",
              "formatted"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Describe Table Schema"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Disable Neon Auth for the branch"
      },
      "description": "Disables Neon Auth on a branch. delete_data also drops the neon_auth schema and its tables.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Disable Neon Auth for the branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Disable Realtime"
      },
      "description": "Disables Realtime on a branch, discarding its secret, and waits until it is applied.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Disable Realtime"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Enable Realtime"
      },
      "description": "Enables Realtime on a branch, or changes its allowed origins, and waits until it is applied. Enabling turns on logical replication for the whole project, which cannot be turned off, and suspends every compute in the project, dropping active connections. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first.",
      "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": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Enable Realtime"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Explain SQL Statement"
      },
      "description": "Returns a statement's execution plan as JSON. analyze true executes it, side effects included, so never analyze potentially destructive SQL autonomously. For rows, use run_sql.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "analyze": {
            "default": false,
            "description": "Run EXPLAIN ANALYZE, which executes the statement and its side effects.",
            "type": "boolean"
          },
          "branch_id": {
            "description": "A br-... id, not a name. Omit it for the default branch.",
            "type": "string"
          },
          "database_name": {
            "description": "Database name. Omit for neondb, else the first database.",
            "type": "string"
          },
          "project_id": {
            "description": "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"
          },
          "sql": {
            "description": "The SQL statement to explain.",
            "type": "string"
          }
        },
        "required": [
          "sql"
        ],
        "type": "object"
      },
      "name": "explain_sql_statement",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Explain SQL Statement"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Fetch"
      },
      "description": "Returns an organization, project, branch, compute, or snapshot by an id from search: markdown text, console URL, and records in metadata.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "An id from search, such as project:\u003cproject_id\u003e.",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "name": "fetch",
      "outputSchema": {
        "properties": {
          "id": {
            "type": "string"
          },
          "metadata": {
            "description": "API records: organization, members, and projects; project and branches; endpoint; or snapshot.",
            "type": "object"
          },
          "text": {
            "description": "The resource as markdown.",
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "description": "Console URL.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "text",
          "url",
          "metadata"
        ],
        "type": "object"
      },
      "title": "Fetch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Finalize branch restore from snapshot"
      },
      "description": "Finalizes a branch restored with finalize false: moves the original branch's computes onto it, restarting them, and takes over its name. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "name": {
            "description": "Name for the replaced branch.",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Finalize branch restore from snapshot"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get branch AI Gateway endpoint"
      },
      "description": "Gets a branch's AI Gateway host; a 404 says why it is unavailable.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "base_url": {
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "enabled",
              "base_url"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Get branch AI Gateway endpoint"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve Neon Auth details for the branch"
      },
      "description": "Gets a branch's Neon Auth integration record: provider, base URL, JWKS URL, and database. Prefer get_neon_auth_config, which adds the auth settings, unless you only need the record.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "auth_provider": {
                "type": "string"
              },
              "auth_provider_project_id": {
                "type": "string"
              },
              "base_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "branch_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "db_name": {
                "type": "string"
              },
              "jwks_url": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owned_by": {
                "type": "string"
              },
              "transfer_status": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "auth_provider",
              "auth_provider_project_id",
              "branch_id",
              "db_name",
              "created_at",
              "owned_by",
              "jwks_url"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve Neon Auth details for the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve an OAuth client"
      },
      "description": "Gets an OAuth client of a branch's Neon Auth OAuth server, without its secret.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "client_id": {
                "type": "string"
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "disabled": {
                "type": "boolean"
              },
              "name": {
                "type": "string"
              },
              "redirect_uris": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "resources": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "skip_consent": {
                "type": "boolean"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "client_id",
              "name",
              "type",
              "redirect_uris",
              "resources",
              "skip_consent",
              "disabled"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve an OAuth client"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve OAuth provider plugin configuration"
      },
      "description": "Gets a branch's Neon Auth OAuth 2.1 server settings (oauth_provider plugin), for example for MCP clients. For social login, use list_auth_oauth_providers.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "consent_page": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "enabled": {
                "type": "boolean"
              },
              "login_page": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mcp": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "resources": {
                "anyOf": [
                  {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "enabled"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve OAuth provider plugin configuration"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve branch details"
      },
      "description": "Gets a branch record: name, parent, state, protection, size, and timestamps. For its databases and tables, use describe_branch.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default": {
                "type": "boolean"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "init_source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "logical_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "parent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_lsn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_timestamp": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "primary": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "project_id": {
                "type": "string"
              },
              "protected": {
                "type": "boolean"
              },
              "recovery": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "restore_status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_as": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_from": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restricted_actions": {
                "anyOf": [
                  {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state_changed_at": {
                "type": "string"
              },
              "ttl_interval_seconds": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "project_id",
              "name",
              "current_state",
              "state_changed_at",
              "creation_source",
              "default",
              "protected",
              "cpu_used_sec",
              "compute_time_seconds",
              "active_time_seconds",
              "written_data_bytes",
              "data_transfer_bytes",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve branch details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve branch consumption metrics"
      },
      "description": "Returns per-branch consumption for project_ids. metrics: 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. Usage-based Launch, Scale, Agent, or Enterprise plans only. Returns every page. Pass limit to cap how many.",
      "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": "Period start, rounded to granularity.",
            "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": "hourly reaches back 168 hours, daily 60 days, monthly one year.",
            "enum": [
              "hourly",
              "daily",
              "monthly"
            ],
            "type": "string"
          },
          "limit": {
            "description": "Maximum number of branches per page.",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "metrics": {
            "description": "Metric names from the tool description; any other returns HTTP 400. extra_branches_month and snapshot_storage_bytes_month are only on get_project_consumption.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "org_id": {
            "description": "Organization id from list_organizations.",
            "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": "Period end, rounded to granularity.",
            "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "branch_id": {
                  "type": "string"
                },
                "periods": {
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                },
                "project_id": {
                  "type": "string"
                }
              },
              "required": [
                "project_id",
                "branch_id",
                "periods"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve branch consumption metrics"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get connection string"
      },
      "description": "Returns a Postgres connection string with a role password; the branch needs a compute. Omitted inputs resolve like the SQL tools: default branch, neondb or the first database, and its owner. Call it after create_project or create_branch, which return none. `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": "A br-... id, not a name. Omit it for the default branch.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "compute_id": {
            "description": "Compute endpoint id (ep-...). Omit for the read-write compute.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "Database name. Omit for neondb, else the first database.",
            "type": "string"
          },
          "project_id": {
            "description": "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": "Postgres role to log in as. Omit for the database owner.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "get_connection_string",
      "outputSchema": {
        "properties": {
          "data": {
            "description": "A postgresql:// connection string.",
            "type": "string"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Get connection string"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve Neon Data API configuration"
      },
      "description": "Gets the Neon Data API configuration for one database on a branch. Returns enabled false when the database has no Data API; provision_neon_data_api enables it.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "anyOf": [
              {
                "properties": {
                  "auth_provider": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "available_schemas": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enabled": {
                    "const": true,
                    "type": "boolean"
                  },
                  "jwks_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "jwt_audience": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "observed_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "provider_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "settings": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "status": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  }
                },
                "required": [
                  "url",
                  "status",
                  "enabled"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "enabled": {
                    "const": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "enabled"
                ],
                "type": "object"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve Neon Data API configuration"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get Database Tables"
      },
      "description": "Lists a database's tables and views outside the system schemas. For one table's columns, use describe_table_schema.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name. Omit it for the default branch.",
            "type": "string"
          },
          "database_name": {
            "description": "Database name. Omit for neondb, else the first database.",
            "type": "string"
          },
          "project_id": {
            "description": "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_database_tables",
      "outputSchema": {
        "properties": {
          "data": {
            "description": "One row per table: table_schema, table_name, table_type.",
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Get Database Tables"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get default branch"
      },
      "description": "Gets the project's default branch by its default flag, not its name.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default": {
                "type": "boolean"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "init_source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "logical_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "parent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_lsn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_timestamp": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "primary": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "project_id": {
                "type": "string"
              },
              "protected": {
                "type": "boolean"
              },
              "recovery": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "restore_status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_as": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_from": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restricted_actions": {
                "anyOf": [
                  {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state_changed_at": {
                "type": "string"
              },
              "ttl_interval_seconds": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "project_id",
              "name",
              "current_state",
              "state_changed_at",
              "creation_source",
              "default",
              "protected",
              "cpu_used_sec",
              "compute_time_seconds",
              "active_time_seconds",
              "written_data_bytes",
              "data_transfer_bytes",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Get default branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": true,
        "title": "Get Documentation Page"
      },
      "description": "Returns one neon.com page as markdown, by the slug of a search_docs hit.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "slug": {
            "description": "The slug of a search_docs hit, e.g. 'docs/guides/prisma' or 'postgresql/tutorial/inner-join'.",
            "type": "string"
          }
        },
        "required": [
          "slug"
        ],
        "type": "object"
      },
      "name": "get_doc",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "markdown": {
                "description": "The page as markdown.",
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "url",
              "markdown"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Get Documentation Page"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get function details"
      },
      "description": "Gets a function on a branch by slug.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_deployment": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "current_deployment": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "invocation_url": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "slug",
              "name",
              "invocation_url",
              "created_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Get function details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get Neon Auth configuration"
      },
      "description": "Returns a branch's Neon Auth integration and settings: trusted origins, localhost, email and password, OAuth and email providers, plugins, webhook, and logs export. Needs Neon Auth on the branch (provision_neon_auth).",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name. Omit it for the project's default branch.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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_neon_auth_config",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "_errors": {
                "description": "Settings that failed to read, by key.",
                "type": [
                  "object",
                  "null"
                ]
              },
              "allow_localhost": {
                "type": "boolean"
              },
              "auth_methods": {
                "description": "Email and password settings.",
                "type": "object"
              },
              "base_url": {
                "description": "Neon Auth API base URL.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "branch_id": {
                "type": "string"
              },
              "branch_name": {
                "type": "string"
              },
              "db_name": {
                "description": "Database that holds the auth schema.",
                "type": "string"
              },
              "email_provider": {
                "description": "Email server, secrets redacted."
              },
              "integration": {
                "description": "The branch's Neon Auth integration.",
                "type": "object"
              },
              "jwks_url": {
                "description": "JWKS URL for verifying session tokens.",
                "type": "string"
              },
              "logs_export": {
                "description": "Logs export settings."
              },
              "oauth_providers": {
                "description": "OAuth providers, secrets redacted.",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "plugins": {
                "description": "Plugin settings."
              },
              "project_id": {
                "type": "string"
              },
              "trusted_origins": {
                "description": "Domains allowed as redirect targets.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "webhook": {
                "description": "Webhook settings, secrets redacted."
              }
            },
            "required": [
              "project_id",
              "branch_id",
              "branch_name",
              "base_url",
              "jwks_url",
              "db_name",
              "integration",
              "trusted_origins",
              "allow_localhost",
              "auth_methods",
              "oauth_providers",
              "email_provider",
              "plugins",
              "webhook",
              "logs_export"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Get Neon Auth configuration"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve operation details"
      },
      "description": "Gets one operation and its status.",
      "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "action": {
                "type": "string"
              },
              "branch_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "endpoint_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "error": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "failures_count": {
                "type": "number"
              },
              "id": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "retry_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": "string"
              },
              "total_duration_ms": {
                "type": "number"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "project_id",
              "action",
              "status",
              "failures_count",
              "created_at",
              "updated_at",
              "total_duration_ms"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve operation details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve database details"
      },
      "description": "Gets a database on a branch and its owner.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "branch_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "id": {
                "type": "number"
              },
              "name": {
                "type": "string"
              },
              "owner_name": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "branch_id",
              "name",
              "owner_name",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve database details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve compute endpoint details"
      },
      "description": "Gets a compute endpoint (ep-...), including its host and state.",
      "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "autoscaling_limit_max_cu": {
                "type": "number"
              },
              "autoscaling_limit_min_cu": {
                "type": "number"
              },
              "branch_id": {
                "type": "string"
              },
              "compute_release_version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "disabled": {
                "type": "boolean"
              },
              "host": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "last_active": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "passwordless_access": {
                "type": "boolean"
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pooler_enabled": {
                "type": "boolean"
              },
              "pooler_mode": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "provisioner": {
                "type": "string"
              },
              "proxy_host": {
                "type": "string"
              },
              "region_id": {
                "type": "string"
              },
              "settings": {
                "type": "object"
              },
              "started_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "suspend_timeout_seconds": {
                "type": "number"
              },
              "suspended_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "host",
              "id",
              "project_id",
              "branch_id",
              "autoscaling_limit_min_cu",
              "autoscaling_limit_max_cu",
              "region_id",
              "type",
              "current_state",
              "settings",
              "pooler_enabled",
              "pooler_mode",
              "disabled",
              "passwordless_access",
              "creation_source",
              "created_at",
              "updated_at",
              "proxy_host",
              "suspend_timeout_seconds",
              "provisioner"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve compute endpoint details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve role details"
      },
      "description": "Gets a Postgres role on a branch.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "authentication_method": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "branch_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "password": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "protected": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "branch_id",
              "name",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve role details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve project consumption metrics"
      },
      "description": "Returns per-project consumption in an organization. metrics: every name get_branch_consumption takes, plus extra_branches_month and snapshot_storage_bytes_month. Launch, Scale, Agent, Business, or Enterprise plans; others get 403. Returns every page. Pass limit to cap how many.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "from": {
            "description": "Period start, rounded to granularity.",
            "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": "hourly reaches back 168 hours, daily 60 days, monthly one year.",
            "enum": [
              "hourly",
              "daily",
              "monthly"
            ],
            "type": "string"
          },
          "limit": {
            "description": "Maximum number of projects per page.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "metrics": {
            "description": "Metric names from the tool description. An unknown name returns no data rather than an error.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "org_id": {
            "description": "Organization id from list_organizations.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_ids": {
            "description": "Up to 100 project ids. Omit for every project with history in the organization, including deleted ones.",
            "items": {
              "pattern": "^([a-z0-9-]{1,60}(,[a-z0-9-]{1,60}){0,99})?$",
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 0,
            "type": "array"
          },
          "to": {
            "description": "Period end, rounded to granularity.",
            "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "periods": {
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                },
                "project_id": {
                  "type": "string"
                }
              },
              "required": [
                "project_id",
                "periods"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve project consumption metrics"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve Realtime state"
      },
      "description": "Gets a branch's Realtime state, URL, and allowed origins; the secret comes from get_realtime_secret.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "allowed_origins": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "enabled": {
                "type": "boolean"
              },
              "invocation_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pending": {
                "type": "boolean"
              },
              "revision": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "enabled",
              "pending"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve Realtime state"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve the Realtime shared secret"
      },
      "description": "Gets the secret the application backend issues Realtime tokens with; 404 until enable_realtime has run. Requires write access: the secret lets its holder issue Realtime tokens for the branch, so it is unavailable in read-only mode.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "pending": {
                "type": "boolean"
              },
              "secret": {
                "type": "string"
              }
            },
            "required": [
              "secret",
              "pending"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve the Realtime shared secret"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Retrieve backup schedule"
      },
      "description": "Gets a branch's automatic snapshot schedule.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "schedule": {
                "items": {
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "schedule"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Retrieve backup schedule"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get branch object storage state"
      },
      "description": "Checks whether object storage is available on a branch; a 404 says why not.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "force_path_style": {
                "type": "boolean"
              },
              "region": {
                "type": "string"
              },
              "s3_endpoint": {
                "type": "string"
              }
            },
            "required": [
              "enabled",
              "s3_endpoint",
              "region",
              "force_path_style"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Get branch object storage state"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get a trigger"
      },
      "description": "Gets a function trigger on a branch.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "anyOf": [
              {
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "function_path": {
                    "type": "string"
                  },
                  "function_slug": {
                    "type": "string"
                  },
                  "inherited": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "next_run_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "schedule": {
                    "type": "object"
                  },
                  "trigger_id": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "version": {
                    "type": "number"
                  }
                },
                "required": [
                  "type",
                  "trigger_id",
                  "function_slug",
                  "name",
                  "function_path",
                  "schedule",
                  "enabled",
                  "version",
                  "next_run_at",
                  "inherited"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "function_path": {
                    "type": "string"
                  },
                  "function_slug": {
                    "type": "string"
                  },
                  "inherited": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "storage_object_created": {
                    "type": "object"
                  },
                  "trigger_id": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "version": {
                    "type": "number"
                  }
                },
                "required": [
                  "type",
                  "trigger_id",
                  "function_slug",
                  "name",
                  "function_path",
                  "storage_object_created",
                  "enabled",
                  "version",
                  "inherited"
                ],
                "type": "object"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Get a trigger"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Inspect Database"
      },
      "description": "Runs one read-only neon inspect db check; some are compute-wide. outliers ranks queries by total time and calls by count, both via pg_stat_statements; lfc-hit-rate and working-set need the neon extension. If one is missing, the error gives the CREATE EXTENSION; ask before running it. Other SQL: run_sql; one plan: explain_sql_statement; new indexes: prepare_query_tuning.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name. Omit it for the default branch.",
            "type": "string"
          },
          "check": {
            "description": "The diagnostic to run.",
            "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": "Compute endpoint id (ep-...). Omit for the read-write compute.",
            "type": "string"
          },
          "database_name": {
            "description": "Database to inspect, or to connect through for a compute-wide check. Omit for every database; one failure fails the run.",
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "default": 50,
            "description": "Rows to return. Raise it only when truncated is true.",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "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"
          }
        },
        "required": [
          "check"
        ],
        "type": "object"
      },
      "name": "inspect_database",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "branchId": {
                "type": "string"
              },
              "check": {
                "description": "The check that ran.",
                "type": "string"
              },
              "databaseName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "databases": {
                "description": "Databases the check covered.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "describe": {
                "description": "What the check reports.",
                "type": "string"
              },
              "fields": {
                "description": "Column names in rows.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "note": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "projectId": {
                "type": "string"
              },
              "rows": {
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "totalRowCount": {
                "type": "number"
              },
              "truncated": {
                "type": "boolean"
              }
            },
            "required": [
              "check",
              "describe",
              "projectId",
              "branchId",
              "databases",
              "fields",
              "totalRowCount",
              "rows",
              "truncated"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Inspect Database"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List OAuth clients"
      },
      "description": "Lists the OAuth clients (apps, MCP clients) of a branch's Neon Auth OAuth server, without secrets; not social login providers.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "client_id": {
                  "type": "string"
                },
                "created_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "disabled": {
                  "type": "boolean"
                },
                "name": {
                  "type": "string"
                },
                "redirect_uris": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "resources": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "skip_consent": {
                  "type": "boolean"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "client_id",
                "name",
                "type",
                "redirect_uris",
                "resources",
                "skip_consent",
                "disabled"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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, Discord) of a branch's Neon Auth. For Neon Auth as an OAuth server, use get_auth_oauth_server.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "apple_key_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "apple_team_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "client_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "client_secret": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "microsoft_tenant_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "type"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 domains a branch's Neon Auth may redirect to after sign-in.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "auth_provider": {
                  "type": "string"
                },
                "domain": {
                  "type": "string"
                }
              },
              "required": [
                "domain",
                "auth_provider"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List domains in redirect_uri whitelist"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List branch endpoints"
      },
      "description": "Lists a branch's compute endpoints. For every branch in the project, use list_postgres_endpoints.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "autoscaling_limit_max_cu": {
                  "type": "number"
                },
                "autoscaling_limit_min_cu": {
                  "type": "number"
                },
                "branch_id": {
                  "type": "string"
                },
                "compute_release_version": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "created_at": {
                  "type": "string"
                },
                "creation_source": {
                  "type": "string"
                },
                "current_state": {
                  "type": "string"
                },
                "disabled": {
                  "type": "boolean"
                },
                "host": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "last_active": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "passwordless_access": {
                  "type": "boolean"
                },
                "pending_state": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pooler_enabled": {
                  "type": "boolean"
                },
                "pooler_mode": {
                  "type": "string"
                },
                "project_id": {
                  "type": "string"
                },
                "provisioner": {
                  "type": "string"
                },
                "proxy_host": {
                  "type": "string"
                },
                "region_id": {
                  "type": "string"
                },
                "settings": {
                  "type": "object"
                },
                "started_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "suspend_timeout_seconds": {
                  "type": "number"
                },
                "suspended_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "type": {
                  "type": "string"
                },
                "updated_at": {
                  "type": "string"
                }
              },
              "required": [
                "host",
                "id",
                "project_id",
                "branch_id",
                "autoscaling_limit_min_cu",
                "autoscaling_limit_max_cu",
                "region_id",
                "type",
                "current_state",
                "settings",
                "pooler_enabled",
                "pooler_mode",
                "disabled",
                "passwordless_access",
                "creation_source",
                "created_at",
                "updated_at",
                "proxy_host",
                "suspend_timeout_seconds",
                "provisioner"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List branch endpoints"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List branches"
      },
      "description": "Lists a project's branches with id (br-...), name, parent, and default flag; search finds a branch's id by name. 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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "active_time_seconds": {
                  "type": "number"
                },
                "compute_time_seconds": {
                  "type": "number"
                },
                "cpu_used_sec": {
                  "type": "number"
                },
                "created_at": {
                  "type": "string"
                },
                "created_by": {
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "creation_source": {
                  "type": "string"
                },
                "current_state": {
                  "type": "string"
                },
                "data_transfer_bytes": {
                  "type": "number"
                },
                "default": {
                  "type": "boolean"
                },
                "expires_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "init_source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "last_reset_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "logical_size": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "parent_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "parent_lsn": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "parent_timestamp": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pending_state": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "primary": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "project_id": {
                  "type": "string"
                },
                "protected": {
                  "type": "boolean"
                },
                "recovery": {
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "restore_status": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "restored_as": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "restored_from": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "restricted_actions": {
                  "anyOf": [
                    {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "state_changed_at": {
                  "type": "string"
                },
                "ttl_interval_seconds": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "updated_at": {
                  "type": "string"
                },
                "written_data_bytes": {
                  "type": "number"
                }
              },
              "required": [
                "id",
                "project_id",
                "name",
                "current_state",
                "state_changed_at",
                "creation_source",
                "default",
                "protected",
                "cpu_used_sec",
                "compute_time_seconds",
                "active_time_seconds",
                "written_data_bytes",
                "data_transfer_bytes",
                "created_at",
                "updated_at"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List branches"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List credentials on the branch"
      },
      "description": "Lists the scoped credentials issued on a branch, without secrets.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "branch_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "created_at": {
                  "type": "string"
                },
                "expires_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "function_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "last_used_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "principal_type": {
                  "type": "string"
                },
                "revoked_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "scopes": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "token_id": {
                  "type": "string"
                },
                "token_id_short": {
                  "type": "string"
                }
              },
              "required": [
                "token_id",
                "token_id_short",
                "scopes",
                "principal_type",
                "created_at"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List credentials on the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List functions on the branch"
      },
      "description": "Lists the functions on a branch. Returns every page. Pass limit to cap how many.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "active_deployment": {
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "created_at": {
                  "type": "string"
                },
                "current_deployment": {
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "invocation_url": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "slug",
                "name",
                "invocation_url",
                "created_at"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 a branch's custom domains and their targets. Returns every page. Pass limit to cap how many.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "binding_status": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "cname_target": {
                  "type": "string"
                },
                "dns_status": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "domain": {
                  "type": "string"
                },
                "entity_id": {
                  "type": "string"
                },
                "entity_type": {
                  "type": "string"
                },
                "status": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "status_reason": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "domain",
                "entity_type",
                "entity_id",
                "cname_target"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List the custom domains on a branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": true,
        "title": "List Neon incidents"
      },
      "description": "Lists open Neon incidents and maintenance from neonstatus.com and the affected components and regions. Needs no credentials. Fetches the page on every call; updated_at is when neonstatus.com last updated the overall status, not when this call fetched it. Call it when Neon requests fail unexpectedly or the user asks whether Neon is down.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "name": "list_incidents",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "affected_components": {
                "description": "Components that are not operational.",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "incidents": {
                "description": "Open incidents.",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "maintenance": {
                "description": "Active maintenance first, then upcoming.",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "status": {
                "description": "Overall status: operational, degraded, or outage.",
                "type": "string"
              },
              "status_page_url": {
                "type": "string"
              },
              "updated_at": {
                "description": "When neonstatus.com last updated the overall status, not when this call fetched it.",
                "type": "string"
              }
            },
            "required": [
              "status",
              "updated_at",
              "status_page_url",
              "incidents",
              "maintenance",
              "affected_components"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List Neon incidents"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List branch log field values"
      },
      "description": "Lists the distinct values of one log field; a field the branch never emitted returns unknown_field. Pass since or start_time, not both; default last six hours, max seven days.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "A field name from list_log_fields.",
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "Maximum number of distinct values to return.",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "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. neon_auth returns 404 telemetry_not_enabled when the project's Neon Auth logs are not enabled, even when other sources return logs.",
            "enum": [
              "function",
              "storage",
              "pg_endpoint",
              "neon_auth"
            ],
            "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "is_truncated": {
                "type": "boolean"
              },
              "values": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "values",
              "is_truncated"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 seen on a branch, for list_log_field_values.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List branch log fields"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List operations"
      },
      "description": "Lists a project's operations; ones older than six months may be gone. Returns every page. Pass limit to cap how many.",
      "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "action": {
                  "type": "string"
                },
                "branch_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "created_at": {
                  "type": "string"
                },
                "endpoint_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "error": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "failures_count": {
                  "type": "number"
                },
                "id": {
                  "type": "string"
                },
                "project_id": {
                  "type": "string"
                },
                "retry_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "status": {
                  "type": "string"
                },
                "total_duration_ms": {
                  "type": "number"
                },
                "updated_at": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "project_id",
                "action",
                "status",
                "failures_count",
                "created_at",
                "updated_at",
                "total_duration_ms"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List operations"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List organizations for the current user"
      },
      "description": "Lists the organizations the user belongs to; an organization API key gets its own organization. search filters by name or id.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "search": {
            "description": "Part of an organization name or id, ignoring case.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list_organizations",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "allow_hipaa_projects": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "created_at": {
                  "type": "string"
                },
                "handle": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "managed_by": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "plan": {
                  "type": "string"
                },
                "require_mfa": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "updated_at": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "handle",
                "plan",
                "created_at",
                "managed_by",
                "updated_at"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List organizations for the current user"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List databases"
      },
      "description": "Lists a branch's databases and their owners.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "branch_id": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string"
                },
                "id": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "owner_name": {
                  "type": "string"
                },
                "updated_at": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "branch_id",
                "name",
                "owner_name",
                "created_at",
                "updated_at"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List databases"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List compute endpoints"
      },
      "description": "Lists the compute endpoints of every branch in a project. For one branch, use list_branch_computes.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "autoscaling_limit_max_cu": {
                  "type": "number"
                },
                "autoscaling_limit_min_cu": {
                  "type": "number"
                },
                "branch_id": {
                  "type": "string"
                },
                "compute_release_version": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "created_at": {
                  "type": "string"
                },
                "creation_source": {
                  "type": "string"
                },
                "current_state": {
                  "type": "string"
                },
                "disabled": {
                  "type": "boolean"
                },
                "host": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "last_active": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "passwordless_access": {
                  "type": "boolean"
                },
                "pending_state": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pooler_enabled": {
                  "type": "boolean"
                },
                "pooler_mode": {
                  "type": "string"
                },
                "project_id": {
                  "type": "string"
                },
                "provisioner": {
                  "type": "string"
                },
                "proxy_host": {
                  "type": "string"
                },
                "region_id": {
                  "type": "string"
                },
                "settings": {
                  "type": "object"
                },
                "started_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "suspend_timeout_seconds": {
                  "type": "number"
                },
                "suspended_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "type": {
                  "type": "string"
                },
                "updated_at": {
                  "type": "string"
                }
              },
              "required": [
                "host",
                "id",
                "project_id",
                "branch_id",
                "autoscaling_limit_min_cu",
                "autoscaling_limit_max_cu",
                "region_id",
                "type",
                "current_state",
                "settings",
                "pooler_enabled",
                "pooler_mode",
                "disabled",
                "passwordless_access",
                "creation_source",
                "created_at",
                "updated_at",
                "proxy_host",
                "suspend_timeout_seconds",
                "provisioner"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List compute endpoints"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List roles"
      },
      "description": "Lists a branch's Postgres roles.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "authentication_method": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "branch_id": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "password": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "protected": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "updated_at": {
                  "type": "string"
                }
              },
              "required": [
                "branch_id",
                "name",
                "created_at",
                "updated_at"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 roles on an org-owned project; 404 when the project is not org-owned or per-project roles are off. 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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "effective_project_permission": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "explicit_project_permission": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "grant_source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "member_id": {
                  "type": "string"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "org_default_project_permission": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "org_role": {
                  "type": "string"
                },
                "project_role": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "user_id": {
                  "type": "string"
                }
              },
              "required": [
                "member_id",
                "user_id",
                "org_role"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List org members and their project roles"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List project access"
      },
      "description": "Lists who has access to a project: each permission id, email, and grant date.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "granted_at": {
                  "type": "string"
                },
                "granted_to_email": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "revoked_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "granted_to_email",
                "granted_at"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List project access"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List projects"
      },
      "description": "Lists the projects in an organization; search filters by name or id. To also find branches, computes, or snapshots, use search. Returns every page. Pass limit to cap how many. `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": "Organization id from list_organizations; required with a personal API key.",
            "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "active_time": {
                  "type": "number"
                },
                "branch_logical_size_limit": {
                  "type": "number"
                },
                "branch_logical_size_limit_bytes": {
                  "type": "number"
                },
                "compute_last_active_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "cpu_used_sec": {
                  "type": "number"
                },
                "created_at": {
                  "type": "string"
                },
                "creation_source": {
                  "type": "string"
                },
                "default_endpoint_settings": {
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "deleted_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "effective_project_permission": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "hipaa_enabled_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "history_retention_seconds": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "maintenance_starts_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "org_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "org_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "owner_id": {
                  "type": "string"
                },
                "pg_version": {
                  "type": "number"
                },
                "platform_id": {
                  "type": "string"
                },
                "provisioner": {
                  "type": "string"
                },
                "proxy_host": {
                  "type": "string"
                },
                "quota_reset_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "recoverable_until": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "region_id": {
                  "type": "string"
                },
                "settings": {
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "store_passwords": {
                  "type": "boolean"
                },
                "synthetic_storage_size": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "updated_at": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "platform_id",
                "region_id",
                "name",
                "provisioner",
                "pg_version",
                "proxy_host",
                "branch_logical_size_limit",
                "branch_logical_size_limit_bytes",
                "store_passwords",
                "active_time",
                "cpu_used_sec",
                "creation_source",
                "created_at",
                "updated_at",
                "owner_id"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List projects"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List regions"
      },
      "description": "Lists the regions you can create projects in. An organization API key gets 404.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "name": "list_regions",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "default": {
                  "type": "boolean"
                },
                "geo_lat": {
                  "type": "string"
                },
                "geo_long": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "region_id": {
                  "type": "string"
                }
              },
              "required": [
                "region_id",
                "name",
                "default",
                "geo_lat",
                "geo_long"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List regions"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List Slow Queries"
      },
      "description": "Lists queries from pg_stat_statements, slowest mean execution time first, leaving out Neon's own setup and session-reset statements. 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": "A br-... id, not a name. Omit it for the default branch.",
            "type": "string"
          },
          "compute_id": {
            "description": "Compute endpoint id (ep-...). Omit for the read-write compute.",
            "type": "string"
          },
          "database_name": {
            "description": "Database name. Omit for neondb, else the first database.",
            "type": "string"
          },
          "limit": {
            "default": 10,
            "description": "Maximum number of queries to return.",
            "type": "number"
          },
          "min_execution_time": {
            "default": 1000,
            "description": "Ignored; results are not filtered by time.",
            "type": "number"
          },
          "project_id": {
            "description": "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": "list_slow_queries",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "slow_queries": {
                "description": "pg_stat_statements entries: query, calls, timings in ms, rows, and block and WAL counters.",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "total_queries_found": {
                "type": "number"
              }
            },
            "required": [
              "slow_queries",
              "total_queries_found"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List Slow Queries"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List project snapshots"
      },
      "description": "Lists a project's snapshots.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "created_at": {
                  "type": "string"
                },
                "diff_size": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "expires_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "full_size": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "lsn": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "manual": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "source_branch_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "timestamp": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "created_at"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List project snapshots"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List buckets on the branch"
      },
      "description": "Lists a branch's object storage buckets, inherited ones included.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "access_level": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "access_level",
                "created_at"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List buckets on the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List objects in a bucket"
      },
      "description": "Lists a bucket's objects on a branch, inherited ones included. Returns every page. Pass limit to cap how many.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "bucket_name": {
            "description": "The bucket name",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "delimiter": {
            "description": "Groups keys up to this delimiter, usually /, into folders.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "folders": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "objects": {
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "prefix": {
                "type": "string"
              }
            },
            "required": [
              "folders",
              "objects",
              "prefix"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List objects in a bucket"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List triggers on the branch"
      },
      "description": "Lists a branch's function triggers, including inherited ones, which stay disabled on this branch until enabled.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "anyOf": [
                {
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "function_path": {
                      "type": "string"
                    },
                    "function_slug": {
                      "type": "string"
                    },
                    "inherited": {
                      "type": "boolean"
                    },
                    "name": {
                      "type": "string"
                    },
                    "next_run_at": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "schedule": {
                      "type": "object"
                    },
                    "trigger_id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "version": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "type",
                    "trigger_id",
                    "function_slug",
                    "name",
                    "function_path",
                    "schedule",
                    "enabled",
                    "version",
                    "next_run_at",
                    "inherited"
                  ],
                  "type": "object"
                },
                {
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "function_path": {
                      "type": "string"
                    },
                    "function_slug": {
                      "type": "string"
                    },
                    "inherited": {
                      "type": "boolean"
                    },
                    "name": {
                      "type": "string"
                    },
                    "storage_object_created": {
                      "type": "object"
                    },
                    "trigger_id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "version": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "type",
                    "trigger_id",
                    "function_slug",
                    "name",
                    "function_path",
                    "storage_object_created",
                    "enabled",
                    "version",
                    "inherited"
                  ],
                  "type": "object"
                }
              ]
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "List triggers on the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Prepare Database Migration"
      },
      "description": "Applies a schema change on a new temporary branch and returns a migration_id. Test it there with run_sql, then always call complete_database_migration with the response's complete object so the branch is deleted.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "database_name": {
            "description": "Database name. Omit for neondb, else the first database.",
            "type": "string"
          },
          "migration_sql": {
            "description": "The migration SQL. It is split on every semicolon, including one inside a string or function body.",
            "type": "string"
          },
          "project_id": {
            "description": "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"
          }
        },
        "required": [
          "migration_sql"
        ],
        "type": "object"
      },
      "name": "prepare_database_migration",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "complete": {
                "description": "The values that apply or discard the migration.",
                "type": "object"
              },
              "migration_result": {
                "description": "Rows per statement.",
                "items": {
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                },
                "type": "array"
              },
              "temporary_branch": {
                "description": "The branch the migration ran on.",
                "type": "object"
              }
            },
            "required": [
              "complete",
              "temporary_branch",
              "migration_result"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Prepare Database Migration"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Prepare Query Tuning"
      },
      "description": "Runs EXPLAIN ANALYZE for a slow query on a new temporary branch; returns the plan, table schemas, and a tuning_id. Try changes there with run_sql and explain_sql_statement, then always call complete_query_tuning with the complete object so the branch is deleted. Not prepare_database_migration.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "database_name": {
            "description": "The database the statement runs in.",
            "type": "string"
          },
          "project_id": {
            "description": "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"
          },
          "role_name": {
            "description": "Postgres role to connect as. Omit for the database owner.",
            "type": "string"
          },
          "sql": {
            "description": "The slow SQL statement to analyze.",
            "type": "string"
          }
        },
        "required": [
          "sql",
          "database_name"
        ],
        "type": "object"
      },
      "name": "prepare_query_tuning",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "baseline_metrics": {
                "description": "Execution and planning time, cost, rows, and buffer usage.",
                "type": "object"
              },
              "complete": {
                "description": "The values that apply or discard the tuning.",
                "type": "object"
              },
              "execution_plan": {
                "description": "EXPLAIN ANALYZE output.",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "sql": {
                "type": "string"
              },
              "table_schemas": {
                "description": "Schemas of the tables the query reads.",
                "items": {
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "complete",
              "execution_plan",
              "table_schemas",
              "sql",
              "baseline_metrics"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 short-lived presigned PUT or GET URL for one object, with the headers to send; no S3 credentials needed.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "expires_at": {
                "type": "string"
              },
              "headers": {
                "type": "object"
              },
              "method": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "url",
              "method",
              "headers",
              "expires_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "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 on a branch and creates the neon_auth schema in its database.",
      "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": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "auth_provider": {
                "type": "string"
              },
              "auth_provider_project_id": {
                "type": "string"
              },
              "base_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "jwks_url": {
                "type": "string"
              },
              "pub_client_key": {
                "type": "string"
              },
              "schema_name": {
                "type": "string"
              },
              "secret_server_key": {
                "type": "string"
              },
              "table_name": {
                "type": "string"
              }
            },
            "required": [
              "auth_provider",
              "auth_provider_project_id",
              "pub_client_key",
              "secret_server_key",
              "jwks_url",
              "schema_name",
              "table_name"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Enable Neon Auth for the branch"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false,
        "title": "Create Neon Data API"
      },
      "description": "Creates the Neon Data API, a REST interface over database_name, on a branch.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "add_default_grants": {
            "description": "Grants the authenticated role read and write access to public-schema tables, including tables the database owner creates later. Without it, the Data API can read no table until you GRANT access. Never grants anonymous.",
            "type": "boolean"
          },
          "auth_provider": {
            "description": "Authentication provider for the Neon Data API.",
            "enum": [
              "neon_auth",
              "external"
            ],
            "type": "string"
          },
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "url": {
                "type": "string"
              }
            },
            "required": [
              "url"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Create Neon Data API"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Query branch logs"
      },
      "description": "Returns a branch's log records. Filters combine with AND; pass logql or structured filters, not both. Pass since or start_time, not both; default last hour, max seven days. Private beta: a branch without logs returns 404 telemetry_not_enabled. Stream labels: query_loki_logs. Returns every page. Pass limit to cap how many.",
      "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": "A br-... id, not a name.",
            "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": "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": "Only records emitted by this Neon service. neon_auth returns 404 telemetry_not_enabled when the project's Neon Auth logs are not enabled, even when other sources return logs.",
            "enum": [
              "function",
              "storage",
              "pg_endpoint",
              "neon_auth"
            ],
            "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",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "attributes": {
                  "type": "object"
                },
                "entity_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "message": {
                  "type": "string"
                },
                "scope_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "service_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "severity_number": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "severity_text": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "span_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "timestamp": {
                  "type": "string"
                },
                "trace_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "timestamp",
                "message",
                "attributes"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 a branch's logs and returns Loki's response: data.result groups lines by stream label as [nanosecond timestamp, line]. query_logs has structured filters; list_log_fields and list_log_field_values list labels. No cursor: limit lines, or the silent 10,000 cap, may mean more exist; narrow the window.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "data": {
                "description": "Log streams: each has its labels and `[timestamp_ns, line]` pairs.",
                "type": "object"
              },
              "status": {
                "description": "Loki's response status, `success`.",
                "type": "string"
              },
              "warnings": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Loki query warnings."
              }
            },
            "required": [
              "status",
              "data"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Query branch logs (Loki)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Recover a deleted project"
      },
      "description": "Recovers a project deleted in the last 7 days; list_projects with recoverable true finds them. Some integrations need setting up again.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "branch_logical_size_limit": {
                "type": "number"
              },
              "branch_logical_size_limit_bytes": {
                "type": "number"
              },
              "compute_last_active_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "consumption_period_end": {
                "type": "string"
              },
              "consumption_period_start": {
                "type": "string"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "creation_source": {
                "type": "string"
              },
              "data_storage_bytes_hour": {
                "type": "number"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default_endpoint_settings": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "effective_project_permission": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "hipaa_enabled_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "history_retention_seconds": {
                "type": "number"
              },
              "id": {
                "type": "string"
              },
              "maintenance_scheduled_for": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "maintenance_starts_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "org_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "owner_id": {
                "type": "string"
              },
              "pg_version": {
                "type": "number"
              },
              "platform_id": {
                "type": "string"
              },
              "provisioner": {
                "type": "string"
              },
              "proxy_host": {
                "type": "string"
              },
              "quota_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region_id": {
                "type": "string"
              },
              "settings": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "store_passwords": {
                "type": "boolean"
              },
              "synthetic_storage_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "data_storage_bytes_hour",
              "data_transfer_bytes",
              "written_data_bytes",
              "compute_time_seconds",
              "active_time_seconds",
              "cpu_used_sec",
              "id",
              "platform_id",
              "region_id",
              "name",
              "provisioner",
              "pg_version",
              "proxy_host",
              "branch_logical_size_limit",
              "branch_logical_size_limit_bytes",
              "store_passwords",
              "creation_source",
              "history_retention_seconds",
              "created_at",
              "updated_at",
              "consumption_period_start",
              "consumption_period_end",
              "owner_id"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Recover a deleted project"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Register a custom domain on a branch"
      },
      "description": "Routes a domain you own to a function: entity_type function, entity_id the slug from list_functions. It goes live once a CNAME to the returned cname_target resolves.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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 function slug from list_functions.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "binding_status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cname_target": {
                "type": "string"
              },
              "dns_status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "domain": {
                "type": "string"
              },
              "entity_id": {
                "type": "string"
              },
              "entity_type": {
                "type": "string"
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status_reason": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "domain",
              "entity_type",
              "entity_id",
              "cname_target"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Register a custom domain on a branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Reset branch from parent"
      },
      "description": "Resets a branch to its parent's current state, discarding the branch's own changes. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. preserve_under_name first saves the current state as a new branch. To restore a snapshot, use restore_snapshot.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default": {
                "type": "boolean"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "init_source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "logical_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "parent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_lsn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_timestamp": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "primary": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "project_id": {
                "type": "string"
              },
              "protected": {
                "type": "boolean"
              },
              "recovery": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "restore_status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_as": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_from": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restricted_actions": {
                "anyOf": [
                  {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state_changed_at": {
                "type": "string"
              },
              "ttl_interval_seconds": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "project_id",
              "name",
              "current_state",
              "state_changed_at",
              "creation_source",
              "default",
              "protected",
              "cpu_used_sec",
              "compute_time_seconds",
              "active_time_seconds",
              "written_data_bytes",
              "data_transfer_bytes",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Reset branch from parent"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Reset role password"
      },
      "description": "Sets a new random password for a Postgres role and returns it. Drops the compute's connections.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "authentication_method": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "branch_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "password": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "protected": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "branch_id",
              "name",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Reset role password"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Restart compute endpoint"
      },
      "description": "Restarts a compute endpoint by suspending and starting it, dropping its connections.",
      "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "autoscaling_limit_max_cu": {
                "type": "number"
              },
              "autoscaling_limit_min_cu": {
                "type": "number"
              },
              "branch_id": {
                "type": "string"
              },
              "compute_release_version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "disabled": {
                "type": "boolean"
              },
              "host": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "last_active": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "passwordless_access": {
                "type": "boolean"
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pooler_enabled": {
                "type": "boolean"
              },
              "pooler_mode": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "provisioner": {
                "type": "string"
              },
              "proxy_host": {
                "type": "string"
              },
              "region_id": {
                "type": "string"
              },
              "settings": {
                "type": "object"
              },
              "started_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "suspend_timeout_seconds": {
                "type": "number"
              },
              "suspended_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "host",
              "id",
              "project_id",
              "branch_id",
              "autoscaling_limit_min_cu",
              "autoscaling_limit_max_cu",
              "region_id",
              "type",
              "current_state",
              "settings",
              "pooler_enabled",
              "pooler_mode",
              "disabled",
              "passwordless_access",
              "creation_source",
              "created_at",
              "updated_at",
              "proxy_host",
              "suspend_timeout_seconds",
              "provisioner"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Restart compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Restore snapshot"
      },
      "description": "Restores a snapshot into a new branch and waits until it is ready. finalize true replaces target_branch_id (default: the snapshot's source branch) with it. NEVER finalize autonomously: finalize only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. Swap in later with finalize_branch_restore.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "finalize": {
            "description": "Replace the target branch with the restored data now. Default false.",
            "type": "boolean"
          },
          "name": {
            "description": "A name for the newly restored branch.",
            "type": "string"
          },
          "project_id": {
            "description": "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": "Branch that finalize replaces. Defaults to the snapshot's source branch.",
            "type": "string"
          }
        },
        "required": [
          "snapshot_id"
        ],
        "type": "object"
      },
      "name": "restore_snapshot",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default": {
                "type": "boolean"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "init_source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "logical_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "parent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_lsn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_timestamp": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "primary": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "project_id": {
                "type": "string"
              },
              "protected": {
                "type": "boolean"
              },
              "recovery": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "restore_status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_as": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_from": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restricted_actions": {
                "anyOf": [
                  {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state_changed_at": {
                "type": "string"
              },
              "ttl_interval_seconds": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "project_id",
              "name",
              "current_state",
              "state_changed_at",
              "creation_source",
              "default",
              "protected",
              "cpu_used_sec",
              "compute_time_seconds",
              "active_time_seconds",
              "written_data_bytes",
              "data_transfer_bytes",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Restore snapshot"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Revoke a credential"
      },
      "description": "Revokes a scoped credential. Idempotent.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Revoke a credential"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Rotate an OAuth client secret"
      },
      "description": "Issues a new secret for a confidential OAuth client; the old one stops working at once. The new client_secret is returned once: show it to the user and tell them to store it.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "client_id": {
                "type": "string"
              },
              "client_secret": {
                "type": "string"
              }
            },
            "required": [
              "client_id",
              "client_secret"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Rotate an OAuth client secret"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Rotate a credential's secrets"
      },
      "description": "Replaces a scoped credential's secrets in place and returns them once; token_id stays. Not idempotent: if the response is lost, create a new credential (create_credential) and revoke this one instead of retrying.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "api_token": {
                "type": "string"
              },
              "branch_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "principal_type": {
                "type": "string"
              },
              "s3_secret_access_key": {
                "type": "string"
              },
              "scopes": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "token_id": {
                "type": "string"
              },
              "token_id_short": {
                "type": "string"
              }
            },
            "required": [
              "token_id",
              "token_id_short",
              "api_token",
              "s3_secret_access_key",
              "scopes",
              "branch_id",
              "principal_type",
              "created_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Rotate a credential's secrets"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Rotate the Realtime shared secret"
      },
      "description": "Replaces a branch's Realtime secret and waits until the old one stops working. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. Then update the application backend from get_realtime_secret.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Rotate the Realtime shared secret"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Run SQL"
      },
      "description": "Runs one SQL statement on a branch's database and returns its rows. For several statements, send one per call or use run_sql_transaction. After a prepare step, pass its temporary branch_id. NEVER run destructive SQL autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name. Omit it for the default branch.",
            "type": "string"
          },
          "compute_id": {
            "description": "Compute endpoint id (ep-...). Omit for the read-write compute.",
            "type": "string"
          },
          "database_name": {
            "description": "Database name. Omit for neondb, else the first database.",
            "type": "string"
          },
          "max_rows": {
            "default": 100,
            "description": "Rows to return per statement. Raise it only when a result has truncated: true.",
            "maximum": 10000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "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"
          },
          "role_name": {
            "description": "Postgres role to log in as. Omit for the database owner.",
            "type": "string"
          },
          "sql": {
            "description": "The SQL statement to run.",
            "type": "string"
          }
        },
        "required": [
          "sql"
        ],
        "type": "object"
      },
      "name": "run_sql",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "note": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "rows": {
                "description": "Result rows, keyed by column name.",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "totalRowCount": {
                "description": "Rows the statement returned.",
                "type": "number"
              },
              "truncated": {
                "description": "Whether rows holds fewer than totalRowCount.",
                "type": "boolean"
              }
            },
            "required": [
              "rows",
              "totalRowCount",
              "truncated"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Run SQL"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Run SQL Transaction"
      },
      "description": "Runs several SQL statements in one transaction and returns each one's rows. After a prepare step, pass its temporary branch_id. NEVER run destructive SQL autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name. Omit it for the default branch.",
            "type": "string"
          },
          "compute_id": {
            "description": "Compute endpoint id (ep-...). Omit for the read-write compute.",
            "type": "string"
          },
          "database_name": {
            "description": "Database name. Omit for neondb, else the first database.",
            "type": "string"
          },
          "max_rows": {
            "default": 100,
            "description": "Rows to return per statement. Raise it only when a result has truncated: true.",
            "maximum": 10000,
            "minimum": 1,
            "type": "integer"
          },
          "project_id": {
            "description": "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"
          },
          "role_name": {
            "description": "Postgres role to log in as. Omit for the database owner.",
            "type": "string"
          },
          "sql_statements": {
            "description": "The SQL statements to run, in order.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "sql_statements"
        ],
        "type": "object"
      },
      "name": "run_sql_transaction",
      "outputSchema": {
        "properties": {
          "data": {
            "items": {
              "properties": {
                "note": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "rows": {
                  "description": "Result rows, keyed by column name.",
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                },
                "totalRowCount": {
                  "description": "Rows the statement returned.",
                  "type": "number"
                },
                "truncated": {
                  "description": "Whether rows holds fewer than totalRowCount.",
                  "type": "boolean"
                }
              },
              "required": [
                "rows",
                "totalRowCount",
                "truncated"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Run SQL Transaction"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Search Neon resources"
      },
      "description": "Finds organizations, projects (including shared ones), branches, computes, and snapshots whose name or id contains query, with ids for fetch. To list projects, use list_projects; for docs, search_docs.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "query": {
            "description": "Part of a name or id, or a compute endpoint host from a connection string.",
            "minLength": 3,
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "name": "search",
      "outputSchema": {
        "properties": {
          "results": {
            "description": "Organizations, projects, branches, computes, and snapshots that match.",
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "title": "Search Neon resources"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": true,
        "title": "Search Documentation"
      },
      "description": "Searches neon.com docs, API reference, PostgreSQL tutorial, guides, FAQs, changelog, and blog for ranked pages with the slug get_doc reads.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "categories": {
            "description": "Only these categories; api is the API reference, postgresql the PostgreSQL tutorial.",
            "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.",
            "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "hits": {
                "description": "Matching doc sections.",
                "items": {
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "hits"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 standard SMTP provider to recipient_email. Only send to an address the user gave you. A failed send returns success false with error_message, not an error.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "error_message": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "success": {
                "type": "boolean"
              }
            },
            "required": [
              "success"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Send test email using the saved email provider"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false,
        "title": "Send Feedback"
      },
      "description": "Sends anonymous feedback text to the Neon team, with no account, project, or connection details. Only call it when the user asks to give feedback.",
      "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Send Feedback"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Set branch as default"
      },
      "description": "Makes a branch the project's default; the previous default loses the flag.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default": {
                "type": "boolean"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "init_source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "logical_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "parent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_lsn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_timestamp": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "primary": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "project_id": {
                "type": "string"
              },
              "protected": {
                "type": "boolean"
              },
              "recovery": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "restore_status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_as": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_from": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restricted_actions": {
                "anyOf": [
                  {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state_changed_at": {
                "type": "string"
              },
              "ttl_interval_seconds": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "project_id",
              "name",
              "current_state",
              "state_changed_at",
              "creation_source",
              "default",
              "protected",
              "cpu_used_sec",
              "compute_time_seconds",
              "active_time_seconds",
              "written_data_bytes",
              "data_transfer_bytes",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Set branch as default"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Set snapshot schedule"
      },
      "description": "Replaces a branch's automatic snapshot schedule.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Set snapshot schedule"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Start compute endpoint"
      },
      "description": "Starts a suspended 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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "autoscaling_limit_max_cu": {
                "type": "number"
              },
              "autoscaling_limit_min_cu": {
                "type": "number"
              },
              "branch_id": {
                "type": "string"
              },
              "compute_release_version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "disabled": {
                "type": "boolean"
              },
              "host": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "last_active": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "passwordless_access": {
                "type": "boolean"
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pooler_enabled": {
                "type": "boolean"
              },
              "pooler_mode": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "provisioner": {
                "type": "string"
              },
              "proxy_host": {
                "type": "string"
              },
              "region_id": {
                "type": "string"
              },
              "settings": {
                "type": "object"
              },
              "started_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "suspend_timeout_seconds": {
                "type": "number"
              },
              "suspended_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "host",
              "id",
              "project_id",
              "branch_id",
              "autoscaling_limit_min_cu",
              "autoscaling_limit_max_cu",
              "region_id",
              "type",
              "current_state",
              "settings",
              "pooler_enabled",
              "pooler_mode",
              "disabled",
              "passwordless_access",
              "creation_source",
              "created_at",
              "updated_at",
              "proxy_host",
              "suspend_timeout_seconds",
              "provisioner"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Start compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Suspend compute endpoint"
      },
      "description": "Suspends a compute endpoint, dropping its connections.",
      "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "autoscaling_limit_max_cu": {
                "type": "number"
              },
              "autoscaling_limit_min_cu": {
                "type": "number"
              },
              "branch_id": {
                "type": "string"
              },
              "compute_release_version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "disabled": {
                "type": "boolean"
              },
              "host": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "last_active": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "passwordless_access": {
                "type": "boolean"
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pooler_enabled": {
                "type": "boolean"
              },
              "pooler_mode": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "provisioner": {
                "type": "string"
              },
              "proxy_host": {
                "type": "string"
              },
              "region_id": {
                "type": "string"
              },
              "settings": {
                "type": "object"
              },
              "started_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "suspend_timeout_seconds": {
                "type": "number"
              },
              "suspended_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "host",
              "id",
              "project_id",
              "branch_id",
              "autoscaling_limit_min_cu",
              "autoscaling_limit_max_cu",
              "region_id",
              "type",
              "current_state",
              "settings",
              "pooler_enabled",
              "pooler_mode",
              "disabled",
              "passwordless_access",
              "creation_source",
              "created_at",
              "updated_at",
              "proxy_host",
              "suspend_timeout_seconds",
              "provisioner"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Suspend compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update localhost allow setting"
      },
      "description": "Sets whether a branch's Neon Auth accepts localhost origins; turn it off for production. Current value: get_neon_auth_config.",
      "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": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "allow_localhost": {
                "type": "boolean"
              }
            },
            "required": [
              "allow_localhost"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update localhost allow setting"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update auth configuration"
      },
      "description": "Sets the application name Neon Auth uses in its emails.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "name": {
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update auth configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update email and password configuration"
      },
      "description": "Updates a branch's Neon Auth email and password sign-in; omitted fields keep their value. Current values: get_neon_auth_config.",
      "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": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "auto_sign_in_after_verification": {
                "type": "boolean"
              },
              "disable_sign_up": {
                "type": "boolean"
              },
              "email_verification_method": {
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              },
              "require_email_verification": {
                "type": "boolean"
              },
              "revoke_sessions_on_password_reset": {
                "type": "boolean"
              },
              "send_verification_email_on_sign_in": {
                "type": "boolean"
              },
              "send_verification_email_on_sign_up": {
                "type": "boolean"
              }
            },
            "required": [
              "enabled",
              "email_verification_method",
              "require_email_verification",
              "auto_sign_in_after_verification",
              "send_verification_email_on_sign_up",
              "send_verification_email_on_sign_in",
              "disable_sign_up",
              "revoke_sessions_on_password_reset"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update email and password configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false,
        "title": "Update email provider configuration"
      },
      "description": "Sets the email provider for Neon Auth's emails: body.type \"shared\" for Neon's sender, or \"standard\" with your SMTP details. Test it with send_auth_test_email.",
      "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": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "anyOf": [
              {
                "properties": {
                  "host": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  },
                  "port": {
                    "type": "number"
                  },
                  "sender_email": {
                    "type": "string"
                  },
                  "sender_name": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  }
                },
                "required": [
                  "host",
                  "port",
                  "username",
                  "password",
                  "sender_email",
                  "sender_name"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "sender_email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sender_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": "object"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update email provider configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update Neon Auth logs export setting"
      },
      "description": "Turns the export of a branch's Neon Auth events to Neon Platform logs on or off. A project without logs export accepts only enabled: false; enabling there returns 404 feature not available. get_neon_auth_config reports the current value as logs_export, or null where logs export is not available.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "enabled": {
            "description": "Whether Neon Auth events are exported to Neon Platform logs.",
            "type": "boolean"
          },
          "project_id": {
            "description": "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",
          "enabled"
        ],
        "type": "object"
      },
      "name": "update_auth_logs_export",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "enabled"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update Neon Auth logs export setting"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update an OAuth client"
      },
      "description": "Updates an OAuth client of Neon Auth's OAuth server; redirect_uris and resources replace the stored lists, and type cannot change.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "client_id": {
                "type": "string"
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "disabled": {
                "type": "boolean"
              },
              "name": {
                "type": "string"
              },
              "redirect_uris": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "resources": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "skip_consent": {
                "type": "boolean"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "client_id",
              "name",
              "type",
              "redirect_uris",
              "resources",
              "skip_consent",
              "disabled"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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, Discord) on a branch's Neon Auth. For Apple, a new `client_secret` (`.p8` key) must be sent with its `apple_key_id`. For Neon Auth as an OAuth server, use update_auth_oauth_server.",
      "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": "A br-... id, not a name.",
            "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",
              "discord"
            ],
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "apple_key_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "apple_team_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "client_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "client_secret": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "microsoft_tenant_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update OAuth provider"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update OAuth provider plugin configuration"
      },
      "description": "Configures a branch's Neon Auth as an OAuth 2.1 server (oauth_provider plugin); root branch only. Enabling needs login_page, consent_page, and a resource or MCP resource. resources replaces the stored list, so send the full list from get_auth_oauth_server.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "Needs resource; resource \"\" removes the MCP configuration. Omitted booleans keep their value. Prefer client_id_metadata_documents over the deprecated dynamic_registration.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "consent_page": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "enabled": {
                "type": "boolean"
              },
              "login_page": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mcp": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "resources": {
                "anyOf": [
                  {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "enabled"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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; omitted fields keep their value. Current values: get_neon_auth_config.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "disable_sign_up": {
                "type": "boolean"
              },
              "enabled": {
                "type": "boolean"
              },
              "expires_in": {
                "type": "number"
              }
            },
            "required": [
              "enabled",
              "expires_in",
              "disable_sign_up"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 form organizations (not Neon organizations). Omitted fields keep their value. Current values: get_neon_auth_config.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "creator_role": {
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              },
              "membership_limit": {
                "type": "number"
              },
              "organization_limit": {
                "type": "number"
              },
              "send_invitation_email": {
                "type": "boolean"
              }
            },
            "required": [
              "enabled",
              "organization_limit",
              "membership_limit",
              "creator_role",
              "send_invitation_email"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "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 SMS OTP plugin; omitted fields keep their value. SMS needs a webhook with the send.otp event (update_auth_webhooks). Current values: get_neon_auth_config.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "otp_expires_in": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "enabled"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update phone number plugin configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update auth user role"
      },
      "description": "Sets the roles of a Neon Auth user on a branch.",
      "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": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update auth user role"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false,
        "title": "Update Neon Auth webhook configuration"
      },
      "description": "Replaces a branch's Neon Auth webhook configuration; omitted fields reset, so { enabled: false } alone clears webhook_url and enabled_events. Send every field to keep, read from get_neon_auth_config.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "enabled_events": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "timeout_seconds": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "webhook_url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "enabled"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update Neon Auth webhook configuration"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update branch"
      },
      "description": "Renames a branch, protects or unprotects it, or sets when it expires.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default": {
                "type": "boolean"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "init_source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "logical_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "parent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_lsn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_timestamp": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "primary": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "project_id": {
                "type": "string"
              },
              "protected": {
                "type": "boolean"
              },
              "recovery": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "restore_status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_as": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restored_from": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "restricted_actions": {
                "anyOf": [
                  {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state_changed_at": {
                "type": "string"
              },
              "ttl_interval_seconds": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "project_id",
              "name",
              "current_state",
              "state_changed_at",
              "creation_source",
              "default",
              "protected",
              "cpu_used_sec",
              "compute_time_seconds",
              "active_time_seconds",
              "written_data_bytes",
              "data_transfer_bytes",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update branch"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update Neon Data API"
      },
      "description": "Updates the Neon Data API settings for a database and refreshes its schema cache.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "type": "null"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update Neon Data API"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update a function"
      },
      "description": "Sets a function's display name; null resets it to the slug. Only the branch that owns the function can rename it.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_deployment": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "current_deployment": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "invocation_url": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "slug",
              "name",
              "invocation_url",
              "created_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update a function"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update database"
      },
      "description": "Renames a database or changes its owner.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "additionalProperties": false,
        "properties": {
          "branch_id": {
            "description": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "database_name": {
            "description": "The database name",
            "type": "string"
          },
          "name": {
            "description": "New name for the database.",
            "type": "string"
          },
          "owner_name": {
            "description": "The name of the role that owns the database",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "branch_id": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "id": {
                "type": "number"
              },
              "name": {
                "type": "string"
              },
              "owner_name": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "branch_id",
              "name",
              "owner_name",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update database"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update compute endpoint"
      },
      "description": "Updates a compute endpoint's settings.",
      "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": "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": "Legacy field; do not send it.",
            "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "autoscaling_limit_max_cu": {
                "type": "number"
              },
              "autoscaling_limit_min_cu": {
                "type": "number"
              },
              "branch_id": {
                "type": "string"
              },
              "compute_release_version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "creation_source": {
                "type": "string"
              },
              "current_state": {
                "type": "string"
              },
              "disabled": {
                "type": "boolean"
              },
              "host": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "last_active": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "passwordless_access": {
                "type": "boolean"
              },
              "pending_state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pooler_enabled": {
                "type": "boolean"
              },
              "pooler_mode": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "provisioner": {
                "type": "string"
              },
              "proxy_host": {
                "type": "string"
              },
              "region_id": {
                "type": "string"
              },
              "settings": {
                "type": "object"
              },
              "started_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "suspend_timeout_seconds": {
                "type": "number"
              },
              "suspended_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "host",
              "id",
              "project_id",
              "branch_id",
              "autoscaling_limit_min_cu",
              "autoscaling_limit_max_cu",
              "region_id",
              "type",
              "current_state",
              "settings",
              "pooler_enabled",
              "pooler_mode",
              "disabled",
              "passwordless_access",
              "creation_source",
              "created_at",
              "updated_at",
              "proxy_host",
              "suspend_timeout_seconds",
              "provisioner"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update compute endpoint"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update project"
      },
      "description": "Updates a project's name, settings, default compute settings, or history retention.",
      "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "active_time_seconds": {
                "type": "number"
              },
              "branch_logical_size_limit": {
                "type": "number"
              },
              "branch_logical_size_limit_bytes": {
                "type": "number"
              },
              "compute_last_active_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "compute_time_seconds": {
                "type": "number"
              },
              "consumption_period_end": {
                "type": "string"
              },
              "consumption_period_start": {
                "type": "string"
              },
              "cpu_used_sec": {
                "type": "number"
              },
              "created_at": {
                "type": "string"
              },
              "creation_source": {
                "type": "string"
              },
              "data_storage_bytes_hour": {
                "type": "number"
              },
              "data_transfer_bytes": {
                "type": "number"
              },
              "default_endpoint_settings": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "effective_project_permission": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "hipaa_enabled_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "history_retention_seconds": {
                "type": "number"
              },
              "id": {
                "type": "string"
              },
              "maintenance_scheduled_for": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "maintenance_starts_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "org_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "owner_id": {
                "type": "string"
              },
              "pg_version": {
                "type": "number"
              },
              "platform_id": {
                "type": "string"
              },
              "provisioner": {
                "type": "string"
              },
              "proxy_host": {
                "type": "string"
              },
              "quota_reset_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region_id": {
                "type": "string"
              },
              "settings": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "store_passwords": {
                "type": "boolean"
              },
              "synthetic_storage_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string"
              },
              "written_data_bytes": {
                "type": "number"
              }
            },
            "required": [
              "data_storage_bytes_hour",
              "data_transfer_bytes",
              "written_data_bytes",
              "compute_time_seconds",
              "active_time_seconds",
              "cpu_used_sec",
              "id",
              "platform_id",
              "region_id",
              "name",
              "provisioner",
              "pg_version",
              "proxy_host",
              "branch_logical_size_limit",
              "branch_logical_size_limit_bytes",
              "store_passwords",
              "creation_source",
              "history_retention_seconds",
              "created_at",
              "updated_at",
              "consumption_period_start",
              "consumption_period_end",
              "owner_id"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update project"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update snapshot"
      },
      "description": "Renames a snapshot or changes when it expires.",
      "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": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "properties": {
              "created_at": {
                "type": "string"
              },
              "diff_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "full_size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "lsn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "manual": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "source_branch_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "timestamp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "created_at"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update snapshot"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Update a trigger"
      },
      "description": "Updates a function trigger; body.type must match its kind. Editing an inherited trigger makes a local copy, disabled unless this request enables it.",
      "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": "A br-... id, not a name.",
            "pattern": "^[a-z0-9-]{1,60}$",
            "type": "string"
          },
          "project_id": {
            "description": "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",
      "outputSchema": {
        "properties": {
          "data": {
            "anyOf": [
              {
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "function_path": {
                    "type": "string"
                  },
                  "function_slug": {
                    "type": "string"
                  },
                  "inherited": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "next_run_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "schedule": {
                    "type": "object"
                  },
                  "trigger_id": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "version": {
                    "type": "number"
                  }
                },
                "required": [
                  "type",
                  "trigger_id",
                  "function_slug",
                  "name",
                  "function_path",
                  "schedule",
                  "enabled",
                  "version",
                  "next_run_at",
                  "inherited"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "function_path": {
                    "type": "string"
                  },
                  "function_slug": {
                    "type": "string"
                  },
                  "inherited": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "storage_object_created": {
                    "type": "object"
                  },
                  "trigger_id": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "version": {
                    "type": "number"
                  }
                },
                "required": [
                  "type",
                  "trigger_id",
                  "function_slug",
                  "name",
                  "function_path",
                  "storage_object_created",
                  "enabled",
                  "version",
                  "inherited"
                ],
                "type": "object"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "title": "Update a trigger"
    }
  ]
}
