Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_pipeline_run

Read-onlyIdempotent

Retrieve details for a specific Azure DevOps pipeline run by run ID or by pipeline name and build number, so you can inspect the exact build and its results.

Instructions

Get details for a specific pipeline run. The run can be identified by runId or by pipelineName (or pipelineId) plus buildNumber.

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

Input Schema

NameRequiredDescriptionDefault
runIdNoPipeline run (build) ID. Alternatively provide buildNumber together with pipelineName or pipelineId
projectIdNoThe ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)
pipelineIdNoOptional pipeline numeric ID; scopes buildNumber lookups and validates the run belongs to this pipeline
buildNumberNoBuild number / run name as shown in the Azure DevOps UI (e.g. "20240115.3"). Alternative to runId; combine with pipelineName or pipelineId to make it unambiguous.
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).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 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)"
  2. Changed5 schema fields changedv1.0.12
    • addedInput schema / properties / buildNumber
      Added value: +{
      +  "description": "Build number / run name as shown in the Azure DevOps UI (e.g. \"20240115.3\"). Alternative to runId; combine with pipelineName or pipelineId to make it unambiguous.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / pipelineId / description
      Previous value: -"Optional guard; validates the run belongs to this pipeline"New value: +"Optional pipeline numeric ID; scopes buildNumber lookups and validates the run belongs to this pipeline"
    • 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"
      +}
    • changedInput schema / properties / runId / description
      Previous value: -"Pipeline run identifier"New value: +"Pipeline run (build) ID. Alternatively provide buildNumber together with pipelineName or pipelineId"
    • removedInput schema / required
      Removed value: -[
      -  "runId"
      -]
  3. Changed2 schema fields changedv1.0.6
    • addedInput schema / properties / pipelineId / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / runId / maximum
      Added value: +9007199254740991
  4. Addedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered and the description need not repeat it. Beyond identification, the description adds nothing behavioral: no permission requirements, no note on what is returned (summary vs. full run), and no statement of which identifier takes precedence when both runId and buildNumber are supplied.

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?

Two short sentences with zero waste: the purpose comes first and the identification alternatives follow. Nothing is padded or repeated from the schema, and the sentence order matches how an agent reads the definition.

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

Completeness3/5

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

With five all-optional parameters and no output schema, the description must carry the argument rules, and it covers the alternate identification paths adequately. It does not state that at least one identifier combination is required to succeed, nor does it describe the returned run shape, so an agent could plausibly call it with no arguments and get an error it was never warned about.

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% and each parameter's own description is already detailed, so the baseline of 3 applies. The description does add one thing beyond the schema by framing the parameters as two mutually exclusive identification modes rather than a flat list, which helps the agent compose a valid argument set even though it still omits the precedence rule for conflicts.

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 ("Get details for a specific pipeline run"), which cleanly separates it from the sibling list_pipeline_runs by scope (single run vs. list). It does not name that sibling or any other, so differentiation is implied by the word "specific" rather than stated.

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

Usage Guidelines3/5

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

The description supplies useful invocation context by laying out the two identification paths (runId, or pipelineName/pipelineId plus buildNumber), which is effectively guidance on how to call it. It gives no when-to-use versus alternatives guidance, e.g. when to pick get_pipeline_log or pipeline_timeline instead, leaving the agent to infer that from names.

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