Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_work_item_comments

Read-only

Retrieve comments and discussion history for a specific Azure DevOps work item to review feedback and decision context.

Instructions

Get comments and discussion history for a specific work item

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>",
      "expand": "<expand>",
      "order": "<order>"
    },
    "name": "get_work_item_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoMaximum number of comments to return
orderYesThe order in which to sort the comments (Default: "asc")asc
expandYesThe level of detail to include in the comments response (Default: "all")all
projectIdNoThe ID or name of the project
workItemIdYesThe ID of the work item
includeDeletedNoInclude deleted comments
continuationTokenNoContinuation token to retrieve the next page of comments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.6
    • changedInput schema / required
      Previous value: -[
      -  "workItemId"
      -]New value: +[
      +  "workItemId",
      +  "expand",
      +  "order"
      +]
  2. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds only that discussion history is included, and says nothing about pagination, deleted-comment handling, or detail levels, which are meaningful behaviors for a 7-parameter retrieval tool.

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?

A single front-loaded sentence with no wasted wording. It is efficient, though the brevity comes at the cost of any operational detail.

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?

With seven parameters, required paging/order controls, enum-based expand levels, and no output schema, the description should say something about paging and detail levels to be complete. It is minimally adequate rather than fully complete.

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 every parameter including enum values and defaults is already documented in the schema. The description adds no meaning beyond it, which is the expected baseline when the schema does the work.

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?

The description states a specific verb and resource ('Get comments and discussion history') scoped to a single work item, so the agent can tell it apart from get_work_item or get_pull_request_comments. It is clear but does not explicitly contrast itself with any sibling.

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?

Usage is only implied: the agent must already know it needs commentary for a known work item. There is no explicit when-to-use, when-not-to-use, or guidance on choosing between this and related retrieval tools.

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