Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

vote_pull_request

Idempotent

Cast or reset a reviewer vote on an Azure DevOps pull request to approve, suggest changes, wait for author, or reject, while preserving reviewer required status unless overridden.

Instructions

Cast or reset a reviewer vote on a pull request (10/approved, 5/approvedWithSuggestions, 0/noVote, -5/waitingForAuthor, -10/rejected). Auto-derives repositoryId and authenticated caller when omitted, and preserves existing isRequired status unless explicitly overridden.

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>",
      "vote": "<vote>"
    },
    "name": "vote_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
voteYesVote to cast: 10/"approved", 5/"approvedWithSuggestions", 0/"noVote" (reset vote), -5/"waitingForAuthor", or -10/"rejected"
projectIdNoThe ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT; derived from pullRequestId when omitted and no default project is configured)
isRequiredNoWhether the reviewer is required (optional; preserves existing required status when omitted)
reviewerIdNoReviewer GUID, email, uniqueName, or display name (optional; defaults to the authenticated caller)
hasDeclinedNoWhether the reviewer has declined the review
isReapproveNoWhether to mark the vote as a re-approval
repositoryIdNoThe ID or name of the repository (optional; derived from pullRequestId when omitted)
pullRequestIdYesThe ID of the pull request to vote on
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.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the safety bar is low; the description still adds real value by disclosing that repositoryId and the authenticated caller are auto-derived and that existing isRequired status is preserved unless overridden. It does not describe the returned vote state or permission requirements, keeping it short of a 5.

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?

Two sentences, front-loaded with the action and its value vocabulary. The parenthetical vote mapping is somewhat redundant with the schema enum, but it is compact and aids quick scanning.

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 9-parameter mutation tool with no output schema, it covers the highest-risk ambiguities: identity defaulting, repository derivation, and isRequired preservation. Missing only the failure/permission profile and any hint about the resulting reviewer object.

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 one of the 9 parameters is already documented inline, including the defaulting behavior that the description repeats. The description adds essentially no meaning beyond that — no guidance on when to set hasDeclined or isReapprove — so the baseline 3 applies.

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?

States a specific verb pair ('cast or reset') and resource ('a reviewer vote on a pull request'), and enumerates the full vote vocabulary with numeric and string forms. An agent can immediately tell this mutates reviewer state rather than creating, merging, or updating a PR, which distinguishes it from the surrounding siblings.

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?

'Cast or reset' implies the usage context, and the 0/noVote mapping makes the reset case discoverable. However, it never says when to prefer this tool over manage_pull_request_reviewers for reviewer-state changes, nor does it state prerequisites such as needing the PR to be active.

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