Skip to main content
Glama

Provision object storage

provision_storage
Idempotent

Provision the project's managed S3-compatible object storage (bucket + scoped access key) and inject S3_ENDPOINT/S3_BUCKET/S3_ACCESS_KEY/S3_SECRET_KEY/S3_REGION/S3_FORCE_PATH_STYLE into the app's environment — the same action as the dashboard's Settings → S3 button. Needed by anything that handles file uploads: uploaded files belong in this bucket rather than in Postgres columns, and no external S3 provider is needed. Idempotent: a project that already has a bucket gets its current state back (already_provisioned=true) and nothing is created. Returns the env var names that are now set, with masked values. Deployed commits are rolled so the new variables land in the running pods. Requires a read-write token.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>"
    },
    "name": "provision_storage"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNooptional provisioning mode: disk (Postgres or S3 in the project's own data pod on its disk) or nas (object storage only: a bucket on the shared server; refused for Postgres). Omit to use the platform default; Postgres is always disk. A second call on an already-provisioned project returns the current mode and ignores this field
project_idYesthe project id (from list_projects or deploy_files)

Output Schema

NameRequiredDescriptionDefault
kindYes
modeNo
messageYes
env_varsYes
repairedYes
convergedYes
project_idYes
resource_nameNo
rolled_commitsNo
already_provisionedYes
env_secret_digest_afterNo
env_secret_digest_beforeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / mode / description
      Previous value: -"optional provisioning mode: nas (shared servers) or disk (Postgres and S3 as sidecars on the commit disk). Omit to use the platform default. A second call on an already-provisioned project returns the current mode and ignores this field"New value: +"optional provisioning mode: disk (Postgres or S3 in the project's own data pod on its disk) or nas (object storage only: a bucket on the shared server; refused for Postgres). Omit to use the platform default; Postgres is always disk. A second call on an already-provisioned project returns the current mode and ignores this field"
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses idempotent semantics (already_provisioned=true, nothing created), the masked return values, the auth requirement (read-write token), and a non-obvious side effect — deployed commits are rolled so new variables land in running pods. That rolling restart is exactly the kind of consequence an agent must know before calling a non-readOnly tool.

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?

Front-loaded with the action and its effect, then layered with idempotency, return shape, and auth in a sensible order. It is a dense single paragraph with a few stacked clauses, but nearly every sentence carries actionable information.

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

Completeness5/5

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

Covers purpose, preconditions, idempotency, side effects, and even return values despite an output schema already existing. For a provisioning mutation with only two parameters, nothing an agent needs to decide or call correctly is missing.

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 coverage is 100% and the mode parameter is thoroughly documented in the schema itself (disk vs nas, refusal for Postgres, ignored on repeat calls). The description adds no meaning about either project_id or mode, so the schema does all the work and the baseline 3 applies.

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 (provision managed S3-compatible object storage: bucket + scoped access key) and enumerates the exact env vars injected. It also anchors the action to a concrete dashboard equivalent (Settings → S3), leaving no ambiguity about what gets created versus, say, provision_postgres.

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?

Explicitly names the triggering condition — anything that handles file uploads — and rules out the external-provider path, plus clarifies that files belong here rather than in Postgres columns. It does not name a sibling alternative to use instead, so it stops short of the 5 bar.

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