Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

list_pipeline_runs

Read-only

List recent pipeline runs by pipeline ID or name and filter by state, result, branch, or creation date to inspect build history and diagnose failures.

Instructions

List recent runs for a pipeline, identified by pipelineId or pipelineName

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": {
      "top": "<top>",
      "orderBy": "<orderBy>"
    },
    "name": "list_pipeline_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
topYesMaximum number of runs to return (1-100)
stateNoFilter by current run state
branchNoBranch to filter by (e.g., "main" or "refs/heads/main")
resultNoFilter by final run result
orderByYesSort order for run creation datecreatedDate desc
createdToNoFilter runs created at or before this time (ISO 8601)
projectIdNoThe ID or name of the project (Default: MyProject)
pipelineIdNoPipeline numeric ID. Alternatively provide pipelineName
createdFromNoFilter runs created at or after this time (ISO 8601)
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).
continuationTokenNoContinuation token for pagination

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.12
    • changedInput schema / properties / pipelineId / description
      Previous value: -"Pipeline numeric ID"New value: +"Pipeline numeric ID. 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"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "pipelineId",
      -  "top",
      -  "orderBy"
      -]New value: +[
      +  "top",
      +  "orderBy"
      +]
  2. Changed4 schema fields changedv1.0.6
    • addedInput schema / properties / createdFrom / pattern
      Added value: +"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    • addedInput schema / properties / createdTo / pattern
      Added value: +"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    • addedInput schema / properties / pipelineId / maximum
      Added value: +9007199254740991
    • changedInput schema / required
      Previous value: -[
      -  "pipelineId"
      -]New value: +[
      +  "pipelineId",
      +  "top",
      +  "orderBy"
      +]
  3. Addedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered and the bar is lower. The description adds the identification constraint but says nothing about default recency window, ordering, result caps, or pagination behavior, even though continuationToken exists in the schema.

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?

A single front-loaded sentence with no filler. It is efficient, though so terse that it leaves out pagination and default-limit context that would have earned its place.

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 11 parameters, no output schema, and only a read-only annotation, the definition leans almost entirely on the schema. It is adequate for a simple list operation but omits anything about result shape, paging, or the default 50-item cap.

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

Parameters2/5

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

Schema description coverage is 100%, so baseline is 3, but the description only restates the pipelineId/pipelineName alternation already spelled out in the schema and adds no meaning for filters (state, result, branch, createdFrom/To, top, orderBy, continuationToken). It is purely redundant with structured data.

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 ("List recent runs for a pipeline") and names the two identification keys (pipelineId or pipelineName). An agent can tell it is a collection-listing tool, though it never contrasts itself with the obvious sibling get_pipeline_run, which returns a single run.

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?

Usage is implied: this is the tool to reach for when enumerating multiple runs of one pipeline. There is no explicit when-to-use/when-not guidance, no mention of when get_pipeline_run or pipeline_timeline would be preferable, and no guidance on when to page with continuationToken.

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