query_work_items
Retrieve Azure DevOps work items by executing WIQL queries to filter, sort, and manage project tasks, bugs, and user stories.
Instructions
Execute a WIQL query. Example: SELECT [System.Id] FROM WorkItems WHERE [System.WorkItemType] = 'Bug' AND [System.State] = 'Active'
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": {
"query": "<query>"
},
"name": "query_work_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | WIQL query string. Use SELECT [System.Id] FROM WorkItems WHERE ... ORDER BY ... | |
| top | No | Max results to return (optional, can also use TOP N in query) |