Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_pull_request_comments

Read-onlyIdempotent

Retrieves comments from a specific Azure DevOps pull request, with optional thread filtering, pagination, and deleted-comment inclusion, so you can review feedback and resolve discussions.

Instructions

Get comments from a specific 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": {
      "repositoryId": "<repositoryId>",
      "pullRequestId": "<pullRequestId>"
    },
    "name": "get_pull_request_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoMaximum number of threads/comments to return
threadIdNoThe ID of the specific thread to get comments from
projectIdNoThe ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)
repositoryIdYesThe ID or name of the repository
pullRequestIdYesThe ID of the pull request
includeDeletedNoWhether to include deleted comments
organizationIdNoThe ID or name of the organization (defaults to configured organization)

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. Addedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered. The description adds nothing further: it does not mention thread-vs-comment structure, pagination via 'top', inclusion of deleted comments, or the defaulted project/organization resolution — all of which affect results.

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 or redundancy. It is efficient, though the brevity leaves the later interpretive work undone.

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?

For a 7-parameter tool with no output schema, the description is thin: it does not convey that the result is organized as threads containing comments, nor how filtering by threadId, top, or includeDeleted changes the payload. Nothing an agent needs to call it is strictly missing, but the returned structure is left entirely opaque.

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 all seven parameters are documented in the schema itself and the baseline of 3 applies. The description contributes no additional parameter meaning, such as what 'top' counts (threads vs comments) or how threadId narrows the response.

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 ('Get') and resource ('comments from a specific pull request'), so the agent knows exactly what it retrieves. It does not distinguish itself from nearby siblings such as get_work_item_comments or the write-side add_pull_request_comment, leaving disambiguation to the name alone.

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, and no mention of alternatives or exclusions. An agent must infer from the name that this is the read path for PR discussion threads rather than, say, PR checks or changes.

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