Skip to main content
PlanetScale
Previewv0.1.0
178 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.
2

Configure the Connector

Enable the connector and create a Connector Profile in your project. See Setup Connector Profile.

MCP (OAuth) · Connector Profile

No app registration required. Connects through the PlanetScale MCP server and reaches only the MCP actions.

OAuth 2.0 · Connector Profile

Requires registering an OAuth application in a PlanetScale organization. The person connecting chooses which organizatio…

Service Token · Connector Profile

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 (or via StackOne Hub).See the guide for the authentication type chosen in the Connector Profile:

MCP (OAuth) · Link Account

OAuth 2.0 · Link Account

Service Token · Link Account

4

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.

Actions

|
|
178 actions
Action
Description
Required scopes
List Backups
List backups for a database branch.
Get Backup
Get a single backup of a database branch.
Create Backup
Create an on-demand backup of a database branch.
Update Backup
Update the deletion protection of a backup.
Delete Backup
Delete a backup of a database branch.
List Branch Change Requests
List cluster change requests for a Postgres branch.
Get Branch Change Request
Get a cluster change request for a Postgres branch.
Update Branch Change Request
Create or update a change request for cluster size, replicas, storage, extensions or parameters.
Cancel Branch Change Request
Cancel the pending change or resize request of a branch.
List Branch Resize Requests
List VTGate resize requests for a Vitess (MySQL) branch.
Get Branch Resize Request
Get a VTGate resize request for a Vitess (MySQL) branch.
Update Branch Resize Request
Create or update a VTGate resize request for a Vitess (MySQL) branch.
List Branch Config Change Requests
List config change requests for a Vitess (MySQL) branch and its keyspaces.
Get Branch Config Change Request
Get a config change request for a Vitess (MySQL) branch.
Create Branch Config Change Request
Create a draft change to the VTGate parameters of a Vitess (MySQL) branch.
Submit Branch Config Change Requests
Submit draft config change requests for a branch and its keyspaces.
Cancel Branch Config Change Request
Cancel a draft or pending branch config change request.
List Change Requests
List infrastructure change requests for a branch.
Get Change Request
Get an infrastructure change request for a branch.
Cancel Change Request
Cancel an infrastructure change request for a branch.
List Switchovers
List primary switchovers for a Postgres branch.
Get Switchover
Get a primary switchover for a Postgres branch.
Create Switchover
Move the primary of a Postgres branch to a replica (switchover).
List Branch Vitess Parameters
List the Vitess parameters of a MySQL branch.
List Branches
List the branches of a PlanetScale database.
Get Branch
Retrieve a single branch of a PlanetScale database.
Get Branch Metrics
Retrieve time-series metrics for a database branch.
Get Branch Schema
Retrieve the schema of a database branch.
Get Vtctld Operation
Retrieve the status of an asynchronous vtctld operation on a MySQL branch.
Lint Branch Schema
Run schema lint checks against a database branch.
Create Branch
Create a new branch in a PlanetScale database.
Update Branch
Rename a branch or change its deletion protection.
Update Branch Cluster Config
Change the cluster size of a branch.
Update Safe Migrations
Set safe migrations on or off for a branch.
Enable Safe Migrations
Enable safe migrations on a branch.
Disable Safe Migrations
Disable safe migrations on a branch.
Promote Branch
Promote a development branch to production.
Demote Branch
Demote a production branch to development.
Run Branch Maintenance
Start maintenance on a PostgreSQL branch.
Delete Branch
Delete a branch of a PlanetScale database.
List Database Regions
List the regions a PlanetScale database can use for branches and read-only regions.
List Databases
List the databases in a PlanetScale organization.
Get Database
Retrieve a single PlanetScale database by name.
Create Database
Create a new PlanetScale database.
Update Database Settings
Update the settings of a PlanetScale database.
Delete Database
Permanently delete a PlanetScale database.
List Deploy Requests
List the deploy requests for a database.
Get Deploy Request
Retrieve a single deploy request by its number.
Get Deployment
Retrieve the deployment for a deploy request.
List Deploy Operations
List the deploy operations for a deploy request.
List Deploy Request Reviews
List the reviews left on a deploy request.
Get Deploy Queue
Retrieve the deploy queue for a database.
Check Deploy Request Storage
Check whether the target branch has enough storage to deploy a deploy request.
Create Deploy Request
Create a deploy request to merge schema changes from one branch into another.
Review Deploy Request
Approve or comment on a deploy request.
Queue Deploy Request
Queue a deploy request for deployment.
Cancel Queued Deploy Request
Cancel a queued or in-progress deploy request deployment.
Complete Gated Deploy Request
Apply the staged schema changes of a gated deploy request.
Force Cutover Deploy Request
Enable force cutover for a deploy request.
Complete Errored Deploy
Mark an errored deploy request deployment as complete.
Complete Revert
Revert the schema changes of a deployed deploy request.
Skip Revert Period
Skip the revert period for a deployed deploy request.
Update Auto Apply
Enable or disable auto-apply for a deploy request.
Update Auto Delete Branch
Enable or disable auto-delete of the source branch for a deploy request.
Update Aggressive Cutover
Enable or disable aggressive cutover for a deploy request.
Close Deploy Request
Close an open deploy request without deploying it.
List Branch Queries
List Query Insights statistics for each query pattern on a branch.
Get Query Statistics
Retrieve time-bucketed statistics for one query pattern.
Get Query Summary
Retrieve a summary of statistics for one query pattern.
Get Branch Query
Retrieve a single recorded query execution by ID.
List Branch Query Errors
List query errors on a branch grouped by error fingerprint.
Get Branch Query Error
List the queries that raised a given error fingerprint.
List Branch Query Tags
List query tags and their values observed on a branch.
List Branch Query Tag Summaries
List query statistics grouped by query tag values.
Get Branch Query Tag
Retrieve a single query tag and its observed values.
List Branch Anomalies
List performance anomalies detected on a branch.
Get Branch Anomaly
Retrieve a single branch anomaly by ID.
List Generated Query Patterns Reports
List query patterns reports generated for a branch.
Create Query Patterns Report
Start generating a new query patterns report for a branch.
Get Query Patterns Report Status
Retrieve the status of a query patterns report.
Get Query Patterns Report
Download a finished query patterns report.
Delete Query Patterns Report
Delete a query patterns report.
List Insights Agent Runs
List Insights Agent runs for a branch.
Get Insights Agent Run
Retrieve a single Insights Agent run by number.
Create Insights Agent Run
Start an Insights Agent run on a branch.
Cancel Insights Agent Run
Cancel an in-progress Insights Agent run.
List Schema Recommendations
List schema recommendations for a database.
Get Schema Recommendation
Retrieve a single schema recommendation by number.
Dismiss Schema Recommendation
Dismiss a schema recommendation.
List Keyspaces
List the keyspaces of a PlanetScale Vitess database branch.
Get Keyspace
Retrieve a single keyspace of a PlanetScale Vitess database branch.
Get Keyspace Rollout Status
Retrieve the infrastructure rollout status of a Vitess keyspace.
Create Keyspace
Create a new keyspace on a PlanetScale Vitess database branch.
Update Keyspace
Configure the settings of a Vitess keyspace.
Delete Keyspace
Delete a keyspace from a PlanetScale Vitess database branch.
Get Keyspace VSchema
Retrieve the VSchema of a Vitess keyspace.
Update Keyspace VSchema
Replace the VSchema of a Vitess keyspace.
List Keyspace Resize Requests
List the resize requests of a Vitess keyspace.
Get Keyspace Resize Request
Retrieve a single resize request of a Vitess keyspace.
Update Keyspace Resize Request
Create or update the pending resize request of a Vitess keyspace.
Cancel Keyspace Resize Request
Cancel the pending resize request of a Vitess keyspace.
List Keyspace Config Change Requests
List the configuration change requests of a Vitess keyspace.
Get Keyspace Config Change Request
Retrieve a single configuration change request of a Vitess keyspace.
Create Keyspace Config Change Request
Create a draft change to the mysqld or vttablet parameters of a Vitess keyspace.
Cancel Keyspace Config Change Request
Cancel a draft or pending configuration change request of a Vitess keyspace.
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
Get infrastructure metrics for a PlanetScale branch: CPU, memory, disk, replication lag, connections, PgBouncer, WAL, VT…
Get Query Performance Insights
Get query performance insights for a PlanetScale database branch. By default, aggregates the top queries across curated…
Get Postgres Server Logs
Fetch server logs for a PlanetScale Postgres or Neki database branch (not available for Vitess/MySQL databases). Returns…
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
List the individual captured query executions that failed with a given error fingerprint on a PlanetScale database branc…
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
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
Break query statistics on a PlanetScale database branch down by query tag value — total time, latency, rows read, and e…
List Cluster Sizes
List available PlanetScale cluster sizes (SKUs) for an organization and database engine, including Neki-specific PS-*_NE…
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
Search across PlanetScale documentation and blog posts to find relevant information, code examples, API references, and…
Run A Read-only SQL 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
Execute a write SQL query (INSERT, UPDATE, DELETE, or DDL) against a PlanetScale database. This tool creates short-lived…
Start Billing Card Setup
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
Update the email address PlanetScale sends invoices and billing notices to for an organization. Use when a customer asks…
Get Billing Card Setup Status
Get a Stripe Checkout payment method setup started by planetscale_update_payment_method. Use the setup_id returned by th…
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
Cancel an Insights Agent run that is pending, submitting, or running. A run that already finished cannot be cancelled.
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
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
Report a concrete problem or friction with PlanetScale or these tools for PlanetScale to review: an incorrect result, a…
Ask A Question
Record a question about PlanetScale you could not answer with planetscale_search_documentation or the other tools, so Pl…
List Organizations
List the PlanetScale organizations your account belongs to. This can include organizations the current authorization doe…
Get Organization
Get details about a specific organization
List Regions
List the regions available for an organization.
List Databases
List the databases within an organization that the current authorization grants. This can be fewer than the organization…
Get Database
Get details about a specific database
List Branches
List all branches within a databases
Get Branch
Get details about a database branch
Get Branch Schema
Get the schema (tables, columns) for a database branch
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
List the Insights Agent runs on a branch. A run reviews slow queries or implements schema recommendations in the reposit…
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
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
List all invoices for an organization.
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
Get the current payment method for an organization
List MoveTables Workflows
List the MoveTables workflows on a PlanetScale Vitess database branch.
Start List MoveTables Workflows
Start asynchronous listing of the MoveTables workflows on a Vitess database branch.
Get MoveTables Workflow
Retrieve the details of a MoveTables workflow on a Vitess database branch.
Get MoveTables Workflow Status
Retrieve the copy progress and traffic state of a MoveTables workflow.
Create MoveTables Workflow
Create a MoveTables workflow that copies tables between keyspaces of a Vitess database branch.
Start MoveTables Workflow
Start or resume a stopped MoveTables workflow.
Stop MoveTables Workflow
Pause a running MoveTables workflow.
Switch Traffic MoveTables Workflow
Switch query traffic for a MoveTables workflow to the target keyspace.
Reverse Traffic MoveTables Workflow
Switch query traffic for a MoveTables workflow back to the source keyspace.
Complete MoveTables Workflow
Finish a MoveTables workflow and clean up after all traffic is switched.
Cancel MoveTables Workflow
Cancel a MoveTables workflow that is still in progress.
List Organizations
List the PlanetScale organizations the current token can access.
List Admin Size SKUs
List the admin node sizes available for a Neki (PlanetScale Postgres) branch.
List Cluster Size SKUs
List the cluster sizes available to a PlanetScale organization.
List Postgres Versions
List the published PostgreSQL versions available for an engine.
List Public Regions
List all public PlanetScale regions.
List Regions For Organization
List the regions available to a PlanetScale organization.
Get Current User
Retrieve the user associated with the current token.
Get Organization
Retrieve a single PlanetScale organization by name.
List Passwords
List connection passwords for a database branch.
Get Password
Get a single connection password of a database branch.
Create Password
Create a database connection password (credential) for a branch.
Update Password
Update the name or CIDR allow-list of a password.
Renew Password
Renew an expiring password to extend its TTL.
Delete Password
Delete a database connection password.
List Roles
List the Postgres roles (connection credentials) on a database branch.
Get Role
Retrieve a Postgres role and its connection details.
Get Default Role
Retrieve the default postgres role for a branch.
Create Role
Create a new Postgres role (connection credentials) on a database branch.
Update Role
Update a Postgres role’s name or query-safety settings.
Renew Role
Renew the expiration of a Postgres role.
Reset Role Password
Reset a Postgres role’s password.
Reset Default Role
Reset the password of the branch’s default postgres role.
Reassign Role Objects
Reassign the database objects owned by a role to another role.
Delete Role
Delete a Postgres role and revoke its credentials.