Skip to main content
Glama

Deploy files

deploy_files
Destructive

Deploy files you wrote as a live web app. Use when the code is in this conversation and there is no GitHub repository. First call: name + every file; returns app_id, url and the file list. To change the app: the same app_id + only the changed files (merged; other files stay); delete removes paths; replace: true sends the whole app. Limits: 200 files, 256 KB a file, 512 KB a call, text only. What builds: a static site (index.html at the root); a FastAPI app (requirements.txt with fastapi, main.py with app, no index.html at the root); anything else: add a Dockerfile that listens on 0.0.0.0:$PORT and installs dependencies itself (npm install, pip install). Never write a lockfile by hand. Never put secrets in files: call set_app_secret if this connection has the secrets permission, else have the person add them in the Secrets section of the Dockhold dashboard, and read them on the server. Poll get_app_status until RUNNING. Free accounts get a few deploys a day: batch changes into one call; on free_daily_limit, show the person the message and do not retry. Requires the deploy permission.

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_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA name for a new app (1-64 chars). Required when creating; leave it out to change an app.
filesNoThe files to add or replace. Required when creating.
app_idNoThe app to change, from an earlier answer or list_apps (source: files). Omit to create a new app.
deleteNoUpdate only, not with replace: paths to remove
replaceNoUpdate only: the listed files become the whole app (default false: they are merged)
memory_mbNoCreate only: compute size in MB, one of the values get_resource_usage reports under compute.steps_mb. Omit to get the minimum slice (256 MB); resize_app changes it later.
with_databaseNoCreate only: provision a managed Postgres database for the app (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the destructive/openWorld annotations by disclosing merge semantics (other files stay), that delete removes paths and replace resends the whole app, hard limits (200 files, 256 KB per file, 512 KB per call, text only), and the required deploy permission. It also states the build-detection rules (static index.html, FastAPI with main.py, otherwise a Dockerfile on 0.0.0.0:$PORT) and the free-tier throttling behavior, none of which the annotations convey. No contradiction with destructiveHint=true, which the merge/delete/replace behavior corroborates.

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 purpose and the creating-changes distinction before limits, build rules, and secrets guidance, so an agent can act on the first two sentences. It is dense and near the practical length ceiling for a description, with several clauses compressed into single sentences, but essentially no filler.

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?

For a 7-parameter, open-world deploy tool with no output schema, it covers the whole lifecycle an agent needs: creation, incremental updates, deletion, build detection, secret handling, status polling, and quota failure handling. The return shape (app_id, url, file list) is stated even though no output schema exists.

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, and the description still adds real meaning: it explains the create-vs-update switch between name/app_id and the merge-versus-replace tradeoff that the schema states only tersely. It does not mention memory_mb or with_database at all, leaving those to the schema, which is acceptable but short of fully additive.

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 ('Deploy files you wrote as a live web app') and immediately distinguishes itself from the GitHub-based sibling by scoping to 'the code is in this conversation and there is no GitHub repository'. An agent can choose between deploy_files and deploy_app without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use criteria (code in conversation, no repo), the exact first-call shape (name + every file vs. app_id + only changed files), and the follow-up loop ('Poll get_app_status until RUNNING'). It also routes to alternatives by name: set_app_secret when the connection has secrets permission, the dashboard Secrets section otherwise, resize_app for later resizing, and a defined non-retry path on free_daily_limit.

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.