Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

add_work_item_comment

Add a Markdown or HTML comment to a specific Azure DevOps work item, automatically falling back to HTML on older servers.

Instructions

Add a comment to a specific work item. Supports Markdown or HTML formatting on Azure DevOps Services and gracefully falls back on older Azure DevOps Server instances.

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": {
      "workItemId": "<workItemId>",
      "text": "<text>"
    },
    "name": "add_work_item_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe comment text to post (must not be empty or whitespace-only)
formatNoComment text format: "markdown" or "html". Transmitted as a query parameter when supported by the server (Azure DevOps Services / API version >= 7.1-preview.4) and omitted automatically on older servers that only support HTML comments.
projectIdNoThe ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)
workItemIdYesThe ID of the work item to add a comment to
organizationIdNoThe ID or name of the organization (defaults to configured organization)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.13

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive write with open-world scope. The description adds genuine value by noting Markdown/HTML support and graceful fallback on older servers, but it does not mention permissions required, whether errors are surfaced, or that repeated calls create duplicate comments (relevant given idempotentHint=false).

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 short sentences, front-loaded with the core action and followed by the one behavioral nuance that matters. No filler or redundant phrasing.

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 a five-parameter write tool with no output schema and full schema coverage, the definition supplies adequate context. It could go slightly further by saying what a successful call returns or how the comment is attributed, but nothing essential to invoking it correctly is missing.

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 all five parameters including the format enum and its fallback semantics are already documented in the schema. The description's formatting sentence largely restates the schema and adds no new parameter meaning.

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: "Add a comment to a specific work item." That is enough to separate it from get_work_item_comments (a read) and add_pull_request_comment (a different resource), though no sibling is named explicitly.

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 when to use it (posting a comment on a work item) and adds a note about formatting support. It gives no explicit when-not or pointer to alternatives such as get_work_item_comments for reading existing comments, so the guidance is implied rather than stated.

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