Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Count project branches
NEON_COUNT_PROJECT_BRANCHESTool to get the total number of branches in a Neon project. Use when you need to count branches without retrieving full branch details. Optionally filter by branch name using the search parameter.
Get account consumption history
NEON_GET_ACCOUNT_CONSUMPTION_HISTORYRetrieves selected consumption metrics for projects in a Neon organization, grouped by project, billing period, and the requested granularity. Omit project_ids to include all projects, and pass a returned cursor unchanged to retrieve the next page. This request does not wake project computes.
Get auth
NEON_GET_AUTHRetrieves authentication information about the current API request credentials. Use this action to verify which account and authentication method are being used for API calls, which is helpful for debugging authentication issues or confirming the identity of the calling user or API key.
Get auth allow localhost
NEON_GET_AUTH_ALLOW_LOCALHOSTRetrieves the allow localhost configuration for a specific branch in a Neon project. Use when you need to check if localhost connections are permitted for a branch's authentication settings.
Get auth email provider
NEON_GET_AUTH_EMAIL_PROVIDERRetrieves the email provider configuration for Neon Auth on a specific branch. Returns SMTP configuration details if a custom provider is configured, or just sender information if using the default Neon email provider. Use this action to verify email settings before testing authentication flows or troubleshooting email delivery issues.
Get branch database
NEON_GET_BRANCH_DATABASEReturns metadata and configuration for one database in a project branch without modifying the database.
Get branches anonymized status
NEON_GET_BRANCHES_ANONYMIZED_STATUSRetrieves the current status of an anonymized branch, including its state and progress information. This endpoint allows you to monitor the anonymization process from initialization through completion. Only anonymized branches will have status information available. Use this action when you need to: - Monitor the progress of an anonymization process - Check the state of an anonymized branch (created, initialized, anonymizing, anonymized, error) - View details about the most recent anonymization attempt - Identify when an anonymization operation failed Note: This endpoint is currently in Beta.
Get branches backup schedule
NEON_GET_BRANCHES_BACKUP_SCHEDULERetrieves the backup schedule configuration for a specified branch within a Neon project. This endpoint provides information about when backups are created and how long they are retained. Use this when you need to verify or audit the backup schedule settings for a branch. Note: This endpoint is currently in Beta.
Get Neon Data API for branch
NEON_GET_BRANCHES_DATA_APIRetrieves the Neon Data API information for a specific branch and database. Use when you need to access the Data API URL, deployment status, or configuration settings for a particular database within a branch.
Get branches masking rules
NEON_GET_BRANCHES_MASKING_RULESRetrieves the masking rules for the specified anonymized branch. Masking rules define how sensitive data should be anonymized using PostgreSQL Anonymizer. Use this when you need to view the data anonymization configuration for a branch. Note: This endpoint is currently in Beta.
Get current user information
NEON_GET_CURRENT_USER_INFORMATIONGets account identifiers, plan details, and linked auth accounts for the currently authenticated Neon user. This action requires credentials tied to a user; organization- and project-scoped API keys do not represent a current user. It accepts no parameters and cannot retrieve another user's profile.
Get organization
NEON_GET_ORGANIZATIONRetrieves one Neon organization's identity and account settings, including its name, handle, billing plan, management source, timestamps, and available organization-level flags. It does not list the organization's members or projects; use the corresponding list actions for those resources.
Get organization member
NEON_GET_ORGANIZATION_MEMBERReturns one organization's member record, including the associated user ID, organization role, and join timestamp.
Get project
NEON_GET_PROJECTRetrieves detailed information about a specific Neon serverless Postgres project. Returns project data including configuration, database settings, compute resources, owner information, and consumption metrics. Use this action when you need to: - Get project configuration details (region, PostgreSQL version, settings) - Check project ownership and organization membership - Review compute and storage consumption metrics - Verify project settings before making updates The action is read-only and safe to call frequently. For listing multiple projects, use the retrieve_projects_list action instead.
Get project branch
NEON_GET_PROJECT_BRANCHRetrieves detailed information about a specific branch within a Neon project. This endpoint allows developers to fetch the current state and configuration of a branch, including its name, creation timestamp, and other relevant metadata. It's particularly useful when you need to verify branch details, check its status, or gather information for further operations on the branch. The endpoint should be used when you require up-to-date information about a single branch in your project's context. Note that this endpoint only provides read access and does not modify any branch data.
Get project branch role
NEON_GET_PROJECT_BRANCH_ROLEReturns a specific PostgreSQL role's branch ID, name, protected status, authentication method, creation and update timestamps, and any related Neon operations. It does not return the role's PostgreSQL privileges, grants, or memberships, and it does not return Neon project permission grants.
Get project branch schema comparison
NEON_GET_PROJECT_BRANCH_SCHEMA_COMPARISONCompares the database schema of a branch with another branch's schema in a Neon project. Returns the difference as a unified diff format string. Use this when you need to understand what schema changes exist between two branches (e.g., before merging, to review migrations, or to verify schema consistency). The comparison can be done at specific points in time using LSN or timestamp parameters for both branches.
Get project connection uri
NEON_GET_PROJECT_CONNECTION_URIReturns a PostgreSQL connection URI for a database and role in a Neon project. Optionally targets a branch or endpoint and can return a pooled URI.
Get project endpoint
NEON_GET_PROJECT_ENDPOINTRetrieves detailed information about a specific compute endpoint within a Neon serverless PostgreSQL project. Compute endpoints are the connection points for your Neon databases. Use this action to get information about a specific endpoint including its hostname for connections, autoscaling settings, current state (active/idle/suspended), connection pooling config, and PostgreSQL settings. This is useful for getting the connection hostname, checking endpoint health, verifying compute resources, or troubleshooting connection issues. The endpoint_id can be obtained from the list endpoints action. Note: This is a read-only operation.
Get project operation by id
NEON_GET_PROJECT_OPERATION_BY_IDRetrieves detailed information about a specific operation within a Neon serverless PostgreSQL project. Use this endpoint to check the status and details of operations such as compute start/suspend, branch creation/deletion, configuration changes, or timeline operations. This is useful for monitoring long-running tasks, verifying operation completion, or debugging failures. Requires both a project ID and operation ID. Returns operation details including status ('scheduling', 'running', 'finished', 'failed'), duration, and associated branch/endpoint IDs. This is a read-only endpoint.