Skip to main content
Glama
Zephyr Scale MCP Server

Zephyr Scale MCP Server

by ArtyMaximus

create_test_case

Create Zephyr Scale test cases using STEP_BY_STEP, PLAIN_TEXT, or BDD content, while setting project, name, priority, folder, custom fields, and test steps.

Instructions

Create a new test case with STEP_BY_STEP, PLAIN_TEXT, or BDD content. To match your project's structure, use the zephyr://testcase/EXISTING-KEY resource to fetch a real test case and use its structure as a template, especially for custom_fields.

Test Script Types:

  • STEP_BY_STEP: Use for simple, structured test steps with clear descriptions and expected results. Each step has description, testData, and expectedResult fields.

  • PLAIN_TEXT: Use for complex test cases. Structure: separate each step with "---" separator. Each step should contain description and Ожидаемый результат: at the end. Images as alt will be auto-uploaded.

  • BDD: Use for Behavior Driven Development tests with Given/When/Then syntax (Gherkin format).

When to use each type:

  • Choose STEP_BY_STEP for basic test procedures with numbered steps

  • Choose PLAIN_TEXT for detailed test documentation with step separators (---) and expected results

  • Choose BDD for acceptance criteria and behavior specifications

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

Input Schema

NameRequiredDescriptionDefault
nameYesTest case name (required)
ownerNoTest case owner (optional)
labelsNoArray of labels (optional)
statusNoTest case status (optional)Draft
folderIdNoFolder ID (optional, e.g., 667). Use suggest_folder_for_test_case to get the right folderId.
priorityNoTest case priority (optional)
componentNoComponent name (optional)
objectiveNoTest objective (optional)
parametersNoTest parameters for data-driven testing (optional)
issue_linksNoArray of issue links (optional) - will be mapped to issueLinks in API
project_keyYesProject key (required)
test_scriptNoTest script object containing type and content
preconditionNoTest precondition (optional)
custom_fieldsNoCustom fields object (optional). Use the zephyr://testcase/EXISTING-KEY resource to fetch a real test case and copy its customFields structure. Common examples: {"Type": "Functional", "Priority": "P2", "Regression": false, "Execution Type": "Manual - To Be Automated", "Risk Control": false}
estimated_timeNoEstimated time in milliseconds (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.5

TDQS

A4/5.0
Behavior3/5

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

No annotations exist, so the description bears the full load. It does add real behavior not implied by the name: images in PLAIN_TEXT are auto-uploaded, issue_links are remapped to issueLinks in the API, and custom_fields should be cloned from an existing case. However, it never says what a successful call returns (e.g., the new test case key), what permissions or scopes are required, or how duplicate names/labels are handled — significant omissions for an unannotated mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well front-loaded with bold section headers, but the per-type bullets and the trailing 'When to use each type' list restate substantially the same information twice. Consolidating them would cut length noticeably without losing content, so it earns credit for structure but loses it for redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter, nested-object tool with no annotations and no output schema, the description covers the hardest part — the polymorphic test_script payload — thoroughly and adds the custom_fields template workflow. The remaining gap is the absent description of the response payload and error conditions, which an agent building a follow-up call (e.g., update_test_case_step) would need.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema: the tradeoffs between the three test_script.type values, the '---' separator convention and **Ожидаемый результат:** suffix for PLAIN_TEXT, and concrete custom_fields examples. Optional fields such as owner, labels, status, priority, and estimated_time are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 new test case') and immediately scopes the three content models it accepts (STEP_BY_STEP, PLAIN_TEXT, BDD). The named siblings are unambiguous (create/update/delete/get_test_case), and the description makes clear this is the creation path for test content, not runs or folders.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit selection guidance among the three test_script types, including when STEP_BY_STEP is preferable to PLAIN_TEXT and when BDD applies. It also directs the agent to fetch a real case via zephyr://testcase/EXISTING-KEY and to suggest_folder_for_test_case for folderId. It does not state when not to use this tool (e.g., vs update_test_case), so it stops short of full when/when-not coverage.

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