Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

create_test_case

Create Azure DevOps Test Case work items with structured steps, optional requirement links, and optional test suite attachments.

Instructions

Create a Test Case work item with structured steps XML, optional TestedBy requirement link, and optional immediate attachment to a test suite

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": {
      "title": "<title>"
    },
    "name": "create_test_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTags to apply
stepsNoStructured test steps (action + optional expectedResult) automatically encoded as Microsoft.VSTS.TCM.Steps XML
titleYesTitle of the Test Case work item
planIdNoOptional test plan ID to immediately attach the created Test Case to (must be paired with suiteId)
suiteIdNoOptional test suite ID to immediately attach the created Test Case to (must be paired with planId)
areaPathNoArea path
priorityNoPriority (1-4)
projectIdNoThe ID or name of the project (Default: MyProject; required if AZURE_DEVOPS_DEFAULT_PROJECT is unset)
assignedToNoAssignee email or display name
descriptionNoOptional description for the Test Case (HTML format)
iterationPathNoIteration path
requirementIdNoOptional requirement / User Story / PBI work item ID to link via Microsoft.VSTS.Common.TestedBy-Reverse ("Tests")
configurationIdsNoOptional test configuration IDs to assign when attaching to a suite (requires planId and suiteId)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.11

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, so the description carries real weight and does add context: steps are auto-encoded into Microsoft.VSTS.TCM.Steps XML, the requirement link is created via TestedBy-Reverse, and suite attachment happens immediately at creation. It omits failure modes, permissions, and whether creation is atomic if attachment fails, which keeps it from a 5.

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 filler; each clause maps to a distinct capability. It is dense to the point of reading as a feature list, but nothing is wasted.

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 13-parameter mutation tool with only readOnlyHint=false and no output schema, the definition covers inputs but never says what comes back (presumably the created work item ID, which an agent would need to chain into add_test_cases_to_suite or attachments). That return-value gap is the main completeness hole.

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 the baseline is 3 and the schema already explains every parameter including the planId/suiteId pairing constraint and steps encoding. The description restates the three notable parameters at a high level without adding syntax or format detail beyond what the schema provides.

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 ("Create a Test Case work item") and enumerates the three distinguishing capabilities: structured steps XML, the TestedBy reverse link, and immediate suite attachment. That separates it from generic create_work_item and from create_test_plan/create_test_suite. It stops short of naming those siblings explicitly, so it just misses a 5.

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?

Usage is implied by the feature list rather than stated: an agent can infer this is for new test cases, not attaching existing ones. There is no explicit "prefer add_test_cases_to_suite for existing cases" or "pair planId/suiteId or omit both" guidance beyond the schema wording. Adequate but leaves the alternative paths to inference.

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