Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_pull_request

Read-only

Retrieve an Azure DevOps pull request by project and PR ID when repository context is unavailable, supporting project-scoped PR IDs on Azure DevOps Server.

Instructions

Get a pull request by ID (no repositoryId required; best for Azure DevOps Server where PR IDs are project-scoped)

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": {
      "projectId": "<projectId>",
      "pullRequestId": "<pullRequestId>"
    },
    "name": "get_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesThe ID or name of the project
pullRequestIdYesThe ID of the pull request
organizationIdNoThe ID or name of the organization (Default: mycompany)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.10

TDQS

A4.2/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes that this is a safe read operation, so the description does not need to explain destructive behavior. It adds useful scope context about project-scoped PR IDs and no repositoryId requirement, but does not mention authentication needs, error behavior, or return shape.

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?

The definition is a single, front-loaded sentence with the verb and resource first, followed by a compact parenthetical caveat. Every phrase carries useful information, and there is no redundant wording.

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 simple read-by-ID tool with full schema coverage and a readOnly annotation, the description provides enough context to select and invoke it correctly. It does not describe the returned pull request object or error behavior, but those gaps are modest given the tool's simplicity and the absence of an output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds meaning beyond the schema by explaining that PR IDs are project-scoped and that repositoryId is intentionally not required, clarifying the relationship between projectId and pullRequestId.

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?

The description states a specific verb and resource: 'Get a pull request by ID.' The parenthetical clarifies scope by noting no repositoryId is required and that it is best for Azure DevOps Server where PR IDs are project-scoped, which distinguishes it from list and subresource retrieval tools.

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

Usage Guidelines4/5

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

It gives clear usage context: use this when retrieving by ID without a repositoryId, especially for Azure DevOps Server where PR IDs are project-scoped. It does not explicitly name a preferred alternative for cloud scenarios or state when not to use it, so it falls short of full when/when-not guidance.

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