Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

update_pull_request_thread_status

Update the status of a pull request comment thread to mark it active, fixed, closed, or another state. Use it to resolve or reopen review discussions in Azure DevOps pull requests.

Instructions

Update the status of a comment thread in a pull request (repositoryId optional; derived from pullRequestId when omitted)

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": {
      "pullRequestId": "<pullRequestId>",
      "threadId": "<threadId>",
      "status": "<status>"
    },
    "name": "update_pull_request_thread_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusYesThe status to set on the thread
threadIdYesThe ID of the thread to update
projectIdNoThe ID or name of the project (Default: MyProject)
repositoryIdNoThe ID or name of the repository (optional; derived from pullRequestId when omitted)
pullRequestIdYesThe ID of the pull request
organizationIdNoThe ID or name of the organization (Default: mycompany)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

The readOnlyHint=false annotation already signals that this is a mutation, so that part is not new information. The description does add real behavior: repositoryId is derived from pullRequestId when omitted, which saves the agent a lookup. However, it says nothing about the effect of each status value, whether transitions are reversible, or the permissions required, which are meaningful gaps for a status mutation.

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?

It is one compact sentence that front-loads the action and tucks the parameter caveat into a parenthetical. Nothing is wasted, though the parenthetical slightly buries the most useful behavioral 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?

For a simple status-setting mutation with full schema coverage and no output schema, the description covers the essential action and the optional-ID behavior. It is still silent on what the enum statuses mean and on permission or reversibility concerns, which an agent would want before changing a thread's state.

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 six parameters, including the status enum, are already documented in the schema. The description only restates the repositoryId derivation that the schema also mentions, adding no new semantics for status, threadId, or the defaulted org/project IDs. A baseline 3 is appropriate when the schema does the heavy lifting.

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 gives a specific verb and resource: 'Update the status of a comment thread in a pull request'. That is enough to distinguish it from siblings like update_pull_request or add_pull_request_comment. It does not explicitly name a sibling or state the boundary, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives, and no stated prerequisites such as permissions or thread ownership. The only contextual note is about an optional parameter, not usage.

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