Skip to main content
Glama
devops-mcp-server-extension

devops-mcp-server-extension

by hakunova

create_change_request

Creates a merge request with specified source and target branches, reviewers, work items, and an optional AI review trigger.

Instructions

[Code Management] Create a new change request (merge request). Supports specifying source/target branches, reviewers, associated work items, and optional AI review trigger.

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": {
      "organizationId": "<organizationId>",
      "repositoryId": "<repositoryId>",
      "title": "<title>",
      "sourceBranch": "<sourceBranch>",
      "targetBranch": "<targetBranch>"
    },
    "name": "create_change_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes标题,不超过256个字符。示例:'mr title' 或 '修复登录bug'
createFromNo创建来源。WEB - 页面创建;COMMAND_LINE - 命令行创建。默认为WEBWEB
descriptionNo描述,不超过10000个字符。示例:'mr description' 或 '修复了用户登录时的验证逻辑问题'
workItemIdsNo关联工作项ID列表。示例:['workitem-123', 'workitem-456']
repositoryIdYes代码库ID或者URL-Encoder编码的全路径。示例:'2835387' 或 '60de7a6852743a5162b5f957%2FDemoRepo'(注意:斜杠需要URL编码为%2F)
sourceBranchYes源分支名称,即要合并的分支。示例:'demo-branch' 或 'feature/user-login'
targetBranchYes目标分支名称,即合并到的分支。示例:'master' 或 'main'
organizationIdYes组织ID,可在组织管理后台的基本信息页面获取。示例:'60d54f3daccf2bbd6659f3ad'
reviewerUserIdsNo评审人用户ID列表。示例:['62c795xxxb468af8'] 或 ['62c795xxxb468af8', '62c795xxxb468af9']
sourceProjectIdNo源库ID,如果未提供,将尝试自动获取。示例:2813489
targetProjectIdNo目标库ID,如果未提供,将尝试自动获取。示例:2813489
triggerAIReviewRunNo是否触发AI评审。true - 触发AI评审;false - 不触发(默认)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry the behavioral burden, and it largely does not. Beyond noting an optional AI review trigger, it says nothing about this being a persistent write with side effects, required permissions, failure modes (e.g. no diff between branches), or what happens when sourceProjectId/targetProjectId are omitted and auto-resolution fails.

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 naming the operation first and capabilities second, with no filler. The bracketed category prefix is mildly redundant but aids grouping and costs little.

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 no annotations and no output schema, the description is thin: it does not indicate what a successful call returns (e.g. the new change request identifier) or hint at follow-up tools like get_change_request. The rich schema compensates for parameter documentation, but behavior and result shape remain undescribed.

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 every parameter including defaults, enums, and length limits is already documented in the schema; baseline 3 applies. The description merely lists parameter categories (source/target branches, reviewers, work items, AI trigger) without adding format, ordering, or selection semantics beyond what the schema states.

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 change request (merge request)') and enumerates the notable capabilities it accepts (branches, reviewers, work items, AI review trigger). It does not distinguish itself from the sibling `create_appstack_change_request`, so an agent cannot tell from the description alone which creator applies to which context.

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, no prerequisites (permission to push to the source branch, branch existence, org/project resolution), and no routing to alternatives such as create_appstack_change_request. The only usage signal is the bracketed '[Code Management]' category tag.

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

Deploy Server

Other Tools