Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

add_test_cases_to_suite

Attach existing Test Case work items to a static or requirement-based test suite in Azure DevOps, with optional configuration IDs, to organize test coverage in a test plan.

Instructions

Attach one or more existing Test Case work items to a static or requirement-based 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": {
      "planId": "<planId>",
      "suiteId": "<suiteId>",
      "testCaseIds": "<testCaseIds>"
    },
    "name": "add_test_cases_to_suite"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYesThe numeric ID of the test plan
suiteIdYesThe numeric ID of the static or requirement-based test suite (cannot add to query-based suites)
projectIdNoThe ID or name of the project (Default: MyProject; required if AZURE_DEVOPS_DEFAULT_PROJECT is unset)
testCaseIdsYesNon-empty list of Test Case work item IDs to attach to the suite
configurationIdsNoOptional test configuration IDs to assign to the added test cases

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.11

TDQS

B3.4/5.0
Behavior3/5

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

The readOnlyHint=false annotation already tells the agent this mutates state. The description adds that only existing work items can be attached and that static/requirement-based suites are the target, but says nothing about duplicate handling, idempotency, permissions, or what happens to already-linked cases.

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 well-formed sentence with the action front-loaded and the resource qualifier trailing. Nothing superfluous, though the suite-type restriction is duplicated from the schema rather than adding new information.

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 mutating link operation with no output schema, the description covers the essential target and scope, but omits practical outcomes such as duplicate attachments already in the suite and the result shape. Adequate, not rich.

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 is already documented, including the 'cannot add to query-based suites' constraint and minItems on testCaseIds. The description only restates 'one or more' and adds no format or ID-resolution detail beyond 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?

States a specific verb and resource: 'Attach ... existing Test Case work items to a ... test suite'. The word 'existing' and the suite-type qualifier distinguish it from create_test_case and remove_test_cases_from_suite, though it never names those siblings.

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 'existing' (this is for linking, not creating, test cases) and by 'static or requirement-based' (not query-based suites). No explicit when-to-use framing or named alternative for cases where the suite is query-based.

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