Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

search_work_items

Read-onlyIdempotent

Find work items across Azure DevOps projects by search text and filter by project, type, state, assignee, or area; sort and paginate results.

Instructions

Search for work items across projects in Azure DevOps

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": {
      "searchText": "<searchText>"
    },
    "name": "search_work_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoNumber of results to return (default: 100, max: 1000)
skipNoNumber of results to skip for pagination (default: 0)
filtersNoOptional filters to narrow search results
orderByNoOptions for sorting search results
projectIdNoThe ID or name of the project to search in. If omitted, the search runs across the organization when supported.
searchTextYesThe text to search for in work items
includeFacetsNoWhether to include faceting in results (default: true)
organizationIdNoThe ID or name of the organization (defaults to configured organization)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.0.13
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / filters / additionalProperties
      Removed value: -false
    • removedInput schema / properties / orderBy / items / additionalProperties
      Removed value: -false
    • changedInput schema / properties / organizationId / description
      Previous value: -"The ID or name of the organization (Default: mycompany)"New value: +"The ID or name of the organization (defaults to configured organization)"
    • changedInput schema / required
      Previous value: -[
      -  "searchText",
      -  "top",
      -  "skip",
      -  "includeFacets"
      -]New value: +[
      +  "searchText"
      +]
  2. Changed2 schema fields changedv1.0.6
    • addedInput schema / properties / skip / maximum
      Added value: +9007199254740991
    • changedInput schema / required
      Previous value: -[
      -  "searchText"
      -]New value: +[
      +  "searchText",
      +  "top",
      +  "skip",
      +  "includeFacets"
      +]
  3. Changed1 schema field changedv0.1.10
    • changedInput schema / properties / projectId / description
      Previous value: -"The ID or name of the project to search in (Default: MyProject). If not provided, the default project will be used."New value: +"The ID or name of the project to search in. If omitted, the search runs across the organization when supported."
  4. 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 to search in"New value: +"The ID or name of the project to search in (Default: MyProject). If not provided, the default project will be used."
    • changedInput schema / required
      Previous value: -[
      -  "searchText",
      -  "projectId"
      -]New value: +[
      +  "searchText"
      +]
  5. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is fully covered without description help. Beyond that, the sentence adds almost nothing: no mention of result caps (top max 1000), pagination behavior, whether omitting projectId triggers an organization-wide search, or any rate/scope caveats for a text query.

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 no filler or repetition, which is structurally clean. It is arguably over-trimmed for an eight-parameter tool with nested filter objects, but no sentence is wasted.

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?

For a tool with eight parameters, nested filter objects, and no output schema, the description is far too thin — it never explains what a result contains, how facets behave, or how paging with top/skip interacts with a search result set. The rich annotations cover safety but not the operational context an agent needs to call this correctly.

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 the nested filters and orderBy already carries documentation; the baseline of 3 applies. The description contributes no additional meaning about searchText syntax, whether filters are ANDed, or how includeFacets affects results, so it does not exceed the schema.

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 uses a specific verb and resource ('Search for work items') and adds a scope ('across projects in Azure DevOps'), so the agent knows exactly what is being queried. It falls short of a 5 because it never distinguishes itself from sibling retrieval tools such as list_work_items, get_iteration_work_items, or search_code/search_wiki.

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 or when-not-to-use guidance and no alternative named, even though list_work_items and the other search_* tools are plausible substitutes. The only implied guidance is that this is a text-based search rather than a listing, which the agent must infer from the verb alone.

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