Skip to main content
Glama
mcp-devops-onpremise

mcp-devops-onpremise

by zwitbaum

Create pull request comment

devops_pull_request_create_comment

Creates a new comment thread on a specified Azure DevOps pull request, optionally attached to a file and line for inline review feedback.

Instructions

Create a new thread with initial comment in the specified pull request.

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": {
      "repository_id": "<repository_id>",
      "pull_request_id": "<pull_request_id>",
      "comment_content": "<comment_content>"
    },
    "name": "devops_pull_request_create_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathNoFile path relative to the root of the repository.
line_numberNoOptional 1-based line number for an inline comment.
repository_idYesRepository name or ID.
comment_contentYesThe text content or markdown of the comment.
pull_request_idYesPull request ID.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that a new thread entity is created rather than a comment appended to an existing one, which is useful. It says nothing about permissions, failure behavior when the PR ID is invalid, or the inline-comment mode implied by file_path/line_number.

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 filler. It is efficient, though its brevity means some useful context is simply absent rather than trimmed.

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?

With full schema coverage, an output schema, and annotations covering the safety profile, the description only needs to state the operation and its scope, which it does. The one real gap is that it never mentions that supplying file_path and line_number produces an inline comment rather than a thread-level one.

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%, including the optional file_path and line_number for inline comments, so the schema already carries the parameter meaning. The description only references 'the specified pull request' and adds no syntax, format, or interaction detail (such as whether file_path and line_number must be supplied together).

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 gives a specific verb and resource: 'Create a new thread with initial comment in the specified pull request.' It is clear what is produced and where. It does not explicitly name the sibling it is not (reply_comment, update_comment), so it falls short of full sibling differentiation.

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?

The phrase 'new thread' implicitly distinguishes this from devops_pull_request_reply_comment, which presumably appends to an existing thread, but that contrast is never stated. There are no explicit when-to-use or when-not-to-use conditions, and no prerequisites are mentioned.

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