# Prisma

Prisma Data Platform provides database tools including Accelerate (global database cache), Optimize (AI-driven query analysis), and Prisma Postgres (managed PostgreSQL). Manage workspaces, projects, environments, and API keys programmatically.

- **Category:** databases
- **Auth:** OAUTH2, API_KEY
- **Tools:** 20
- **Triggers:** 0
- **Slug:** `PRISMA`
- **Version:** 20260211_00

## Tools

### Create Database Connection

**Slug:** `PRISMA_CREATE_CONNECTION`

Create new API key connection for database access. Creates connection string with embedded credentials for application database access. Returns complete connection details ready for immediate use.

### Create Project Database

**Slug:** `PRISMA_CREATE_DATABASE`

Create new postgres database in an existing Prisma project. Creates database in specified region with connection strings and API keys. Returns complete database details ready for immediate use.

### Create Prisma Project

**Slug:** `PRISMA_CREATE_PROJECT`

Create new Prisma project with managed postgres database. Creates project in authenticated user's workspace with postgres database in specified region. Returns complete project details including connection strings and API keys.

### Delete Database Connection

**Slug:** `PRISMA_DELETE_CONNECTION`

Permanently delete database connection and revoke API key access. WARNING: This immediately revokes database access for any applications using this connection string. Ensure no critical systems depend on this connection.

### Delete Prisma Database

**Slug:** `PRISMA_DELETE_DATABASE`

Permanently delete Prisma database and all stored data. WARNING: This action cannot be undone. All data in the database will be permanently destroyed. Default databases typically cannot be deleted.

### Delete Prisma Project

**Slug:** `PRISMA_DELETE_PROJECT`

Permanently delete Prisma project and all associated resources. WARNING: This action cannot be undone. All databases, environments, and project data will be permanently destroyed. Use with extreme caution in production environments.

### Execute SQL Command

**Slug:** `PRISMA_EXECUTE_SQL_COMMAND`

Execute SQL commands that modify database data or structure. Runs INSERT, UPDATE, DELETE, CREATE TABLE, and other data modification commands safely through PostgreSQL driver with parameterized query support.

### Execute SQL Query

**Slug:** `PRISMA_EXECUTE_SQL_QUERY`

Execute SQL SELECT queries against Prisma Postgres databases. Runs read-only queries safely through direct PostgreSQL connection with SSL. Uses credentials from create_connection action (host, user, pass fields). Perfect for data analysis, schema inspection, and reporting operations.

### Get Prisma Database

**Slug:** `PRISMA_GET_DATABASE`

Retrieve specific Prisma database by ID. Returns database details including status, project context, and regional deployment. Use for database monitoring, validation, and administrative operations.

### Get Prisma Project

**Slug:** `PRISMA_GET_PROJECT`

Retrieve specific Prisma project by ID. Returns project details including name, creation timestamp, and workspace information. Use for project detail views, validation, and administrative operations.

### Inspect Database Schema

**Slug:** `PRISMA_INSPECT_DATABASE_SCHEMA`

Inspect database schema structure and table information. Returns comprehensive schema details including tables, columns, data types, constraints, and relationships. Essential for understanding database structure before executing queries.

### List Prisma Accelerate Regions

**Slug:** `PRISMA_LIST_ACCELERATE_REGIONS`

Retrieve all available regions for Prisma Accelerate. Returns regions where Accelerate global database cache can be deployed. Use for cache region selection to minimize latency for your users.

### List Database Backups

**Slug:** `PRISMA_LIST_BACKUPS`

Retrieve list of available backups for a specific database. Returns backup details including status, size, type, and restoration readiness. Use for backup monitoring, restoration planning, and compliance auditing.

### List Database Connections

**Slug:** `PRISMA_LIST_CONNECTIONS`

Retrieve paginated list of connections for a specific database. Returns connection details including names, creation dates, and database context. Use for API key management, security audits, and access control.

### List Project Databases

**Slug:** `PRISMA_LIST_DATABASES`

Retrieve paginated list of databases for a specific Prisma project. Returns database details including status, region, and project context. Use for database discovery, monitoring, and project administration.

### List Prisma Postgres Regions

**Slug:** `PRISMA_LIST_POSTGRES_REGIONS`

Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.

### List Prisma Projects

**Slug:** `PRISMA_LIST_PROJECTS`

Retrieve paginated list of Prisma projects accessible to authenticated user. Returns project IDs, names, workspace info, and timestamps with cursor-based pagination. Use for project discovery, UI selection flows, and administrative operations.

### List Prisma Workspaces

**Slug:** `PRISMA_LIST_WORKSPACES`

Retrieve paginated list of Prisma workspaces accessible to authenticated user. Returns workspace IDs, names, creation timestamps with cursor-based pagination. Use for workspace discovery, UI selection flows, and administrative operations.

### Restore Database Backup

**Slug:** `PRISMA_RESTORE_BACKUP`

Restore database backup to new database instance. Creates new database from existing backup with specified name. Operation is asynchronous - monitor the returned database status for completion. Restoration may take several minutes.

### Transfer Prisma Project

**Slug:** `PRISMA_TRANSFER_PROJECT`

Transfer Prisma project ownership to another user's workspace. Transfers project ownership from the current authenticated user to the recipient specified by their OAuth2 access token. This is typically used in partner integrations where databases are provisioned on the partner's workspace and later transferred to end users. The project and all its databases are moved to the recipient's workspace. The current owner loses access unless the new owner explicitly grants it. Requirements: - Valid project ID owned by the current user - Valid OAuth2 access token for the recipient user - Recipient workspace must have sufficient quota for the project
