Prisma

Learn how to use Prisma with Composio

Overview

Enum

PRISMA

Description

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.

Authentication Details

token
stringRequired

Actions

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.

Action Parameters

databaseId
stringRequired
name
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

isDefault
boolean
name
stringRequired
projectId
stringRequired
region
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

name
stringRequired
region
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

command
stringRequired
connectionString
stringRequired
parameters
array

Action Response

data
object
error
string
successful
boolean
Execute sql select queries against prisma databases. runs read-only queries safely through postgresql driver with automatic type mapping. perfect for data analysis, schema inspection, and reporting operations.

Action Parameters

connectionString
stringRequired
parameters
array
query
stringRequired

Action Response

data
object
error
string
successful
boolean
Retrieve specific prisma database by id. returns database details including status, project context, and regional deployment. use for database monitoring, validation, and administrative operations.

Action Parameters

databaseId
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

id
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

connectionString
stringRequired
includeIndexes
boolean
tableName
string

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

Action Response

data
array
error
string
successful
boolean
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.

Action Parameters

databaseId
stringRequired
limit
integerDefaults to 25

Action Response

data
array
error
string
meta
object
pagination
object
successful
boolean
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.

Action Parameters

cursor
string
databaseId
stringRequired
limit
integerDefaults to 100

Action Response

data
array
error
string
pagination
object
successful
boolean
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.

Action Parameters

cursor
string
limit
integerDefaults to 100
projectId
stringRequired

Action Response

data
array
error
string
pagination
object
successful
boolean
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.

Action Parameters

Action Response

data
array
error
string
successful
boolean
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.

Action Parameters

cursor
string
limit
integerDefaults to 100

Action Response

data
array
error
string
pagination
object
successful
boolean
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.

Action Parameters

cursor
string
limit
integerDefaults to 100

Action Response

data
array
error
string
pagination
object
successful
boolean
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.

Action Parameters

backupId
stringRequired
databaseId
stringRequired
targetDatabaseName
stringRequired

Action Response

data
object
error
string
successful
boolean
Transfer prisma project ownership to another user. changes project ownership to recipient specified by their access token. current owner loses access unless explicitly granted by new owner.

Action Parameters

id
stringRequired
recipientAccessToken
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

id
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

databaseId
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

id
stringRequired

Action Response

data
object
error
string
successful
boolean