Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

create_pull_request

Create Azure DevOps pull requests with reviewers, linked work items, tags, and draft status to support code review and traceability.

Instructions

Create a new pull request, including reviewers, linked work items, and optional tags

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>",
      "title": "<title>",
      "sourceRefName": "<sourceRefName>",
      "targetRefName": "<targetRefName>"
    },
    "name": "create_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoList of tags to apply to the pull request
titleYesThe title of the pull request
isDraftNoWhether the pull request should be created as a draft
projectIdNoThe ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)
reviewersNoList of reviewer email addresses or IDs
descriptionNoThe description of the pull request (markdown is supported)
repositoryIdYesThe ID or name of the repository
workItemRefsNoList of work item IDs to link to the pull request
sourceRefNameYesThe source branch name (e.g., refs/heads/feature-branch)
targetRefNameYesThe target branch name (e.g., refs/heads/main)
organizationIdNoThe ID or name of the organization (defaults to configured organization)
additionalPropertiesNoAdditional properties to set on the pull request

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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)"
  2. Changed1 schema field changedv1.0.6
    • addedInput schema / properties / additionalProperties / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  3. Addedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds that the call can attach reviewers, work items, and tags, hinting at notification/linking side effects, but says nothing about permission requirements, duplicate-PR errors, or what happens when a branch is missing.

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 front-loaded sentence with no wasted words; the core action leads and the optional payloads follow. It is efficient, though the terseness leaves value on the table rather than adding any.

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

Completeness3/5

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

For a 12-parameter mutation with nested additionalProperties and no output schema, the description is thin: it omits mention of the four required fields, the draft option, and the default project/org resolution behavior. An agent could still call it correctly from the schema, but the prose does not carry its share of the load.

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% across all 12 parameters, so the schema already documents branches, reviewers, work items, tags, draft flag, and the default project/organization fallbacks. The description only echoes a subset of those fields and adds no format or constraint detail beyond the schema.

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?

States a specific verb and resource ("Create a new pull request") and enumerates the notable payload it can carry (reviewers, linked work items, tags). It does not explicitly contrast itself with siblings like update_pull_request or merge_pull_request, but the create semantics are unambiguous.

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?

No when-to-use or when-not-to-use guidance is given, and no alternative is named. The agent must infer that this is the creation counterpart to update_pull_request/merge_pull_request purely from the tool name.

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