Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

get_iteration_work_items

Read-onlyIdempotent

Retrieve work items assigned to a team iteration by UUID, optionally hydrating field details in batches for sprint planning and reporting.

Instructions

Get work item relations assigned to a team iteration by iteration UUID, with optional batched work item detail hydration

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": {
      "iterationId": "<iterationId>"
    },
    "name": "get_iteration_work_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoOptional list of work item field reference names to retrieve when includeWorkItemDetails is true
teamIdNoThe ID or name of the team (defaults to the project default team)
projectIdNoThe ID or name of the project (defaults to AZURE_DEVOPS_DEFAULT_PROJECT)
iterationIdYesThe iteration UUID (identifier from list_iterations or id from list_team_iterations; integer IDs are not accepted)
organizationIdNoThe ID or name of the organization (defaults to configured organization)
includeWorkItemDetailsNoWhen true, hydrate full work item details in batches of up to 200 items (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.13

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds that detail hydration is optional and batched, which is useful behavioral context, but the batching size (200) appears in the schema rather than the description and nothing is said about return shape or payload cost when hydration is enabled.

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 front-loaded sentence with no wasted clauses; the core resource and scope come first and the optional hydration behavior trails as a qualifier. The term 'hydration' is jargon but is immediately grounded by the includeWorkItemDetails parameter.

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 six parameters, no output schema, and a read operation, the description should clarify what is actually returned — it says 'work item relations' while the tool name says work items, leaving the response shape ambiguous. Parameter defaults and iteration-ID sourcing are handled by the schema, but the return-value ambiguity is an unaddressed gap.

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 all six parameters are already documented, including the fields, teamId, projectId, and organizationId defaults. The description only echoes the iteration-UUID scoping and the optional hydration flag, adding little beyond the schema — the correct baseline of 3.

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 names a specific verb and resource (get work item relations) and adds scope (assigned to a team iteration, addressed by iteration UUID). It implicitly separates itself from the broader list_work_items/search_work_items by being iteration-scoped, but never names those siblings explicitly, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The iteration-scoping implies when this tool is appropriate (you have an iteration and want its work items), but there is no explicit when-to-use versus when-not guidance and no mention of the sibling tools that list or search work items globally. The agent must derive the selection rule from the scope phrase alone.

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