Skip to main content
Glama

Promote a Workload

promote_workload
DestructiveIdempotent

Run a workload in another GVC of the same organization with the spec it has now (staging to production): copies the spec, with an optional image and env values for the target, creates or updates the workload there, grants access to the secrets its env references, and waits up to 40 seconds. Volume sets are per GVC, so a workload with one needs the target's storage first. Overwrites an existing target of the same name: get approval first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envNoEnv values that differ in the target, by name; the rest is copied.
gvcYesGVC the workload runs in now, e.g. staging.
orgNoOrganization slug.
imageNoImage for the target (default: the one the source runs).
workloadYesWorkload to promote.
targetGvcYesGVC to run the same workload in, e.g. production. It must exist.
waitSecondsNoSeconds to wait on the server until the target is ready, 0 to 45. The call returns as soon as it is, or with the latest state when the time runs out. Use this instead of calling again and again.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataNoThe full result. Read this, not only the summary.
detailsNo
summaryYes
nextStepsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the full side-effect chain: copies spec, applies optional image/env, creates or updates the target, grants secret access for referenced env values, and waits server-side. Annotations already cover destructive/idempotent/openWorld, so this is largely additive. However, it says it 'waits up to 40 seconds' while the schema allows 0–45, a factual mismatch that costs it a point.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Every sentence earns its place: the core action is front-loaded, followed by side effects, then prerequisites, then the overwrite warning. No filler or restated name/title.

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 annotations, a fully documented 7-param schema, and an output schema, the description carries only what structured fields cannot: the copy/grant/wait behavior chain and the volume-set and overwrite caveats. Nothing needed to invoke it 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 description coverage is 100%, so the baseline is 3. The description adds genuine meaning by explaining that env values override by name while the rest is copied and that image defaults to the source's image, which clarifies intent beyond the per-field docs.

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 precise verb+resource with full scope: run an existing workload in another GVC of the same org, copying its current spec. It is clearly distinguishable from siblings like create_workload, update_workload, and deploy_app because it moves an already-running spec between GVCs.

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 strong context for when to use it (staging to production), plus prerequisites: the target GVC must exist, volume-set workloads need the target's storage first, and existing targets of the same name are overwritten so approval should be obtained. It never names an alternative sibling explicitly, so it falls short of a 5.

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.