Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

trigger_pipeline

Destructive

Start an Azure DevOps pipeline run by pipeline ID or name, choosing the branch and passing variables, template parameters, or stages to skip.

Instructions

Trigger a pipeline run. The pipeline can be identified by pipelineId or pipelineName.

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": "trigger_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchNoThe branch to run the pipeline on (e.g., "main", "feature/my-branch"). If left empty, the default branch will be used
projectIdNoThe ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)
variablesNoVariables to pass to the pipeline run
pipelineIdNoThe numeric ID of the pipeline to trigger. Alternatively provide pipelineName
pipelineNameNoPipeline (build definition) name, as shown in the Azure DevOps UI. Alternative to pipelineId. Prefix it with its folder path to disambiguate pipelines that share a name (e.g. "Backend/Deploy"; "/Deploy" for the root folder).
stagesToSkipNoStages to skip in the pipeline run
templateParametersNoParameters for template-based pipelines

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.13
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / projectId / description
      Previous value: -"The ID or name of the project (Default: MyProject)"New value: +"The ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)"
    • removedInput schema / properties / variables / additionalProperties / additionalProperties
      Removed value: -false
  2. Changed3 schema fields changedv1.0.12
    • changedInput schema / properties / pipelineId / description
      Previous value: -"The numeric ID of the pipeline to trigger"New value: +"The numeric ID of the pipeline to trigger. Alternatively provide pipelineName"
    • addedInput schema / properties / pipelineName
      Added value: +{
      +  "description": "Pipeline (build definition) name, as shown in the Azure DevOps UI. Alternative to pipelineId. Prefix it with its folder path to disambiguate pipelines that share a name (e.g. \"Backend/Deploy\"; \"/Deploy\" for the root folder).",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "pipelineId"
      -]
  3. Changed3 schema fields changedv1.0.6
    • addedInput schema / properties / pipelineId / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / templateParameters / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / variables / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  4. Addedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds nothing beyond them: it does not say a new run record is created, that repeated calls queue duplicate runs, or what permissions are required.

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?

Two short, front-loaded sentences with zero filler. The second sentence is a slight restatement of schema content, which keeps it from a 5.

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

Completeness2/5

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

A seven-parameter, open-world mutation tool with nested objects, no output schema, and no annotations explaining side effects. The description says nothing about what is returned (the queued run), how variables/stage-skipping affect execution, or failure modes – not enough for an agent to call this safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents branch, projectId, variables, stagesToSkip and templateParameters in detail. The description only echoes the pipelineId/pipelineName duality that the schema itself explains, adding no meaning beyond it – baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Trigger a pipeline run") and names the two identifiers that select the target. It is clearly distinguishable from read-only siblings like get_pipeline or list_pipeline_runs, though it never names an alternative tool explicitly.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites (approvals, branch policies, permissions), and no exclusions about when a new run should not be queued. Only the id-vs-name selection is explained, which is schema-level detail rather than usage guidance.

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