Create managed database
databases.createCreate and provision a managed PostgreSQL, MySQL, or Valkey resource in one operation. Applies plan-aware compute, region, backup, security, and engine defaults. Do not call resources.create or deployments.create first.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "tanda-postgres",
"engine": "postgres",
"version": "17",
"project_id": "project-id",
"storage_gb": 10,
"backup_enabled": true,
"environment_id": "environment-id",
"idempotency_key": "tanda-postgres-staging-v1",
"public_access_enabled": false
},
"name": "databases.create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | database display name | |
| engine | Yes | managed database engine | |
| version | No | supported engine version; omit for the platform-recommended production version | |
| username | No | initial database username; defaults to admin | |
| cpu_limit | No | Kubernetes CPU quantity such as 500m; omit for plan-aware recommendation | |
| pool_mode | No | PostgreSQL PgBouncer mode: transaction, session, or statement | |
| extensions | No | built-in PostgreSQL extensions to activate | |
| project_id | No | project in the selected organization; omit only when the organization has one project | |
| storage_gb | No | persistent storage in GiB from 1 to 50; defaults to 5 | |
| description | No | optional database description | |
| region_code | No | target region code; omit for recommended region | |
| custom_image | No | advanced PostgreSQL custom image; mutually exclusive with extension_preset | |
| memory_limit | No | Kubernetes memory quantity such as 512Mi; omit for plan-aware recommendation | |
| allowed_cidrs | No | IPv4 CIDRs allowed to connect; required when public access is enabled | |
| database_name | No | initial logical database name; defaults to appdb | |
| backup_enabled | No | enable managed backups; defaults to true | |
| environment_id | Yes | target environment identifier belonging to the project | |
| idempotency_key | Yes | unique caller-generated key for safe retries of this exact request | |
| organization_id | No | organization membership to use for this call; omit only when the account has one current membership | |
| pooler_replicas | No | PostgreSQL PgBouncer replicas from 1 to 10 | |
| extension_preset | No | PostgreSQL extension preset: pgvector, postgis, timescaledb, citus, or pgvector-postgis | |
| sensitive_variables | No | environment variable keys whose values must be encrypted and redacted | |
| backup_retention_days | No | backup retention from 1 to 365 days | |
| environment_variables | No | advanced database configuration environment variables | |
| public_access_enabled | No | enable restricted public database access |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |