Skip to main content
Glama

Deploy a pipeline

deploy_pipeline
Destructive

Copy the pipeline as it is now to a deployment variant, which the public API (POST /v1/pipeline/invoke with deployment and variant) and schedules run. A deployment and variant that do not exist yet are created; an existing variant gets a new version. Left out, deployment is the pipeline's first deployment (or one named after it) and variant is production. run_pipeline does not need a deployment. Call it first without approved to see what would change and the current deployments, tell the person, and call again with approved: true only after they say yes.

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": {
      "pipeline_id": "<pipeline_id>"
    },
    "name": "deploy_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
variantNoVariant name, e.g. production or staging.
approvedNotrue only after the person has agreed to deploy.
deploymentNoDeployment name: letters, numbers and dashes, e.g. seo-article.
descriptionNoWhat changed in this version, shown in its version history.
pipeline_idYesThe pipeline to deploy.

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?

Beyond the annotations (destructive, non-idempotent, open-world), the description discloses the two-phase dry-run/confirm flow, that missing deployments and variants are created, that an existing variant gets a new version, and how defaults resolve when deployment or variant is omitted. This is exactly the kind of consequence-of-call detail an agent needs before invoking a destructive write.

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 core action and consequence, then defaults, then the required interaction protocol. Sentences are dense but each carries distinct information; the API path notation is slightly heavy but justifies itself by explaining what runs the variant.

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?

No output schema exists, and the description compensates by describing what the unapproved call surfaces (what would change and the current deployments). For a destructive, non-idempotent mutation with five parameters, the definition covers consequences, defaults, and the confirmation protocol without gaps.

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, but the description adds genuinely new parameter semantics: the resolution rules when deployment is omitted (first deployment or one named after the pipeline) and when variant is omitted (production). It also frames approved as a preview gate rather than a plain boolean, adding meaning the schema's one-liner does not fully carry.

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?

The description states a specific verb and resource — copy the current pipeline to a deployment variant — and explains what consumes that variant (public API POST /v1/pipeline/invoke and schedules). It explicitly contrasts itself with run_pipeline, which 'does not need a deployment', so an agent can separate the two without inspecting 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?

It gives an explicit operating procedure: call first without approved to preview changes and list current deployments, tell the person, then call again with approved: true only after they agree. It also implies the alternative path (run_pipeline for running without deploying) and the condition that selects it.

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