Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_work_item_attachment

DestructiveIdempotent

Download a work item attachment from Azure DevOps and save it to a local file path. Use the attachment ID from the work item relations.

Instructions

Download an attachment from Azure DevOps and save it to the local filesystem. The attachment ID can be obtained from the work item relations.

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": {
      "attachmentId": "<attachmentId>",
      "outputPath": "<outputPath>"
    },
    "name": "get_work_item_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputPathYesThe absolute path where the attachment will be saved
attachmentIdYesThe ID (GUID) of the attachment to download. Can be obtained from the work item relations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.13
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv1.0.6

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already declare this as non-read-only, destructive, open-world, and idempotent. The description adds that the attachment is saved to the local filesystem, which explains the write/destructive behavior, but it does not disclose overwrite behavior, directory creation, permissions, or error handling.

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?

The description is two concise sentences with the core action front-loaded. Every sentence adds relevant information without unnecessary wording.

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?

The definition covers the essential action and required parameters, and the annotations provide safety context. However, for a destructive local-file write, it omits important behavioral details such as overwrite semantics and what happens if the output path is invalid, leaving some gaps.

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 both parameters are fully documented in the input schema. The description repeats the attachment ID source but adds no additional syntax or constraints beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Download an attachment from Azure DevOps' and save it locally. This clearly distinguishes it from sibling attachment operations such as create_work_item_attachment and delete_work_item_attachment.

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 implies the tool is for retrieving attachments and notes that the attachment ID comes from work item relations, which is a useful prerequisite. However, it does not explicitly say when to use this versus alternatives or mention any conditions where another tool would be preferable.

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