Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_work_item_revisions

Read-onlyIdempotent

Retrieve a work item's revision history or fetch a specific revision by number to inspect changes and track updates in Azure DevOps.

Instructions

Get revision history for a work item, or fetch a single specific revision by revisionNumber

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": {
      "workItemId": "<workItemId>"
    },
    "name": "get_work_item_revisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoMaximum number of revisions to return (1-200, default: 50). Ignored when revisionNumber is provided.
skipNoNumber of revisions to skip (non-negative integer). Ignored when revisionNumber is provided.
expandNoThe level of detail to include in the revision response (default: "none")none
projectIdNoThe ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)
workItemIdYesThe ID of the work item to retrieve revisions for
organizationIdNoThe ID or name of the organization (defaults to configured organization)
revisionNumberNoSpecific revision number to fetch. When provided, returns only that single revision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.13

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so safety is covered. The description adds the meaningful behavioral fact that revisionNumber collapses the response to a single revision rather than a list. It does not discuss ordering, pagination limits, or permissions, which keeps it below a 5.

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 sentence with the primary mode first and the conditional mode second. No redundant or filler wording.

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

Completeness3/5

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

With seven parameters and no output schema, the description leaves the agent guessing about the returned revision objects, ordering, and whether expand changes the shape of each entry. The dual-mode contract is well covered, but return-side completeness is missing.

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 every parameter including top, skip, expand, projectId, organizationId, workItemId, and revisionNumber is already documented. The description's mention of revisionNumber restates the schema's own 'When provided, returns only that single revision' wording, adding no new syntax or constraint detail. 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 description names a specific verb and resource ('Get revision history for a work item') and adds a second, clearly delimited mode ('fetch a single specific revision by revisionNumber'). This cleanly separates it from the sibling get_work_item, which returns the item itself rather than its history.

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 states the condition that selects each mode: omit revisionNumber for history, supply it for a single revision. No explicit exclusions or named alternatives (e.g., 'use get_work_item for current state') are given, but the mode switch is unambiguous.

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