Skip to main content
PlanetScale logo

PlanetScale

Manage PlanetScale: databases, branches, deploy requests, backups, passwords. Exposes 30 actions covering the API surface an agent needs - read and write.

What it can do

MethodWhat it does
planetscale_organizations_listList organizations - GET /organizations.
planetscale_organization_getGet one organization - GET /organizations/{name}.
planetscale_databases_listList databases in an organization - GET /organizations/{organization}/databases.
planetscale_database_getGet one database - GET /organizations/{organization}/databases/{database}.
planetscale_database_createCreate a database - POST /organizations/{organization}/databases.
planetscale_database_deleteDelete a database - DELETE /organizations/{organization}/databases/{database}.
planetscale_branches_listList branches in a database - GET /organizations/{organization}/databases/{database}/branches.
planetscale_branch_getGet one branch - GET /organizations/{organization}/databases/{database}/branches/{branch}.
planetscale_branch_createCreate a branch - POST /organizations/{organization}/databases/{database}/branches.
planetscale_branch_deleteDelete a branch - DELETE /organizations/{organization}/databases/{database}/branches/{branch}.
planetscale_branch_promotePromote a branch to main - POST /organizations/{organization}/databases/{database}/branches/{branch}/promote.
planetscale_branch_rotate_passwordRotate a password on a branch - POST /organizations/{organization}/databases/{database}/branches/{branch}/passwords/{password_id}/rotate.
planetscale_deploy_requests_listList deploy requests - GET /organizations/{organization}/databases/{database}/deploy-requests.
planetscale_deploy_request_getGet one deploy request - GET /organizations/{organization}/databases/{database}/deploy-requests/{number}.
planetscale_deploy_request_createCreate a deploy request - POST /organizations/{organization}/databases/{database}/deploy-requests.
planetscale_deploy_request_deployDeploy a deploy request - POST /organizations/{organization}/databases/{database}/deploy-requests/{number}/deploy.
planetscale_deploy_request_revertRevert a deploy request - POST /organizations/{organization}/databases/{database}/deploy-requests/{number}/revert.
planetscale_deploy_request_closeClose a deploy request - DELETE /organizations/{organization}/databases/{database}/deploy-requests/{number}.
planetscale_backups_listList backups - GET /organizations/{organization}/databases/{database}/backups.
planetscale_backup_getGet one backup - GET /organizations/{organization}/databases/{database}/backups/{backup_id}.
planetscale_backup_createCreate a backup - POST /organizations/{organization}/databases/{database}/backups.
planetscale_passwords_listList passwords for a branch - GET /organizations/{organization}/databases/{database}/branches/{branch}/passwords.
planetscale_password_getGet one password - GET /organizations/{organization}/databases/{database}/branches/{branch}/passwords/{password_id}.
planetscale_password_createCreate a password - POST /organizations/{organization}/databases/{database}/branches/{branch}/passwords.
planetscale_password_deleteDelete a password - DELETE /organizations/{organization}/databases/{database}/branches/{branch}/passwords/{password_id}.
planetscale_regions_listList available regions - GET /organizations/{organization}/regions.
planetscale_oauth_applications_listList OAuth applications - GET /organizations/{organization}/oauth-applications.
planetscale_oauth_application_getGet one OAuth application - GET /organizations/{organization}/oauth-applications/{app_id}.
planetscale_oauth_application_createCreate an OAuth application - POST /organizations/{organization}/oauth-applications.
planetscale_oauth_application_deleteDelete an OAuth application - DELETE /organizations/{organization}/oauth-applications/{app_id}.

How to get credentials

This connector uses an API key / token. Create one in the provider dashboard, then paste it into FlyMyAI:

  • PLANETSCALE_SERVICE_TOKEN_ID - PlanetScale - Settings - Service tokens - token id. (https://app.planetscale.com/)
  • PLANETSCALE_SERVICE_TOKEN - The secret value shown when you create the service token.

Fields to fill in FlyMyAI

FlyMyAI fieldWhere it comes from
PLANETSCALE_SERVICE_TOKEN_IDPlanetScale - Settings - Service tokens - token id.
PLANETSCALE_SERVICE_TOKENThe secret value shown when you create the service token.

Troubleshooting

  • 401 Unauthorized / 403 Forbidden - the token is wrong, expired, or missing a required scope; regenerate it.
  • 429 Too Many Requests - provider rate limit; retry after a short backoff.
  • Unexpected 4xx on writes - double-check required fields; the agent confirms before write actions.
We love our partners - FlyMy.AI builds with the best. Thanks, PlanetScale!