vote_pull_request
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
| Name | Required | Description | Default |
|---|---|---|---|
| vote | Yes | Vote to cast: 10/"approved", 5/"approvedWithSuggestions", 0/"noVote" (reset vote), -5/"waitingForAuthor", or -10/"rejected" | |
| projectId | No | The ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT; derived from pullRequestId when omitted and no default project is configured) | |
| isRequired | No | Whether the reviewer is required (optional; preserves existing required status when omitted) | |
| reviewerId | No | Reviewer GUID, email, uniqueName, or display name (optional; defaults to the authenticated caller) | |
| hasDeclined | No | Whether the reviewer has declined the review | |
| isReapprove | No | Whether to mark the vote as a re-approval | |
| repositoryId | No | The ID or name of the repository (optional; derived from pullRequestId when omitted) | |
| pullRequestId | Yes | The ID of the pull request to vote on | |
| organizationId | No | The ID or name of the organization (defaults to configured organization) |