Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_work_item

Read-only

Retrieves details for a specific Azure DevOps work item by ID, optionally including relations, fields, links, or all available information for inspection.

Instructions

Get details of a specific work item

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

Input Schema

NameRequiredDescriptionDefault
expandNoThe level of detail to include in the response. Defaults to "all" if not specified.
workItemIdYesThe ID of the work item

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.0
    • changedInput schema / properties / expand / enum
      Previous value: -[
      -  0,
      -  1,
      -  2,
      -  3,
      -  4
      -]New value: +[
      +  "none",
      +  "relations",
      +  "fields",
      +  "links",
      +  "all"
      +]
    • changedInput schema / properties / expand / type
      Previous value: -"number"New value: +"string"
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

The readOnlyHint annotation already establishes that this is a safe read, so the description needed to add behavior such as what 'details' includes or the default expand level. Instead it adds nothing beyond the annotation and the name; the useful detail about expand defaulting to 'all' lives in the schema, not the description.

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 short sentence with no filler and the key resource front-loaded. It is efficient, though the brevity edges into under-specification rather than disciplined conciseness.

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?

There is no output schema, so the description carries the burden of explaining what a work item 'details' response contains, and it does not. For a simple two-parameter read tool with readOnlyHint set, the gap is narrow but real: an agent cannot tell whether relations, fields, and links come back by default.

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%, so both workItemId and the expand enum are fully documented in the schema. The description adds no meaning beyond that baseline, mentioning neither parameter nor the tradeoff of requesting 'all' versus 'none' detail.

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 states a specific verb (get) and resource (work item) and adds a scope qualifier (a specific work item), so an agent knows it is a single-item lookup rather than a list or search. It stops short of distinguishing itself from siblings like get_work_item_comments or get_work_item_attachment, which retrieve sub-resources of the same item.

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 at all: nothing says to prefer this over list_work_items or search_work_items when the ID is unknown, and nothing says which sibling to call for comments, attachments, or relations. The agent must infer routing from sibling names alone.

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