Skip to main content
Glama

Create managed database

databases.create

Create 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

NameRequiredDescriptionDefault
nameYesdatabase display name
engineYesmanaged database engine
versionNosupported engine version; omit for the platform-recommended production version
usernameNoinitial database username; defaults to admin
cpu_limitNoKubernetes CPU quantity such as 500m; omit for plan-aware recommendation
pool_modeNoPostgreSQL PgBouncer mode: transaction, session, or statement
extensionsNobuilt-in PostgreSQL extensions to activate
project_idNoproject in the selected organization; omit only when the organization has one project
storage_gbNopersistent storage in GiB from 1 to 50; defaults to 5
descriptionNooptional database description
region_codeNotarget region code; omit for recommended region
custom_imageNoadvanced PostgreSQL custom image; mutually exclusive with extension_preset
memory_limitNoKubernetes memory quantity such as 512Mi; omit for plan-aware recommendation
allowed_cidrsNoIPv4 CIDRs allowed to connect; required when public access is enabled
database_nameNoinitial logical database name; defaults to appdb
backup_enabledNoenable managed backups; defaults to true
environment_idYestarget environment identifier belonging to the project
idempotency_keyYesunique caller-generated key for safe retries of this exact request
organization_idNoorganization membership to use for this call; omit only when the account has one current membership
pooler_replicasNoPostgreSQL PgBouncer replicas from 1 to 10
extension_presetNoPostgreSQL extension preset: pgvector, postgis, timescaledb, citus, or pgvector-postgis
sensitive_variablesNoenvironment variable keys whose values must be encrypted and redacted
backup_retention_daysNobackup retention from 1 to 365 days
environment_variablesNoadvanced database configuration environment variables
public_access_enabledNoenable restricted public database access

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare destructiveHint=false and openWorldHint=false, so the description must explain mutation behavior; it does so by stating that plan-aware compute, region, backup, security, and engine defaults are applied, and that creation happens 'in one operation'. It leaves out quota/permission prerequisites, cost implications, and whether provisioning is synchronous or long-running.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with the core action first, the behavioral summary second, and the sibling constraint last. No filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 25-parameter provisioning mutation with an output schema, the description is reasonably complete: it covers scope, defaults, and ordering. Remaining gaps are operational (permissions, quota failures, async completion) rather than things an agent needs to construct a valid call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with all 25 parameters individually documented, including defaults, enums, and ranges, so the schema carries parameter meaning. The description only restates the engine set already encoded in the enum, adding no syntax, interaction, or cross-parameter guidance.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Create and provision a managed PostgreSQL, MySQL, or Valkey resource') and names the engines covered, which no schema field can convey at a glance. It also explicitly distinguishes itself from resources.create and deployments.create, so an agent can pick it without opening a sibling schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit ordering constraint ('Do not call resources.create or deployments.create first') plus the implied condition of provisioning a new database resource rather than snapshotting or restoring an existing one. It stops short of naming any positive alternative (e.g. which sibling to use for importing or restoring), but the negative guidance is concrete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources