Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_pipeline_log

Read-only

Retrieve a specific Azure DevOps pipeline log by timeline log ID, and target the run by runId or by pipeline name/ID plus build number.

Instructions

Retrieve a specific pipeline log using the timeline log identifier. 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": {
      "logId": "<logId>"
    },
    "name": "get_pipeline_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
logIdYesLog identifier from the timeline record
runIdNoPipeline run (build) ID. Alternatively provide buildNumber together with pipelineName or pipelineId
formatNoOptional format for the log contents (plain or json)
endLineNoOptional ending line number for the log segment
projectIdNoThe ID or name of the project (Default: MyProject)
startLineNoOptional starting line number for the log segment
pipelineIdNoOptional pipeline numeric ID; scopes buildNumber lookups
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: -"Pipeline run identifier"New value: +"Pipeline run (build) ID. Alternatively provide buildNumber together with pipelineName or pipelineId"
    • changedInput schema / required
      Previous value: -[
      -  "runId",
      -  "logId"
      -]New value: +[
      +  "logId"
      +]
  2. Changed5 schema fields changedv1.0.6
    • addedInput schema / properties / endLine / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / logId / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / pipelineId / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / runId / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / startLine / maximum
      Added value: +9007199254740991
  3. Addedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

The readOnlyHint=true annotation already tells the agent this is a safe, non-mutating read, so the description isn't carrying the safety burden. What it adds is the run-identification model, which is genuinely useful, but it says nothing about whether the log is returned whole or in segments, whether large logs are truncated, or how startLine/endLine interact with format. Consistent with annotations, just thin beyond them.

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 sentences with zero filler, and the primary resource is front-loaded ahead of the secondary run-identification detail. Slightly under-structured for a nine-parameter tool, but nothing is wasted.

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?

For a nine-parameter, one-required read tool with no output schema, the definition covers the hardest part (how to address a run) but leaves the log-retrieval behavior — segmentation, format effects, size limits — to the schema. Adequate to call correctly, not complete enough to predict what comes back.

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 all nine parameters including projectId, format, startLine and endLine. The description reinforces the logId and the two run-identification paths but adds no syntax, defaults, or precedence rules (e.g. what wins if both runId and buildNumber are supplied) beyond what the schema states. Baseline 3 is appropriate.

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 a specific pipeline log using the timeline log identifier.' That is clear and disambiguated from listing tools. It does not contrast itself against siblings such as pipeline_timeline or get_pipeline_run, which leaves some ambiguity about when the log versus the timeline metadata is the right artifact.

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 real guidance on how to identify the run — by runId, or by pipelineName/pipelineId plus buildNumber — which is a usage condition, not just a restatement. It offers no guidance on when to choose this tool over the timeline or run-details tools in the sibling set, so selection still requires inference.

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