Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

list_pull_requests

Read-onlyIdempotent

List pull requests in an Azure DevOps repository and filter results by status, source or target branch, creator, or reviewer with pagination support.

Instructions

List pull requests in a repository

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

Input Schema

NameRequiredDescriptionDefault
topNoMaximum number of pull requests to return (default: 10)
skipNoNumber of pull requests to skip for pagination
statusNoFilter by pull request status
creatorIdNoFilter by creator ID (must be a UUID string)
projectIdNoThe ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)
reviewerIdNoFilter by reviewer ID (must be a UUID string)
repositoryIdYesThe ID or name of the repository
sourceRefNameNoFilter by source branch name
targetRefNameNoFilter by target branch name
organizationIdNoThe ID or name of the organization (defaults to configured organization)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.13
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / organizationId / description
      Previous value: -"The ID or name of the organization (Default: mycompany)"New value: +"The ID or name of the organization (defaults to configured organization)"
    • changedInput schema / properties / projectId / description
      Previous value: -"The ID or name of the project (Default: MyProject)"New value: +"The ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)"
    • changedInput schema / required
      Previous value: -[
      -  "repositoryId",
      -  "top"
      -]New value: +[
      +  "repositoryId"
      +]
  2. Changed1 schema field changedv1.0.6
    • changedInput schema / required
      Previous value: -[
      -  "repositoryId"
      -]New value: +[
      +  "repositoryId",
      +  "top"
      +]
  3. Changed1 schema field changedv0.1.10
    • removedInput schema / properties / pullRequestId
      Removed value: -{
      -  "description": "If provided, return only the matching pull request ID",
      -  "type": "number"
      -}
  4. Addedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds nothing beyond them: it does not mention default result size, pagination via skip/top, whether all statuses are returned by default, or that results require organization/project/repository resolution.

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 seven-word sentence with the resource front-loaded and no filler. It is efficient, though the terseness leaves information gaps that are penalized elsewhere rather than here.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with ten parameters, a pagination surface, and a status filter but no output schema, the description says almost nothing about result shape or default filtering behavior. The fully described schema rescues it from failure, but the description itself is not sufficient context for correct invocation.

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?

With schema description coverage at 100%, the schema already documents all ten parameters including the status enum, pagination fields, and the default-project behavior. The description adds no meaning beyond that, which is the baseline 3 case when structured fields do the heavy lifting.

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 and resource ("List pull requests") and a scope ("in a repository"), so an agent knows exactly what it retrieves. It does not differentiate from siblings such as get_pull_request or create_pull_request, though the list/get contrast is largely self-evident from the names.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says to prefer this over get_pull_request when a specific PR is known, or over list_commits/list_branches for other resources. No exclusions, prerequisites, or pagination expectations are stated.

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