Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

download_pipeline_artifact

Read-onlyIdempotent

Retrieve textual content from a file in an Azure DevOps pipeline run artifact by specifying the artifact path and locating the run with a run ID or pipeline name plus build number.

Instructions

Download a file from a pipeline run artifact and return its textual content. The run can be identified by runId or by pipelineName (or pipelineId) plus buildNumber.

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": {
      "artifactPath": "<artifactPath>"
    },
    "name": "download_pipeline_artifact"
  }
}

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.
artifactPathYesPath to the desired file inside the artifact (format: <artifactName>/<path/to/file>)
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"
    • changedInput schema / required
      Previous value: -[
      -  "runId",
      -  "artifactPath"
      -]New value: +[
      +  "artifactPath"
      +]
  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 safety is covered. The description adds one genuinely useful behavioral detail — that only textual content is returned, implying binary artifacts are not handled — but says nothing about large-file behavior, error cases, or authentication requirements.

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 sentences with no filler; the core action comes first and the run-identification rule follows. Every clause carries information an agent needs before calling.

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?

With no output schema, the description usefully discloses the return shape (textual content of the file). For a six-parameter tool with full schema coverage this is nearly sufficient, though it omits how to discover valid artifactPath values and what happens for non-text artifacts.

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% and the parameter descriptions already explain each field, including the runId-versus-buildNumber alternatives. The description restates that combination rule at a glance but adds no format, precedence, or conflict-resolution detail beyond the schema.

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: download a file from a pipeline run artifact and return its textual content. This is clearly distinct from sibling read tools like get_pipeline_log or get_file_content, though it does not explicitly name those alternatives to sharpen the boundary.

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 gives a run-resolution rule (runId, or pipelineName/pipelineId plus buildNumber), which is usage-relevant guidance, but it offers no when-to-use versus when-not guidance against sibling tools and no prerequisites such as permissions or artifact-name discovery.

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