Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

list_work_items

Read-only

Lists work items in an Azure DevOps project using WIQL or saved queries, with optional field selection, filtering, and paging controls.

Instructions

List work items in a project

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_work_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoMaximum number of work items to return
skipNoNumber of work items to skip
wiqlNoWork Item Query Language (WIQL) query
fieldsNoList of additional fields to include in the response beyond the defaults (System.Id, System.Title, System.State, System.AssignedTo). Use full field reference names, e.g. "Microsoft.VSTS.Scheduling.StoryPoints", "System.IterationPath", "System.AreaPath".
teamIdNoThe ID of the team
queryIdNoID of a saved work item query
projectIdNoThe ID or name of the project (Default: MyProject)
organizationIdNoThe ID or name of the organization (Default: mycompany)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.6
    • addedInput schema / properties / fields
      Added value: +{
      +  "description": "List of additional fields to include in the response beyond the defaults (System.Id, System.Title, System.State, System.AssignedTo). Use full field reference names, e.g. \"Microsoft.VSTS.Scheduling.StoryPoints\", \"System.IterationPath\", \"System.AreaPath\".",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed3 schema fields changedv1.0.0
    • addedInput schema / properties / organizationId
      Added value: +{
      +  "description": "The ID or name of the organization (Default: mycompany)",
      +  "type": "string"
      +}
    • changedInput schema / properties / projectId / description
      Previous value: -"The ID or name of the project"New value: +"The ID or name of the project (Default: MyProject)"
    • removedInput schema / required
      Removed value: -[
      -  "projectId"
      -]
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

readOnlyHint=true already tells the agent this is a safe read, so the description adds nothing on the safety side. It omits behavior an agent would care about: default page size, whether all items or only defaults are returned, whether the default project/organization is used when IDs are omitted, and whether WIQL results are capped by 'top'.

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?

One short, front-loaded sentence with zero filler, so nothing needs trimming. Its terseness is a completeness problem rather than a conciseness problem, which is scored elsewhere.

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?

For a tool with eight parameters, no output schema, and no annotation beyond readOnlyHint, the description is too thin. The schema carries the parameter detail, but nothing explains return shape, paging behavior, or default project/organization resolution, which matter for a listing call.

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 one of the eight parameters is documented in the schema, including the WIQL, saved-query, and field-projection options; this establishes the baseline of 3. The description itself adds no meaning about how wiql and queryId interact or about default scoping.

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?

States a specific verb and resource (list work items) and scopes it to a project, so an agent knows what it does. It gives no hint of how it differs from the closely named sibling search_work_items, leaving the distinction to be guessed.

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 when to prefer this over search_work_items, when to supply wiql versus queryId, or what happens when no filters are given. The agent must infer usage entirely from the schema.

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