Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

pipeline_timeline

Read-only

Retrieve the stage and job timeline for an Azure DevOps pipeline run, filtering by state or result to reduce returned data; identify runs by runId or pipeline name plus build number.

Instructions

Retrieve the timeline of stages and jobs for a pipeline run, to reduce the amount of data returned, you can filter by state and result. 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": "pipeline_timeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdNoPipeline run (build) ID. Alternatively provide buildNumber together with pipelineName or pipelineId
stateNoOptional state filter (single value or array) applied to returned timeline records
resultNoOptional result filter (single value or array) applied to returned timeline records
projectIdNoThe ID or name of the project (Default: MyProject)
pipelineIdNoOptional pipeline numeric ID; scopes buildNumber lookups
timelineIdNoOptional timeline identifier to select a specific timeline record
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. 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 pipeline numeric ID for reference only"New value: +"Optional pipeline numeric ID; scopes buildNumber lookups"
    • 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: -"Run identifier"New value: +"Pipeline run (build) ID. Alternatively provide buildNumber together with pipelineName or pipelineId"
    • removedInput schema / required
      Removed value: -[
      -  "runId"
      -]
  2. Changed2 schema fields changedv1.0.6
    • addedInput schema / properties / pipelineId / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / runId / maximum
      Added value: +9007199254740991
  3. Addedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and the description is consistent with a safe read. It adds the payload-reduction rationale for filtering, which is genuinely useful behavioral context, but says nothing about permissions needed, ordering of timeline records, or pagination/truncation behavior for large runs.

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 sentences, front-loaded with the core action, and no filler. The comma splice in 'to reduce the amount of data returned, you can filter...' is slightly clumsy but does not impede comprehension.

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 8-parameter read tool with no output schema, the description covers both what is retrieved and the two ways to identify a run, which is the main ambiguity a caller faces. It stops short of describing the shape of returned timeline records or ordering, the main remaining gap.

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 coverage is 100%, so every parameter is already documented in the schema, including enum values and folder-path disambiguation for pipelineName. The description restates the identification combinations (runId vs. pipelineName/pipelineId + buildNumber) without adding syntax or constraint details beyond the schema, so baseline 3 applies.

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: 'Retrieve the timeline of stages and jobs for a pipeline run.' That is concrete enough to distinguish it from run-level or log-level siblings by subject matter, but it never names an alternative tool, so differentiation is implied 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?

Gives useful operational context: filtering by state and result reduces returned data, and the run may be identified either by runId or by pipelineName/pipelineId plus buildNumber. It does not say when to prefer this over get_pipeline_run or get_pipeline_log, nor any prerequisites, so guidance is implied rather than explicit.

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