Skip to main content
Glama

pangea_enable_postgres

Enables or updates an isolated Managed PostgreSQL 17 cluster and injects credentials like DATABASE_URL and PGSSLMODE into your Pangea app, so rolling workloads connect with ready-to-use database access.

Instructions

Enable or update isolated self-service Managed PostgreSQL 17 (Mini+, stateless rolling HTTP apps). Injects DATABASE_URL, PGHOST, PGUSER, PGPASSWORD, PGSSLMODE=require, and PANGEA_POSTGRES_CA_PEM.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pangea_enable_postgres"
  }
}

Input Schema

NameRequiredDescriptionDefault
applyNoImmediately roll running workloads to inject credentials (default: true)
cpu_mNoPostgreSQL CPU in millicores (250-8000, default: 500)
projectNoOptional project ID (prj_...) or project name (omit when directory has pangea.yaml)
directoryNoOptional local directory containing pangea.yaml
memory_mibNoPostgreSQL memory in MiB (256-16384, default: 512)
storage_gibNoPostgreSQL Longhorn PVC size in GiB (1-256, default: 2)
wait_secondsNoSeconds to wait for cluster and credential readiness (default: 120)
storage_classNoStorage class (default: longhorn replicated; longhorn-single for scratch/disposable)
inject_database_urlNoInject reserved DATABASE_URL env var automatically (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations the description carries the full burden, and it does disclose a meaningful side effect: credentials/env vars are injected into workloads. However, it does not say whether calling this on an already-enabled database recreates it, whether existing data survives an "update", what permissions are needed, or that pangea_disable_postgres is the reversal path.

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

Conciseness4/5

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

Two sentences, front-loaded with the action and followed by the observable effect; nothing is padded. The parenthetical is dense jargon ("Mini+, stateless rolling HTTP apps") that will not parse for an agent without prior context, which costs a point.

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

Completeness3/5

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

For a nine-parameter mutation tool with no annotations and no output schema, the description covers the core action and injection behavior but omits idempotency, data-preservation behavior on update, and the reversal path. The schema does the parameter-level work, so only the behavioral surface is short.

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% and every one of the nine parameters carries ranges, defaults, and enum values in the schema, so the baseline of 3 applies. The description adds only the list of injected variable names, which is not tied to any individual parameter's semantics.

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

Purpose4/5

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

"Enable or update isolated self-service Managed PostgreSQL 17" gives a specific verb and resource, and the parenthetical scopes it to Mini+ stateless rolling HTTP apps, which is real disambiguation. It never names pangea_disable_postgres or pangea_get_postgres, so the enable/disable/read split is left to be inferred from the verb alone.

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

Usage Guidelines3/5

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

The applicability constraint (Mini+, stateless rolling HTTP apps) implicitly tells the agent when this tool fits, but there is no explicit when-not guidance, no mention of the sibling disable/get tools, and no statement of prerequisites such as an existing project or directory context. Usage is inferable rather than stated.

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

Deploy Server

Other Tools