Skip to main content
Glama
iimsaurav

Azure DevOps MCP Server

by iimsaurav

create_pull_request_comment

Add a comment thread to a pull request for code review. Supports markdown, inline file comments, and thread status.

Instructions

Add a comment thread to a pull request.

Args: project: Azure DevOps project name. Uses default if not specified. repository_id: The repository ID or name. pull_request_id: The pull request ID. content: The comment text (supports markdown). file_path: Optional file path for inline comments. line_number: Optional line number for inline comments (requires file_path). status: Thread status: "active", "fixed", "wontFix", "closed", "byDesign", "pending".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNo
repository_idNo
pull_request_idNo
contentNo
file_pathNo
line_numberNo
statusNoactive
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses that the operation creates a thread (not just a comment), supports inline comments via optional file_path and line_number, and allows setting thread status. However, it does not mention authentication requirements, idempotency, or what happens if the thread already exists. Basic but not complete.

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?

Front-loaded with a clear purpose sentence, followed by a structured parameter list. The list is somewhat long but necessary for clarity. No redundant information. Could be slightly more concise by merging the parameter descriptions, but overall efficient.

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?

Given 7 parameters, no output schema, and no annotations, the description lacks return value information (what is returned after creation?), error handling context, and authentication/authorization hints. The tool is moderately complex, but the description only covers input semantics, leaving the agent without understanding the tool's output or behavior on failure.

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?

The schema has 0% description coverage (only titles), but the description adds valuable context: 'Uses default if not specified' for project, 'supports markdown' for content, 'requires file_path' constraint for line_number, and enumerates possible status values (active, fixed, wontFix, closed, byDesign, pending). This meaningfully supplements the schema.

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?

Description explicitly states 'Add a comment thread to a pull request,' which is a specific verb+resource. This clearly distinguishes from siblings like add_work_item_comment (work item comments) and create_pull_request (creating PRs). The action and target 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 Guidelines3/5

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

No explicit guidance on when to use this tool versus alternatives. The context is implied from the tool name and sibling list (e.g., add_work_item_comment for work items), but the description does not provide any when-to-use or when-not-to-use advice. Lacks explicit exclusions or prerequisites.

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

Install Server

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/iimsaurav/azure-devops-mcp'

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