Skip to main content
Glama
hasanozcan

Azure DevOps MCP Server

by hasanozcan

Get pull request work items

get_pull_request_work_items

Find work items linked to a pull request by providing repository and pull request IDs. Use this tool to quickly identify associated tasks, bugs, or user stories for review or traceability.

Instructions

Get work items directly linked to a pull request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNoProject name or ID. Omit to use AZURE_DEVOPS_DEFAULT_PROJECT.
repositoryIdYesRepository name or ID.
pullRequestIdYesPull request numeric ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only restates the basic operation without mentioning whether it is read-only, what types of links are included, whether pagination is involved, or any permissions required.

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?

The description is a single, focused sentence with no filler or redundant wording. It conveys the essential operation efficiently and is immediately scannable.

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 straightforward read operation with all parameters documented in the schema, the description is mostly complete. It names the resource and the linking relationship, though it could additionally note what fields or item types are returned since no output schema exists.

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 the schema fully documents all three parameters. The description adds little semantic context by clarifying that only work items 'directly linked' to the pull request are returned, but it does not describe the parameters beyond what the schema already provides.

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 description clearly states a specific verb ('Get'), a resource type ('work items') and a precise scope modifier ('directly linked to a pull request'). It distinguishes this tool from the many PR-related sibling tools by targeting linked work items rather than comments, commits, threads, or reviews.

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?

The description gives no guidance on when to use this tool versus alternatives like query_work_items, get_work_item_delivery_trace, or get_work_item. There is no mention of when this should be preferred or when another tool should be used instead.

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

Deploy Server

Other Tools