Skip to main content
Glama
aliyun

AlibabaCloud DevOps MCP Server

Official
by aliyun

list_change_request_comments

Retrieve comments on a change request. Filter by type, state, resolved status, or file path to review specific discussions.

Instructions

[Code Management] List comments on a change request. Supports filtering by comment type (GLOBAL_COMMENT or INLINE_COMMENT), state (OPENED or DRAFT), resolved status, and file path (for inline comments).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateNo评论状态。OPENED - 已发布的评论;DRAFT - 草稿评论OPENED
localIdYes合并请求局部ID,表示代码库中第几个合并请求。示例:'1' 或 '42'
filePathNo文件路径过滤,仅用于行内评论。可以过滤特定文件的评论。示例:'/src/main/java/com/example/MyClass.java' 或 'src/utils/helper.ts'
resolvedNo是否已解决。true - 只查询已解决的评论;false - 只查询未解决的评论(默认值)
commentTypeNo评论类型。GLOBAL_COMMENT - 全局评论;INLINE_COMMENT - 行内评论GLOBAL_COMMENT
repositoryIdYes代码库ID或全路径(斜杠须编码为%2F),如 2835387 或 myorg%2FmyRepo
organizationIdYes组织ID
patchSetBizIdsNo关联版本ID列表,每个评论都关联一个版本,表示该评论是在哪个版本上发布的。对于全局评论,关联的是最新合并源版本。示例:['bf117304dfe44d5d9b1132f348edf92e', '537367017a9841738ac4269fbf6aacbe']
Install Server

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the filtering behavior and defaults (e.g., default state OPENED, default commentType GLOBAL_COMMENT) but does not mention pagination, ordering, or whether the tool returns both global and inline comments if no type is specified. The description is accurate but not exhaustive.

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 description is a single sentence, front-loaded with the tool's purpose, and lists filters concisely. No wasted words.

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?

The tool has 8 parameters with 100% schema coverage and no output schema. The description covers the main filtering capabilities and defaults, which is sufficient for a list operation. It could mention pagination or response format, but given the schema richness, it is reasonably complete.

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 the schema already documents all parameters. The description adds a brief summary of filters but does not add significant meaning beyond the schema. It mentions filePath is for inline comments, which is also in the schema. Baseline 3 is appropriate.

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 clearly states the tool lists comments on a change request, with a specific verb ('List') and resource ('comments on a change request'). It also enumerates the filtering dimensions (comment type, state, resolved status, file path), which distinguishes it from sibling tools like create_change_request_comment and update_change_request_comment.

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?

The description implies usage for retrieving comments with optional filters, but does not explicitly state when to use this tool versus alternatives (e.g., list_work_item_comments for work items). It provides clear context on what it does but lacks explicit exclusions or alternative guidance.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aliyun/alibabacloud-devops-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server