Skip to main content
Glama

deploy

Builds the current commit and swaps traffic to it once health checks pass. The previous deployment is kept and can be restored with deployment_rollback. Returns immediately with a deployment id; poll deployment_get for progress. Through MCP a build from a repository is built on your own machine by default, so it never waits in Helm7's build queue: nothing builds until you run the local_build.command in the response (the CLI builds, uploads and starts it) in a shell with Docker and the repository. If you have no shell or Docker, call deploy again with build: "remote", which replaces it and builds on Helm7 (use build_queue_get to see how long the queue is).

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": {
      "productId": "<productId>"
    },
    "name": "deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoWait for the build and the swap to finish before returning. Off by default: a build can take minutes, and deployment_get follows it as it runs.
buildNoWhere the image is built. `remote` waits its turn in Helm7's build queue. `local` is built on your own machine and uploaded, so it never waits: the response names the image to build and deployment_image_upload takes it (the CLI does all of this). Omit it to use the default: local through MCP, otherwise the workspace setting (which falls back to remote when the caller cannot build locally).
commitNoGit SHA. Defaults to the branch tip.
confirmNoRequired for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would.
dry_runNoReturn the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before.
productIdYesProduct identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d.
service_idNoOmit to deploy every service in the environment.
environmentNoEnvironment within a Product. Every Product has production; preview and development are optional. pr-<number> is the preview of an open pull request, made and removed by the GitHub integration on Pro.
idempotency_keyNoReplaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money.
can_build_locallyNoSet by clients that have Docker and the source to hand (the CLI does). With `build` omitted, the workspace default of local only applies when this is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Well beyond the annotations, it discloses the async contract (returns immediately with an id), that the previous deployment is retained and restorable, and the surprising local-build behavior where nothing builds until the returned command is run. The main residual gap is that idempotentHint=false sits alongside an idempotency_key parameter without the description reconciling the two, though the schema covers the key's semantics.

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 correctly: action and health-check gate first, then follow-ups, then the local-build caveat. The third sentence is dense and packs default-resolution, the CLI's role, and the remote fallback into one long clause, which slightly hurts scannability.

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 10 parameters, no output schema, and a multi-step local/remote build flow, the description supplies exactly what the schema cannot: what the response contains (deployment id, local_build.command), that work continues after return, and how to recover via rollback. Nothing an agent needs to invoke this correctly is missing.

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 baseline is 3; the description earns above that by explaining the practical consequence of the build enum (local never queues but requires you to run a command) and how the local default resolves through can_build_locally. The wait parameter's effect is conveyed indirectly through the 'returns immediately, poll deployment_get' framing rather than named explicitly.

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?

Opens with a specific verb and resource plus the completion condition: "Builds the current commit and swaps traffic to it once health checks pass." It also implicitly separates itself from deployment_get (progress), deployment_rollback (undo) and build_queue_get (queue depth), so an agent can place it among siblings without opening schemas.

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 conditional routing: use the returned local_build.command if you have a shell with Docker and the repo, otherwise call deploy again with build: "remote", and use build_queue_get to gauge the queue. It also names deployment_get for progress and deployment_rollback for reverting, covering both follow-up paths.

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