Skip to main content
Glama
Azure DevOps MCP Server
by billg118

get_pull_request_changes

Retrieve changed files, unified diffs, source/target branches, and policy evaluation status for an Azure DevOps pull request to review code changes.

Instructions

Get the files changed in a pull request, their unified diffs, source/target branch names, and the status of policy evaluations

Input Schema

NameRequiredDescriptionDefault
projectIdNoThe ID or name of the project (Default: no default project)
repositoryIdYesThe ID or name of the repository
pullRequestIdYesThe ID of the pull request
organizationIdNoThe ID or name of the organization (Default: example-org)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.54

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the returned content well (files, diffs, branches, policy status), but it is silent on truncation of large diffs, pagination, required permissions, and whether policy evaluation results may be stale or pending.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that enumerates the returned artifacts with zero redundant or filler wording. Every clause earns its place by telling the agent what it will receive.

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 read-only, four-parameter retrieval tool with no output schema, describing the return payload is the critical missing piece and the description covers it. It falls short only on operational caveats (diff size limits, permissions), which are secondary for a simple getter.

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 four parameters (projectId, repositoryId, pullRequestId, organizationId) are already documented in the schema, including defaults for projectId and organizationId. The description adds no additional meaning about parameter interactions or scoping.

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 names a specific verb ('Get') and a specific resource ('files changed in a pull request') and enumerates the payload: unified diffs, source/target branch names, and policy evaluation status. It is clearly distinct from sibling tools such as get_pull_request (metadata) or get_pull_request_comments, though it never names those siblings 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: an agent can infer this is for inspecting the diff of a specific PR, and the presence of get_pull_request and get_pull_request_comments suggests the intended split of responsibilities. There is no explicit statement of when to prefer this tool, no prerequisites, and no exclusions.

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