Skip to main content
Glama

query_work_items

Execute WIQL queries to retrieve and enrich Azure DevOps work items with ID, title, state, type, and effort tracking fields.

Instructions

Query work items via WIQL and return enriched data.

Executes a WIQL query and returns work item summaries with id, title, state, type, and effort tracking fields.

Args: project: Azure DevOps project name. wiql: WIQL query string. top: Optional maximum number of results. working_directory: Optional path for ADO context resolution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYes
wiqlYes
topYes
working_directoryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must fully disclose behavior. It describes reading work items but does not explicitly state read-only status, side effects, or constraints like rate limits. The behavior is implied but not transparent.

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?

The description is concise, with a brief intro, return fields listing, and parameter list. Every sentence adds value, and the purpose is front-loaded.

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

Completeness4/5

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

With an output schema present, the description need not detail return values. It covers the required parameters and basic behavior. However, it could clarify 'enriched data' and provide examples of effort tracking fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description explains each parameter in the Args block: project as 'Azure DevOps project name', wiql as 'WIQL query string', top and working_directory with opt semantics. This adds meaning beyond the schema, though more detail on WIQL syntax would help.

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 clearly states the tool queries work items via WIQL and returns enriched data with specific fields (id, title, state, type, effort tracking). This distinguishes it from siblings like get_work_item or get_work_items by emphasizing custom query capability.

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?

No guidance is provided on when to use this tool versus alternatives like get_work_items or clone_work_item. The description lacks context for selecting WIQL-based queries over direct fetches.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/grimlor/ado-workflows-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server