Skip to main content
Glama

Run container services (server, database, workers) for a site

deploy_app
Destructive

Run container services next to a site, from any public image: the user's own server (running code from the site's source tree), a database such as Postgres or MySQL, Redis, or workers, each in a gVisor sandbox. The call applies the whole config: services missing from it are stopped (their volumes are kept) and the others restart, picking up new source files. It waits until every service is ready and returns per-service status; if one is not ready, call get_app_status with logs. One service may be public: it serves the site's HTTP traffic on its port. Use "${generated:NAME}" for database passwords. API keys and other outside secrets never go in the config, the source or the chat: the user adds them in the VibeDeploy dashboard (site Settings, Secrets) and every service receives them as environment variables. Per site: up to 6 services, 2048Mi memory and 2000m CPU in total, 4 volumes, 3Gi storage (VibeDeploy can raise the CPU / memory ceiling of a site; get_app_status shows it as resourceCeilings). Container volumes are not included in snapshots yet.

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": "deploy_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoSite name as shown by list_sites, e.g. my-portfolio. Provide name or siteId.
configNoThe app config; omit it to use vibedeploy.json from the site's source tree. Shape: {"services":{"<name>":{"image":"postgres:16-alpine","port":5432,"public":false,"env":{"KEY":"value"},"volumes":{"/var/lib/postgresql/data":"1Gi"},"command":[],"args":[],"workingDir":"/app","source":false,"sourcePath":"/app","memory":"256Mi","cpu":"500m"}}}. Services reach each other by name (host "db"). "source":true copies the source tree into sourcePath on every start, e.g. {"image":"node:22-alpine","source":true,"command":["sh","-c","npm ci && node server.js"],"port":3000,"public":true}. "$(OTHER)" embeds an earlier env var of the same service, e.g. "DATABASE_URL":"postgres://app:$(DB_PASSWORD)@db:5432/app". For Postgres set PGDATA to a subdirectory of the volume.
siteIdNoSite id from list_sites or get_site. Use instead of name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / config / description
      Previous value: -"The app config object. Omit it to use vibedeploy.json from the site's source tree. App config: { \"services\": { \"<name>\": { \"image\": \"postgres:16-alpine\", \"port\": 5432, \"public\": false, \"command\": [...], \"args\": [...], \"workingDir\": \"/app\", \"env\": { \"KEY\": \"value\" }, \"volumes\": { \"/var/lib/postgresql/data\": \"1Gi\" }, \"source\": false, \"sourcePath\": \"/app\", \"memory\": \"256Mi\", \"cpu\": \"500m\" } } }. Any public image works. Services reach each other by service name (e.g. host \"db\", port 5432). Exactly one service may be \"public\": true; it receives all HTTP traffic for the site's domains on its \"port\" (plain HTTP, TLS is terminated for you). \"source\": true copies the site's source tree (write_source_files) into sourcePath (default /app, writable) on every start, so e.g. {\"image\":\"node:22-alpine\",\"source\":true,\"command\":[\"sh\",\"-c\",\"npm ci && node server.js\"],\"port\":3000,\"public\":true}. \"${generated:NAME}\" as an env value is a random secret generated once and shared by every service that references it (use it for database passwords); \"$(OTHER)\" embeds an earlier variable of the same service, e.g. \"DATABASE_URL\": \"postgres://app:$(DB_PASSWORD)@db:5432/app\". Secrets from outside (API keys, OAuth client secrets, tokens) never go in the config, the source or the chat: the user adds them in the VibeDeploy dashboard (the site's Settings tab, section Secrets; get_app_status returns the direct link as secrets.manageUrl). Every service gets them as env vars and restarts automatically; an explicit env entry with the same name wins. get_app_status lists the secret names that are set, never their values. Volumes persist across deploys; everything else is recreated. For Postgres set PGDATA to a subdirectory of the volume. Outbound internet works (not SMTP port 25); private networks are blocked. Limits per site: 6 services, 2048Mi memory and 2000m CPU in total (default 256Mi / 500m per service), 4 volumes, 3Gi storage."New value: +"The app config; omit it to use vibedeploy.json from the site's source tree. Shape: {\"services\":{\"<name>\":{\"image\":\"postgres:16-alpine\",\"port\":5432,\"public\":false,\"env\":{\"KEY\":\"value\"},\"volumes\":{\"/var/lib/postgresql/data\":\"1Gi\"},\"command\":[],\"args\":[],\"workingDir\":\"/app\",\"source\":false,\"sourcePath\":\"/app\",\"memory\":\"256Mi\",\"cpu\":\"500m\"}}}. Services reach each other by name (host \"db\"). \"source\":true copies the source tree into sourcePath on every start, e.g. {\"image\":\"node:22-alpine\",\"source\":true,\"command\":[\"sh\",\"-c\",\"npm ci && node server.js\"],\"port\":3000,\"public\":true}. \"$(OTHER)\" embeds an earlier env var of the same service, e.g. \"DATABASE_URL\":\"postgres://app:$(DB_PASSWORD)@db:5432/app\". For Postgres set PGDATA to a subdirectory of the volume."
    • addedInput schema / properties / name / description
      Added value: +"Site name as shown by list_sites, e.g. my-portfolio. Provide name or siteId."
    • addedInput schema / properties / siteId / description
      Added value: +"Site id from list_sites or get_site. Use instead of name."
  2. Changed1 schema field changed
    • changedInput schema / properties / config / description
      Previous value: -"The app config object. Omit it to use vibedeploy.json from the site's source tree. App config: { \"services\": { \"<name>\": { \"image\": \"postgres:16-alpine\", \"port\": 5432, \"public\": false, \"command\": [...], \"args\": [...], \"workingDir\": \"/app\", \"env\": { \"KEY\": \"value\" }, \"volumes\": { \"/var/lib/postgresql/data\": \"1Gi\" }, \"source\": false, \"sourcePath\": \"/app\", \"memory\": \"256Mi\", \"cpu\": \"500m\" } } }. Any public image works. Services reach each other by service name (e.g. host \"db\", port 5432). Exactly one service may be \"public\": true; it receives all HTTP traffic for the site's domains on its \"port\" (plain HTTP, TLS is terminated for you). \"source\": true copies the site's source tree (write_source_files) into sourcePath (default /app, writable) on every start, so e.g. {\"image\":\"node:22-alpine\",\"source\":true,\"command\":[\"sh\",\"-c\",\"npm ci && node server.js\"],\"port\":3000,\"public\":true}. \"${generated:NAME}\" as an env value is a random secret generated once and shared by every service that references it (use it for database passwords); \"$(OTHER)\" embeds an earlier variable of the same service, e.g. \"DATABASE_URL\": \"postgres://app:$(DB_PASSWORD)@db:5432/app\". Site secrets set in the dashboard are injected as env vars too. Volumes persist across deploys; everything else is recreated. For Postgres set PGDATA to a subdirectory of the volume. Outbound internet works (not SMTP port 25); private networks are blocked. Limits per site: 6 services, 2048Mi memory and 2000m CPU in total (default 256Mi / 500m per service), 4 volumes, 3Gi storage."New value: +"The app config object. Omit it to use vibedeploy.json from the site's source tree. App config: { \"services\": { \"<name>\": { \"image\": \"postgres:16-alpine\", \"port\": 5432, \"public\": false, \"command\": [...], \"args\": [...], \"workingDir\": \"/app\", \"env\": { \"KEY\": \"value\" }, \"volumes\": { \"/var/lib/postgresql/data\": \"1Gi\" }, \"source\": false, \"sourcePath\": \"/app\", \"memory\": \"256Mi\", \"cpu\": \"500m\" } } }. Any public image works. Services reach each other by service name (e.g. host \"db\", port 5432). Exactly one service may be \"public\": true; it receives all HTTP traffic for the site's domains on its \"port\" (plain HTTP, TLS is terminated for you). \"source\": true copies the site's source tree (write_source_files) into sourcePath (default /app, writable) on every start, so e.g. {\"image\":\"node:22-alpine\",\"source\":true,\"command\":[\"sh\",\"-c\",\"npm ci && node server.js\"],\"port\":3000,\"public\":true}. \"${generated:NAME}\" as an env value is a random secret generated once and shared by every service that references it (use it for database passwords); \"$(OTHER)\" embeds an earlier variable of the same service, e.g. \"DATABASE_URL\": \"postgres://app:$(DB_PASSWORD)@db:5432/app\". Secrets from outside (API keys, OAuth client secrets, tokens) never go in the config, the source or the chat: the user adds them in the VibeDeploy dashboard (the site's Settings tab, section Secrets; get_app_status returns the direct link as secrets.manageUrl). Every service gets them as env vars and restarts automatically; an explicit env entry with the same name wins. get_app_status lists the secret names that are set, never their values. Volumes persist across deploys; everything else is recreated. For Postgres set PGDATA to a subdirectory of the volume. Outbound internet works (not SMTP port 25); private networks are blocked. Limits per site: 6 services, 2048Mi memory and 2000m CPU in total (default 256Mi / 500m per service), 4 volumes, 3Gi storage."
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation by spelling out exactly what is destroyed (services missing from the config are stopped) and what survives (volumes are kept), plus the fact that surviving services restart and pick up new source. It also discloses blocking behavior (waits until every service is ready, returns per-service status), secret handling, and hard quotas (6 services, 2048Mi, 2000m CPU, 4 volumes, 3Gi).

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-loads what the tool does and the destructive whole-config semantics before the operational detail. It is dense rather than padded, though the secrets and quota sentences sit in a long run-on paragraph that could be split for faster scanning.

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?

With no output schema, the description still explains the return value (per-service status) and what to do when a service is not ready. For a nested-config, destructive, open-world tool it covers the failure path, secret model, and limits an agent needs before calling it.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not carry: the "${generated:NAME}" password placeholder, the guidance that outside secrets must never appear in the config, and the quota ceilings per site. The rest of the config shape narrative largely mirrors the schema's own description.

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: run container services next to a site from any public image, covering server, database, Redis and workers in a gVisor sandbox. An agent can tell this apart from remove_app, deploy_site and get_app_status without opening any 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 clear context: the call applies the whole config, omission falls back to vibedeploy.json, and a not-ready service should be followed by get_app_status with logs. It does not, however, distinguish itself from closely related siblings such as deploy_site, build_and_deploy, or the begin/commit_deploy pair.

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.