Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_pull_request_checks

Read-onlyIdempotent

Summarize a pull request's status checks and policy evaluations, including pipeline and run identifiers, so you can identify and jump to blocking validation failures.

Instructions

Summarize the latest status checks and policy evaluations for a pull request.

  • Surfaces pipeline and run identifiers so you can jump straight to the blocking validation.

  • Pair with pipeline tools (e.g., get_pipeline_run, pipeline_timeline) to inspect failures in depth.

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_checks"
  }
}

Input Schema

NameRequiredDescriptionDefault
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
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

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds real value by noting that pipeline and run identifiers are returned, which is useful since there is no output schema, but says nothing about pagination, volume of checks returned, or auth/permission expectations.

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?

A single front-loaded summary sentence followed by two short, non-redundant bullets. Every line adds information: the first defines scope, the second describes returned identifiers, the third routes to companion tools.

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?

For a read-only single-resource query with a fully documented four-parameter schema, the description covers purpose, return gist, and follow-up tools. It lacks any note on result ordering, pagination, or whether all check types (builds, policies, approvals) are included, which keeps it short of fully complete given the absence of an output schema.

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%, with all four parameters documented including defaults for projectId and organizationId. The description contributes nothing about parameter meaning or format (e.g., whether repositoryId accepts a name or GUID), so the baseline 3 applies.

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 first sentence gives a specific verb ("Summarize") and a precise resource ("latest status checks and policy evaluations for a pull request"), which is distinct from siblings like get_pipeline_run or get_build_test_results. An agent can tell this is a PR-scoped status aggregator without opening the schema.

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 second bullet explicitly names alternatives (get_pipeline_run, pipeline_timeline) and the condition that selects them: when you need to inspect failures in depth. It stops short of stating when not to use this tool (e.g., for historical runs or non-PR checks), so it is clear context rather than full routing guidance.

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