Skip to main content
Glama

generate_test_cases

Generate functional, edge, integration, and regression test cases from Jira or Azure DevOps work items with AI, then optionally create them directly in the platform.

Instructions

AI-generate test cases (functional, edge, integration, regression) from a work item. Optionally creates them in the platform.

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": {
      "platform": "<platform>",
      "workItemId": "<workItemId>"
    },
    "name": "generate_test_cases"
  }
}

Input Schema

NameRequiredDescriptionDefault
platformYesThe platform
testTypeNoType of test cases to generatefunctional
workItemIdYesThe work item ID to generate test cases for
createTestCasesNoWhether to auto-create test cases in the platform

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the important dual nature: generation is read-like but test cases may be written into the platform. However, "optionally" undersells that createTestCases defaults to true, so an agent could trigger unintended writes without realizing the default; permissions, latency, and what happens to generated-but-not-created cases are unstated.

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?

Two short sentences with the capability and its type variants front-loaded and the mutation caveat immediately after. Nothing is redundant and no sentence could be removed without losing 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 four-parameter generative tool with no annotations and no output schema, the description covers what it does and that it may write results. It omits what the tool returns when createTestCases is false versus true, which matters for an agent deciding whether to preview before creating, and it omits any note on scope or cost of the AI generation.

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 all four parameters are already documented with descriptions and two enums, establishing a baseline of 3. The description only restates the four test types already present in the testType enum and adds no meaning about platform routing, ID format, or the consequences of createTestCases beyond what the schema states.

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?

"AI-generate test cases ... from a work item" names a specific verb, resource, and input source, and the parenthetical enumerates the four supported test types. The nearest sibling is generate_acceptance_criteria, and while the resource nouns differ, the description never explicitly contrasts the two, so an agent must infer the boundary.

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?

The phrase "from a work item" plus "Optionally creates them in the platform" implies the operating context, and the default createTestCases=true hints at the common path. There is no explicit statement of when to choose this over generate_acceptance_criteria, no prerequisite about the work item needing enough detail, and no exclusion cases.

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