ado_create_test_plan
WHEN: the user wants the manual test cases of a feature (a User Story, Feature or Requirement work item) created in Azure DevOps Test Plans: a test plan, a suite tied to that work item, and one Test Case per scenario with its steps. Triggers: 'create the test plan for WI N', 'créer le plan de test', 'put these tests in Azure Test Plans', 'cas de test dans DevOps'. YOU write the test cases: read the work item (ado_analyze_workitem) and, when useful, the code, then pass them as testCasesJson, a JSON array [{"title":"...","priority":1-4,"tags":["..."],"steps":[{"action":"...","expected":"..."}]}]. Each case needs a title and at least one step; every step needs an action, and an expected result for the steps that verify something. Without testCasesJson the tool falls back to one generic case per acceptance-criteria line, which is much weaker. SAFE BY DEFAULT: with confirm=false (default) nothing is written; it returns exactly what would be created and what already exists. Show that preview to the user, and only call again with confirm=true after they approved it. Test cases whose title already exists on the work item are skipped, so running it twice does not duplicate. Needs a PAT with Work Items (Read & write) and Test Management (Read & write); creating plans and suites also needs the Basic + Test Plans access level.
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": {
"workItemId": "<workItemId>"
},
"name": "ado_create_test_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planId | No | Use this existing test plan instead of looking one up by name. | |
| confirm | No | false (default): preview only, nothing is written. true: create. Only after the user approved the preview. | |
| project | No | Azure DevOps project. Falls back to DEVOPS_PROJECT. | |
| planName | No | Name of the test plan. Default: 'Tests - WI {id} {title}'. An existing plan with this name is reused. | |
| workItemId | Yes | Work item the tests verify (User Story, Feature, Requirement...), e.g. 6587. | |
| testCasesJson | No | JSON array of test cases written from the acceptance criteria. Strongly recommended. See the tool description for the shape. |