> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PlanetScale

> How to set up the PlanetScale connector, plus the actions that are available.

![PlanetScale](data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20rx%3D%228%22%20fill%3D%22%23D5D4D2%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%222.667%22%20fill%3D%22%23A19F9E%22%2F%3E%3C%2Fsvg%3E)

Previewv0.1.0[See changelog](https://docs.stackone.com/connectors/planetscale/changelog.md)

[178 actions](#actions) · 3 auth methods

Databases

## Getting Started

**1. Create or Select a Project**

Set up a new project or select an existing one. See [Organizations & Projects](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md).

**2. Configure the Connector**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

> [card] [MCP (OAuth) · Connector Profile](https://docs.stackone.com/connectors/planetscale/guides/connector-profile/mcp-oauth.md)
>
> No app registration required. Connects through the PlanetScale MCP server and reaches only the MCP actions.

> [card] [OAuth 2.0 · Connector Profile](https://docs.stackone.com/connectors/planetscale/guides/connector-profile/oauth-2-0.md)
>
> Requires registering an OAuth application in a PlanetScale organization. The person connecting chooses which organizatio...

> [card] [Service Token · Connector Profile](https://docs.stackone.com/connectors/planetscale/guides/connector-profile/service-token.md)
>
> No app registration required. Access is limited to the organization and database permissions granted to the token.

**3. Link an Account**

Link an account [from the dashboard](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md#link-from-the-dashboard) (or via [StackOne Hub](https://docs.stackone.com/embed/account-linking/overview)).

See the guide for the authentication type chosen in the Connector Profile:

> [card] [MCP (OAuth) · Link Account](https://docs.stackone.com/connectors/planetscale/guides/link-account/mcp-oauth.md)

> [card] [OAuth 2.0 · Link Account](https://docs.stackone.com/connectors/planetscale/guides/link-account/oauth-2-0.md)

> [card] [Service Token · Link Account](https://docs.stackone.com/connectors/planetscale/guides/link-account/service-token.md)

**4. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Actions

Authentication type

Select all
|
Clear

MCP (OAuth)

OAuth 2.0

Service Token

No auth methods found

Scopes

Select all
|
Clear

database:demote\_branches

organization:approve\_deploy\_requests

organization:create\_databases

organization:delete\_backups

organization:delete\_branches

organization:delete\_databases

organization:deploy\_deploy\_requests

organization:manage\_passwords

organization:promote\_branches

organization:read\_backups

organization:read\_branches

organization:read\_databases

organization:read\_deploy\_requests

organization:read\_workflows

organization:write\_backups

organization:write\_branches

organization:write\_databases

organization:write\_deploy\_requests

organization:write\_insights\_agents

organization:write\_workflows

user:read\_organizations

user:read\_user

No scopes found

178 actions

ActionDescriptionRequired scopes

List Backups`planetscale_list_backups`

List backups for a database branch.

`organization:read_backups`

Get Backup`planetscale_get_backup`

Get a single backup of a database branch.

`organization:read_backups`

Create Backup`planetscale_create_backup`

Create an on-demand backup of a database branch.

`organization:write_backups`

Update Backup`planetscale_update_backup`

Update the deletion protection of a backup.

`organization:write_backups`

Delete Backup`planetscale_delete_backup`

Delete a backup of a database branch.

`organization:delete_backups`

List Branch Change Requests`planetscale_list_branch_change_requests`

List cluster change requests for a Postgres branch.

`organization:read_branches`

Get Branch Change Request`planetscale_get_branch_change_request`

Get a cluster change request for a Postgres branch.

`organization:read_branches`

Update Branch Change Request`planetscale_update_branch_change_request`

Create or update a change request for cluster size, replicas, storage, extensions or parameters.

`organization:write_databases`

Cancel Branch Change Request`planetscale_cancel_branch_change_request`

Cancel the pending change or resize request of a branch.

`organization:write_databases`

List Branch Resize Requests`planetscale_list_branch_resize_requests`

List VTGate resize requests for a Vitess (MySQL) branch.

`organization:read_branches`

Get Branch Resize Request`planetscale_get_branch_resize_request`

Get a VTGate resize request for a Vitess (MySQL) branch.

`organization:read_branches`

Update Branch Resize Request`planetscale_update_branch_resize_request`

Create or update a VTGate resize request for a Vitess (MySQL) branch.

`organization:write_databases`

List Branch Config Change Requests`planetscale_list_branch_config_change_requests`

List config change requests for a Vitess (MySQL) branch and its keyspaces.

`organization:read_branches`

Get Branch Config Change Request`planetscale_get_branch_config_change_request`

Get a config change request for a Vitess (MySQL) branch.

`organization:read_branches`

Create Branch Config Change Request`planetscale_create_branch_config_change_request`

Create a draft change to the VTGate parameters of a Vitess (MySQL) branch.

Submit Branch Config Change Requests`planetscale_submit_branch_config_change_requests`

Submit draft config change requests for a branch and its keyspaces.

Cancel Branch Config Change Request`planetscale_cancel_branch_config_change_request`

Cancel a draft or pending branch config change request.

List Change Requests`planetscale_list_change_requests`

List infrastructure change requests for a branch.

`organization:read_branches`

Get Change Request`planetscale_get_change_request`

Get an infrastructure change request for a branch.

`organization:read_branches`

Cancel Change Request`planetscale_cancel_change_request`

Cancel an infrastructure change request for a branch.

`organization:write_databases`

List Switchovers`planetscale_list_switchovers`

List primary switchovers for a Postgres branch.

`organization:read_branches`

Get Switchover`planetscale_get_switchover`

Get a primary switchover for a Postgres branch.

`organization:read_branches`

Create Switchover`planetscale_create_switchover`

Move the primary of a Postgres branch to a replica (switchover).

`organization:write_databases`

List Branch Vitess Parameters`planetscale_list_branch_vitess_parameters`

List the Vitess parameters of a MySQL branch.

`organization:read_branches`

List Branches`planetscale_list_branches`

List the branches of a PlanetScale database.

`organization:read_branches`

Get Branch`planetscale_get_branch`

Retrieve a single branch of a PlanetScale database.

`organization:read_branches`

Get Branch Metrics`planetscale_get_branch_metrics`

Retrieve time-series metrics for a database branch.

`organization:read_branches`

Get Branch Schema`planetscale_get_branch_schema`

Retrieve the schema of a database branch.

`organization:read_branches`

Get Vtctld Operation`planetscale_get_vtctld_operation`

Retrieve the status of an asynchronous vtctld operation on a MySQL branch.

`organization:read_workflows`

Lint Branch Schema`planetscale_lint_branch_schema`

Run schema lint checks against a database branch.

`organization:read_branches`

Create Branch`planetscale_create_branch`

Create a new branch in a PlanetScale database.

`organization:write_branches`

Update Branch`planetscale_update_branch`

Rename a branch or change its deletion protection.

`organization:write_branches`

Update Branch Cluster Config`planetscale_update_branch_cluster_config`

Change the cluster size of a branch.

Update Safe Migrations`planetscale_update_safe_migrations`

Set safe migrations on or off for a branch.

Enable Safe Migrations`planetscale_enable_safe_migrations`

Enable safe migrations on a branch.

Disable Safe Migrations`planetscale_disable_safe_migrations`

Disable safe migrations on a branch.

Promote Branch`planetscale_promote_branch`

Promote a development branch to production.

`organization:promote_branches`

Demote Branch`planetscale_demote_branch`

Demote a production branch to development.

`database:demote_branches`

Run Branch Maintenance`planetscale_run_branch_maintenance`

Start maintenance on a PostgreSQL branch.

`organization:write_databases`

Delete Branch`planetscale_delete_branch`

Delete a branch of a PlanetScale database.

`organization:delete_branches`

List Database Regions`planetscale_list_database_regions`

List the regions a PlanetScale database can use for branches and read-only regions.

`organization:read_databases`

List Databases`planetscale_list_databases`

List the databases in a PlanetScale organization.

`organization:read_databases`

Get Database`planetscale_get_database`

Retrieve a single PlanetScale database by name.

`organization:read_databases`

Create Database`planetscale_create_database`

Create a new PlanetScale database.

`organization:create_databases`

Update Database Settings`planetscale_update_database_settings`

Update the settings of a PlanetScale database.

`organization:write_databases`

Delete Database`planetscale_delete_database`

Permanently delete a PlanetScale database.

`organization:delete_databases`

List Deploy Requests`planetscale_list_deploy_requests`

List the deploy requests for a database.

`organization:read_deploy_requests`

Get Deploy Request`planetscale_get_deploy_request`

Retrieve a single deploy request by its number.

`organization:read_deploy_requests`

Get Deployment`planetscale_get_deployment`

Retrieve the deployment for a deploy request.

`organization:read_deploy_requests`

List Deploy Operations`planetscale_list_deploy_operations`

List the deploy operations for a deploy request.

`organization:read_deploy_requests`

List Deploy Request Reviews`planetscale_list_deploy_request_reviews`

List the reviews left on a deploy request.

`organization:read_deploy_requests`

Get Deploy Queue`planetscale_get_deploy_queue`

Retrieve the deploy queue for a database.

`organization:read_deploy_requests`

Check Deploy Request Storage`planetscale_check_deploy_request_storage`

Check whether the target branch has enough storage to deploy a deploy request.

`organization:read_deploy_requests`

Create Deploy Request`planetscale_create_deploy_request`

Create a deploy request to merge schema changes from one branch into another.

`organization:write_deploy_requests`

Review Deploy Request`planetscale_review_deploy_request`

Approve or comment on a deploy request.

`organization:approve_deploy_requests`

Queue Deploy Request`planetscale_queue_deploy_request`

Queue a deploy request for deployment.

`organization:deploy_deploy_requests`

Cancel Queued Deploy Request`planetscale_cancel_deploy_request`

Cancel a queued or in-progress deploy request deployment.

`organization:deploy_deploy_requests`

Complete Gated Deploy Request`planetscale_complete_gated_deploy_request`

Apply the staged schema changes of a gated deploy request.

`organization:deploy_deploy_requests`

Force Cutover Deploy Request`planetscale_force_cutover_deploy_request`

Enable force cutover for a deploy request.

`organization:deploy_deploy_requests`

Complete Errored Deploy`planetscale_complete_errored_deploy`

Mark an errored deploy request deployment as complete.

`organization:deploy_deploy_requests`

Complete Revert`planetscale_complete_revert`

Revert the schema changes of a deployed deploy request.

`organization:deploy_deploy_requests`

Skip Revert Period`planetscale_skip_revert_period`

Skip the revert period for a deployed deploy request.

`organization:deploy_deploy_requests`

Update Auto Apply`planetscale_update_auto_apply`

Enable or disable auto-apply for a deploy request.

`organization:deploy_deploy_requests`

Update Auto Delete Branch`planetscale_update_auto_delete_branch`

Enable or disable auto-delete of the source branch for a deploy request.

`organization:deploy_deploy_requests`

Update Aggressive Cutover`planetscale_update_aggressive_cutover`

Enable or disable aggressive cutover for a deploy request.

`organization:deploy_deploy_requests`

Close Deploy Request`planetscale_close_deploy_request`

Close an open deploy request without deploying it.

`organization:write_deploy_requests`

List Branch Queries`planetscale_list_branch_queries`

List Query Insights statistics for each query pattern on a branch.

`organization:read_databases`

Get Query Statistics`planetscale_get_query_statistics`

Retrieve time-bucketed statistics for one query pattern.

`organization:read_databases`

Get Query Summary`planetscale_get_query_summary`

Retrieve a summary of statistics for one query pattern.

`organization:read_databases`

Get Branch Query`planetscale_get_branch_query`

Retrieve a single recorded query execution by ID.

`organization:read_databases`

List Branch Query Errors`planetscale_list_branch_query_errors`

List query errors on a branch grouped by error fingerprint.

`organization:read_databases`

Get Branch Query Error`planetscale_get_branch_query_error`

List the queries that raised a given error fingerprint.

`organization:read_databases`

List Branch Query Tags`planetscale_list_branch_query_tags`

List query tags and their values observed on a branch.

`organization:read_databases`

List Branch Query Tag Summaries`planetscale_list_branch_query_tag_summaries`

List query statistics grouped by query tag values.

`organization:read_databases`

Get Branch Query Tag`planetscale_get_branch_query_tag`

Retrieve a single query tag and its observed values.

`organization:read_databases`

List Branch Anomalies`planetscale_list_branch_anomalies`

List performance anomalies detected on a branch.

`organization:read_databases`

Get Branch Anomaly`planetscale_get_branch_anomaly`

Retrieve a single branch anomaly by ID.

`organization:read_databases`

List Generated Query Patterns Reports`planetscale_list_generated_query_patterns_reports`

List query patterns reports generated for a branch.

`organization:read_branches`

Create Query Patterns Report`planetscale_create_query_patterns_report`

Start generating a new query patterns report for a branch.

`organization:read_branches`

Get Query Patterns Report Status`planetscale_get_query_patterns_report_status`

Retrieve the status of a query patterns report.

`organization:read_branches`

Get Query Patterns Report`planetscale_get_query_patterns_report`

Download a finished query patterns report.

`organization:read_branches`

Delete Query Patterns Report`planetscale_delete_query_patterns_report`

Delete a query patterns report.

`organization:read_branches`

List Insights Agent Runs`planetscale_list_insights_agent_runs`

List Insights Agent runs for a branch.

`organization:read_databases`

Get Insights Agent Run`planetscale_get_insights_agent_run`

Retrieve a single Insights Agent run by number.

`organization:read_databases`

Create Insights Agent Run`planetscale_create_insights_agent_run`

Start an Insights Agent run on a branch.

`organization:write_insights_agents`

Cancel Insights Agent Run`planetscale_cancel_insights_agent_run`

Cancel an in-progress Insights Agent run.

`organization:write_insights_agents`

List Schema Recommendations`planetscale_list_schema_recommendations`

List schema recommendations for a database.

`organization:read_databases`

Get Schema Recommendation`planetscale_get_schema_recommendation`

Retrieve a single schema recommendation by number.

`organization:read_databases`

Dismiss Schema Recommendation`planetscale_dismiss_schema_recommendation`

Dismiss a schema recommendation.

`organization:write_databases`

List Keyspaces`planetscale_list_keyspaces`

List the keyspaces of a PlanetScale Vitess database branch.

Get Keyspace`planetscale_get_keyspace`

Retrieve a single keyspace of a PlanetScale Vitess database branch.

Get Keyspace Rollout Status`planetscale_get_keyspace_rollout_status`

Retrieve the infrastructure rollout status of a Vitess keyspace.

Create Keyspace`planetscale_create_keyspace`

Create a new keyspace on a PlanetScale Vitess database branch.

Update Keyspace`planetscale_update_keyspace`

Configure the settings of a Vitess keyspace.

Delete Keyspace`planetscale_delete_keyspace`

Delete a keyspace from a PlanetScale Vitess database branch.

Get Keyspace VSchema`planetscale_get_keyspace_vschema`

Retrieve the VSchema of a Vitess keyspace.

Update Keyspace VSchema`planetscale_update_keyspace_vschema`

Replace the VSchema of a Vitess keyspace.

List Keyspace Resize Requests`planetscale_list_keyspace_resize_requests`

List the resize requests of a Vitess keyspace.

Get Keyspace Resize Request`planetscale_get_keyspace_resize_request`

Retrieve a single resize request of a Vitess keyspace.

Update Keyspace Resize Request`planetscale_update_keyspace_resize_request`

Create or update the pending resize request of a Vitess keyspace.

Cancel Keyspace Resize Request`planetscale_cancel_keyspace_resize_request`

Cancel the pending resize request of a Vitess keyspace.

List Keyspace Config Change Requests`planetscale_list_keyspace_config_change_requests`

List the configuration change requests of a Vitess keyspace.

`organization:read_branches`

Get Keyspace Config Change Request`planetscale_get_keyspace_config_change_request`

Retrieve a single configuration change request of a Vitess keyspace.

`organization:read_branches`

Create Keyspace Config Change Request`planetscale_create_keyspace_config_change_request`

Create a draft change to the mysqld or vttablet parameters of a Vitess keyspace.

Cancel Keyspace Config Change Request`planetscale_cancel_keyspace_config_change_request`

Cancel a draft or pending configuration change request of a Vitess keyspace.

Get Branch Backups`planetscale_get_branch_backups`

Show how a PlanetScale branch is backed up, for Vitess/MySQL, Postgres, and Neki: the backup policies that apply to it (...

Get Branch Metrics`planetscale_mcp_planetscale_get_branch_metrics`

Get infrastructure metrics for a PlanetScale branch: CPU, memory, disk, replication lag, connections, PgBouncer, WAL, VT...

Get Query Performance Insights`planetscale_get_insights`

Get query performance insights for a PlanetScale database branch. By default, aggregates the top queries across curated...

Get Postgres Server Logs`planetscale_get_postgres_logs`

Fetch server logs for a PlanetScale Postgres or Neki database branch (not available for Vitess/MySQL databases). Returns...

List Query Error Patterns`planetscale_list_query_error_patterns`

List failing queries for a PlanetScale database branch, aggregated by error fingerprint. Each pattern reports the error...

List Failed Query Executions`planetscale_list_query_error_executions`

List the individual captured query executions that failed with a given error fingerprint on a PlanetScale database branc...

List Query Tags`planetscale_list_query_tags`

List the query tags seen on a PlanetScale database branch's queries, with their values and query counts. Query tags are...

Get Query Tag Details`planetscale_get_query_tag`

Fetch one query tag on a PlanetScale database branch, with its values and their query counts. Pass the `id` from \`planet...

Summarize Query Tag Performance`planetscale_list_query_tag_summaries`

Break query statistics on a PlanetScale database branch down by query tag value -- total time, latency, rows read, and e...

List Cluster Sizes`planetscale_list_cluster_sizes`

List available PlanetScale cluster sizes (SKUs) for an organization and database engine, including Neki-specific PS-\*\_NE...

List Live Connections`planetscale_list_live_connections`

List live connections on a PlanetScale branch for Vitess/MySQL, Postgres, and Neki. Read-only: it does not cancel querie...

Search PlanetScale Documentation`planetscale_search_documentation`

Search across PlanetScale documentation and blog posts to find relevant information, code examples, API references, and...

Run A Read-only SQL Query`planetscale_execute_read_query`

Execute a read-only SQL query against a PlanetScale database. Write operations are rejected by the database role. This t...

Run A Write SQL Query`planetscale_execute_write_query`

Execute a write SQL query (INSERT, UPDATE, DELETE, or DDL) against a PlanetScale database. This tool creates short-lived...

Start Billing Card Setup`planetscale_update_payment_method`

Start a secure Stripe Checkout session to add or replace an organization's billing card. Use when a customer asks to add...

Update Billing Email`planetscale_update_billing_email`

Update the email address PlanetScale sends invoices and billing notices to for an organization. Use when a customer asks...

Get Billing Card Setup Status`planetscale_get_payment_method_setup`

Get a Stripe Checkout payment method setup started by planetscale\_update\_payment\_method. Use the setup\_id returned by th...

Start Insights Agent Run`planetscale_start_insights_agent_run`

Start an Insights Agent run on a branch. The agent reviews up to 5 slow queries from `planetscale_get_insights`, or impl...

Cancel Insights Agent Run`planetscale_mcp_planetscale_cancel_insights_agent_run`

Cancel an Insights Agent run that is pending, submitting, or running. A run that already finished cannot be cancelled.

Submit Insights Agent Run Feedback`planetscale_submit_insights_agent_run_feedback`

Record whether a completed Insights Agent run was useful, when the user says so. Only rate a run when the user expresses...

Update Insights Agent Schedule`planetscale_update_insights_agent_schedule`

Turn an Insights Agent schedule on or off, or change when it runs. Each branch has one schedule per run type: \`slow\_quer...

Submit Feedback`planetscale_submit_feedback`

Report a concrete problem or friction with PlanetScale or these tools for PlanetScale to review: an incorrect result, a...

Ask A Question`planetscale_ask_question`

Record a question about PlanetScale you could not answer with planetscale\_search\_documentation or the other tools, so Pl...

List Organizations`planetscale_mcp_planetscale_list_organizations`

List the PlanetScale organizations your account belongs to. This can include organizations the current authorization doe...

Get Organization`planetscale_mcp_planetscale_get_organization`

Get details about a specific organization

List Regions`planetscale_mcp_planetscale_list_regions_for_organization`

List the regions available for an organization.

List Databases`planetscale_mcp_planetscale_list_databases`

List the databases within an organization that the current authorization grants. This can be fewer than the organization...

Get Database`planetscale_mcp_planetscale_get_database`

Get details about a specific database

List Branches`planetscale_mcp_planetscale_list_branches`

List all branches within a databases

Get Branch`planetscale_mcp_planetscale_get_branch`

Get details about a database branch

Get Branch Schema`planetscale_mcp_planetscale_get_branch_schema`

Get the schema (tables, columns) for a database branch

List Schema Recommendations`planetscale_mcp_planetscale_list_schema_recommendations`

List all schema recommendations for a database. Each schema recommendation is based on production data from the users da...

List Insights Agent Runs`planetscale_mcp_planetscale_list_insights_agent_runs`

List the Insights Agent runs on a branch. A run reviews slow queries or implements schema recommendations in the reposit...

Get Insights Agent Run`planetscale_mcp_planetscale_get_insights_agent_run`

Get an Insights Agent run by number: its state, outcome, summary, pull request, and the stages of its latest attempt. A...

Get Insights Agent Schedules`planetscale_get_insights_agent_schedules`

Get the Insights Agent schedules on a branch, one per run type: whether each is enabled, how often it runs, and when it...

List Invoices`planetscale_list_invoices`

List all invoices for an organization.

Get Invoice Line Items`planetscale_get_invoice_line_items`

Get all line items for an invoice. See prorated costs broken down by database branch. Including storage, egress bandwidt...

Get Billing Payment Method`planetscale_get_organization_billing_payment_method`

Get the current payment method for an organization

List MoveTables Workflows`planetscale_list_move_tables_workflows`

List the MoveTables workflows on a PlanetScale Vitess database branch.

`organization:read_workflows`

Start List MoveTables Workflows`planetscale_start_list_move_tables_workflows`

Start asynchronous listing of the MoveTables workflows on a Vitess database branch.

`organization:read_workflows`

Get MoveTables Workflow`planetscale_get_move_tables_workflow`

Retrieve the details of a MoveTables workflow on a Vitess database branch.

`organization:read_workflows`

Get MoveTables Workflow Status`planetscale_get_move_tables_workflow_status`

Retrieve the copy progress and traffic state of a MoveTables workflow.

`organization:read_workflows`

Create MoveTables Workflow`planetscale_create_move_tables_workflow`

Create a MoveTables workflow that copies tables between keyspaces of a Vitess database branch.

`organization:write_workflows`

Start MoveTables Workflow`planetscale_start_move_tables_workflow`

Start or resume a stopped MoveTables workflow.

`organization:write_workflows`

Stop MoveTables Workflow`planetscale_stop_move_tables_workflow`

Pause a running MoveTables workflow.

`organization:write_workflows`

Switch Traffic MoveTables Workflow`planetscale_switch_traffic_move_tables_workflow`

Switch query traffic for a MoveTables workflow to the target keyspace.

`organization:write_workflows`

Reverse Traffic MoveTables Workflow`planetscale_reverse_traffic_move_tables_workflow`

Switch query traffic for a MoveTables workflow back to the source keyspace.

`organization:write_workflows`

Complete MoveTables Workflow`planetscale_complete_move_tables_workflow`

Finish a MoveTables workflow and clean up after all traffic is switched.

`organization:write_workflows`

Cancel MoveTables Workflow`planetscale_cancel_move_tables_workflow`

Cancel a MoveTables workflow that is still in progress.

`organization:write_workflows`

List Organizations`planetscale_list_organizations`

List the PlanetScale organizations the current token can access.

`user:read_organizations`

List Admin Size SKUs`planetscale_list_admin_size_skus`

List the admin node sizes available for a Neki (PlanetScale Postgres) branch.

`organization:read_branches`

List Cluster Size SKUs`planetscale_list_cluster_size_skus`

List the cluster sizes available to a PlanetScale organization.

`user:read_organizations`

List Postgres Versions`planetscale_list_postgres_versions`

List the published PostgreSQL versions available for an engine.

List Public Regions`planetscale_list_public_regions`

List all public PlanetScale regions.

List Regions For Organization`planetscale_list_regions_for_organization`

List the regions available to a PlanetScale organization.

`user:read_organizations`

Get Current User`planetscale_get_current_user`

Retrieve the user associated with the current token.

`user:read_user`

Get Organization`planetscale_get_organization`

Retrieve a single PlanetScale organization by name.

`user:read_organizations`

List Passwords`planetscale_list_passwords`

List connection passwords for a database branch.

`organization:manage_passwords`

Get Password`planetscale_get_password`

Get a single connection password of a database branch.

`organization:manage_passwords`

Create Password`planetscale_create_password`

Create a database connection password (credential) for a branch.

`organization:manage_passwords`

Update Password`planetscale_update_password`

Update the name or CIDR allow-list of a password.

`organization:manage_passwords`

Renew Password`planetscale_renew_password`

Renew an expiring password to extend its TTL.

`organization:manage_passwords`

Delete Password`planetscale_delete_password`

Delete a database connection password.

`organization:manage_passwords`

List Roles`planetscale_list_roles`

List the Postgres roles (connection credentials) on a database branch.

`organization:manage_passwords`

Get Role`planetscale_get_role`

Retrieve a Postgres role and its connection details.

`organization:manage_passwords`

Get Default Role`planetscale_get_default_role`

Retrieve the default postgres role for a branch.

`organization:manage_passwords`

Create Role`planetscale_create_role`

Create a new Postgres role (connection credentials) on a database branch.

`organization:manage_passwords`

Update Role`planetscale_update_role`

Update a Postgres role's name or query-safety settings.

`organization:manage_passwords`

Renew Role`planetscale_renew_role`

Renew the expiration of a Postgres role.

`organization:manage_passwords`

Reset Role Password`planetscale_reset_role`

Reset a Postgres role's password.

`organization:manage_passwords`

Reset Default Role`planetscale_reset_default_role`

Reset the password of the branch's default postgres role.

`organization:manage_passwords`

Reassign Role Objects`planetscale_reassign_role_objects`

Reassign the database objects owned by a role to another role.

`organization:manage_passwords`

Delete Role`planetscale_delete_role`

Delete a Postgres role and revoke its credentials.

`organization:manage_passwords`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.