Skip to main content
Glama

Deploy through a Power Platform pipeline

cs_deploy_pipeline

Deploy a solution to a specific Power Platform pipeline stage, updating its version. Requires explicit confirmation to apply changes to a live environment; otherwise performs a dry run.

Instructions

Start a pipeline deployment of a solution to a stage (the alternative to cs_deploy_solution when the tenant uses Power Platform pipelines). stageId comes from cs_list_pipelines. Runs 'pac pipeline deploy' with the active pac auth profile. Mutates a live environment: requires confirm: true (a dry run otherwise).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory for pac (for project commands: the solution project folder)
waitNoWait until the deployment finishes
confirmNoRequired to actually perform a change in a live environment. Without it the tool returns a dry run.
profileNopac auth profile to run as: the admin account for tenant commands. Defaults to CPS_ADMIN_PROFILE for admin commands and CPS_PAC_PROFILE otherwise, then the active profile. cs_init lists the profiles.
stageIdYesDeployment stage id (cs_list_pipelines with pipeline)
backgroundNoRun in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status.
newVersionYesVersion to deploy as
environmentNoEnvironment id or URL; default: the environment of the active pac auth profile
solutionNameYesSolution unique name
currentVersionYesCurrent solution version
timeoutSecondsNoDefault 3600

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It states that the tool mutates a live environment and that confirm: true is required to perform a change, with anything else being a dry run. It also reveals the underlying command (pac pipeline deploy) and the auth context (active pac profile). It does not detail rollback, output format, or failure states, but the core safety behavior is explicitly covered.

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?

Three dense sentences: it front-loads the tool's place among siblings, names the command and profile, and closes with the mutation caveat. No filler or repetition; every sentence carries a distinct purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter tool with no annotations and no output schema, the description covers the selection-critical context (when to use, alternative, stageId provenance, destructive behavior) without forcing an agent to infer the core safety contract. It does not explain the required currentVersion/newVersion semantics or background/wait behavior, but these are present in the schema and would not need repeating.

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?

Even though the schema covers all 11 parameters, the description adds meaning beyond field names: it links stageId to cs_list_pipelines and clarifies confirm's role as the gate between a mere dry run and an actual live-environment mutation. That is extra and useful semantic information beyond what the static schema provides.

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 clearly states a specific action ('deploy a solution to a stage') and resource ('stage'), and it directly distinguishes the tool from cs_deploy_solution by providing the exact condition ('when the tenant uses Power Platform pipelines'). It also anchors stageId to cs_list_pipelines, making the tool's scope unmistakable among a large sibling list.

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 explicitly tells an agent when to select this tool over the closest alternative ('alternative to cs_deploy_solution when the tenant uses Power Platform pipelines'), and connects stageId to its source tool. It also flags the dry-run vs. real mutation difference, which is the critical decision an agent must make before execution.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools