Skip to main content
Glama

OpenFactory

add_app_bucket

Provision a managed MinIO bucket for an app + publish AWS_* credentials into the app's env automatically.

M1 behavior:

  1. Verify caller owns the app

  2. POST to libvirt :8001 /api/app-infra/buckets (stub mode by default — no real MinIO VM needed for M1)

  3. PUT 5 env keys (OF_S3_ENDPOINT, OF_S3_BUCKET, OF_S3_ACCESS_KEY, OF_S3_SECRET_KEY, OF_S3_REGION) into the app's env via the producer API

  4. Append bucket_id to App.bucket_refs

  5. Return {bucket_id, status, env_keys, env_published}

When OPENFACTORY_STORAGE_PRODUCER_TOKEN is unset, step 3 is skipped and the connection dict (INCLUDING secret_key — shown exactly once) is returned in the response so the caller can manually publish via set_app_env(app_id, set={...}). App code reads with explicit kwargs: boto3.client('s3', endpoint_url=os.environ['OF_S3_ENDPOINT'], aws_access_key_id=os.environ['OF_S3_ACCESS_KEY'], aws_secret_access_key=os.environ['OF_S3_SECRET_KEY']).

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": {
      "app_id": "<app_id>"
    },
    "name": "add_app_bucket"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesApp ID (UUID from create_app).
api_keyNoMCP API key
session_tokenNoSession token

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

No annotations exist, so the description carries the full burden and does so well: it discloses stub mode by default, the ownership verification, the five env keys written, the mutation to App.bucket_refs, and that secret_key is returned exactly once. It does not cover idempotency on repeat calls or what happens on partial failure, which keeps it below a 5.

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 one-line purpose, then a numbered walkthrough that is easy to scan. Slightly heavy: the boto3 client example is developer documentation rather than tool-selection guidance, though it does clarify how the published env keys are consumed.

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 the full mutation lifecycle — ownership check, infra call, env publication, bucket_refs append, and return shape — plus the degraded path when the producer token is missing. Even though an output schema exists, the inline return description removes any ambiguity about env_published.

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%, so the schema already documents app_id, api_key and session_token. The description adds only that app_id is an app the caller must own; it adds no meaning for the auth parameters. Baseline 3 is appropriate.

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 a managed MinIO bucket for an app) and adds the secondary effect (publish AWS_* credentials into the app's env). The five-step enumeration makes it immediately distinguishable from add_app_database and set_app_env.

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 a clear conditional branch: when OPENFACTORY_STORAGE_PRODUCER_TOKEN is unset, step 3 is skipped and the caller must publish manually via set_app_env. It does not explicitly say when to prefer this over add_app_database or when to check list_app_buckets first, so no full when/when-not routing to siblings.

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.