Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

update_pull_request

Modify an existing Azure DevOps pull request by changing its title, description, or status; adding or removing reviewers, tags, and linked work items.

Instructions

Update an existing pull request with new properties, manage reviewers and work items, and add or remove tags

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": {
      "repositoryId": "<repositoryId>",
      "pullRequestId": "<pullRequestId>"
    },
    "name": "update_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoThe updated title of the pull request
statusNoThe updated status of the pull request
addTagsNoList of tags to add to the pull request
isDraftNoWhether the pull request should be marked as a draft (true) or unmarked (false)
projectIdNoThe ID or name of the project (Default: MyProject)
removeTagsNoList of tags to remove from the pull request
descriptionNoThe updated description of the pull request
addReviewersNoList of reviewer email addresses or IDs to add
repositoryIdYesThe ID or name of the repository
pullRequestIdYesThe ID of the pull request to update
addWorkItemIdsNoList of work item IDs to link to the pull request
organizationIdNoThe ID or name of the organization (Default: mycompany)
removeReviewersNoList of reviewer email addresses or IDs to remove
removeWorkItemIdsNoList of work item IDs to unlink from the pull request
additionalPropertiesNoAdditional properties to update on the pull request

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.6
    • addedInput schema / properties / additionalProperties / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Addedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

The description is consistent with readOnlyHint=false and adds useful scope by naming the mutable areas (properties, reviewers, work items, tags). It does not disclose whether setting status to 'completed' bypasses merge_pull_request, whether changes are reversible, or what permissions are required for a mutation 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 filler; the enumeration of change categories is compact. It is slightly list-like but every clause maps to real parameters.

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 15-parameter mutation tool with a nested additionalProperties object and no output schema, the description covers the main capability groups but omits the status enum semantics (active/abandoned/completed) and the free-form additionalProperties path, leaving meaningful 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 description coverage is 100%, so the schema already documents all 15 parameters, and the baseline is 3. The description groups them into properties/reviewers/work items/tags but adds no syntax, defaults, or constraints beyond the schema, and never mentions the additionalProperties escape hatch.

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 (update) and resource (pull request) plus the three families of change it supports: properties, reviewers/work items, and tags. That is enough to separate it from create_pull_request, merge_pull_request, and update_pull_request_thread_status, 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?

Usage is only implied by the verb 'update' – there is no statement of when to prefer this over merge_pull_request (for completing a PR) or update_pull_request_thread_status, and no prerequisites or exclusions are given.

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