Skip to main content
Glama
mcp-devops-onpremise

mcp-devops-onpremise

by zwitbaum

Get pull request

devops_pull_request_get
Read-only

Retrieve a pull request by ID to inspect author, reviewers, merge status, closing date, and linked work items, plus commit references for diff comparison.

Instructions

Retrieve a pull request by ID, including author, reviewers, merge status, closing date, and linked work items. Use the 'lastMergeTargetCommit' and 'lastMergeSourceCommit' from the result to obtain changes with 'devops_repository_diffs_commits' tool.

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>"
    },
    "name": "devops_pull_request_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
repository_idYesRepository name or ID.
pull_request_idYesThe ID of the pull request to retrieve.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description adds that the response includes reviewers, merge status, closing date, and linked work items, plus a chaining hint to the diffs tool. It does not cover failure behavior (e.g., unknown pull_request_id) or whether missing fields are omitted or null, which is a minor gap against an output schema that documents the shape.

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?

Two sentences, front-loaded with the primary action and result contents, then the follow-up chaining tip. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read tool with full schema coverage, annotations, and an output schema, the description supplies everything needed: what comes back and how to continue with the diffs tool. Return-value structure is correctly left to the 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 coverage is 100% and both required parameters are documented inline, so the description carries no additional parameter burden. 'By ID' restates the pull_request_id semantics but adds no format or resolution detail beyond the schema.

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 ('Retrieve a pull request by ID') and enumerates the payload (author, reviewers, merge status, closing date, linked work items), which implicitly separates it from the list tool. It stops short of naming a sibling alternative, so differentiation is inferred rather than stated.

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?

It supplies real workflow guidance: use 'lastMergeTargetCommit' and 'lastMergeSourceCommit' from the result with 'devops_repository_diffs_commits' to obtain changes. That tells the agent what to do next, but there is no explicit when-not-to-use or mention of the sibling list tool.

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