Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Zephyr: Create Test Case

zephyr_create_test_case

Create a test case in Zephyr for a Jira project. Specify project key and name, with optional details like objective, labels, priority, and custom fields.

Instructions

Create a new Test Case in Zephyr specified project

Toolset: Test Cases

Parameters:

  • projectKey (string) required: Jira project key.

  • name (string) required

  • objective (string): A description of the objective.

  • precondition (string): Any conditions that need to be met.

  • estimatedTime (number): Estimated duration in milliseconds.

  • componentId (number): ID of a component from Jira.

  • priorityName (string): The priority name.

  • statusName (string): The status name.

  • folderId (number): ID of a folder to place the entity within.

  • ownerId (string): Atlassian Account ID of the Jira user.

  • labels (array): Array of labels associated to this entity.

  • customFields (record<string, any>): Multi-line text fields support HTML and should denote new lines with the <br> tag. Dates should be in the format 'yyyy-MM-dd'. Users should have values of Jira User Account IDs.

Examples:

  1. Create a Test Case in project SA to ensure that the axial pump can be enabled

{
  "projectKey": "SA",
  "name": "Check axial pump",
  "objective": "Ensure the axial pump can be enabled"
}

Expected Output: The newly created Test Case with its details and key

  1. Create a Test Case to ensure that the axial pump can be enabled. The test should be in project MM2, have labels 'automated' and 'mcp', and priority 'High'

{
  "projectKey": "MM2",
  "name": "Check axial pump",
  "objective": "Ensure the axial pump can be enabled",
  "labels": [
    "automated",
    "mcp"
  ],
  "priorityName": "High"
}

Expected Output: The newly created Test Case with its details and key

  1. Create a Test Case for verifying strength of the axial pump with custom field 'Axial pump strength' having value '5' in project SA

{
  "projectKey": "SA",
  "name": "Check axial pump strength",
  "objective": "Make sure the axial pump operates at the required strength",
  "customFields": {
    "Axial pump strength": 5
  }
}

Expected Output: The newly created Test Case with its details and key

  1. Create a Test Case in project MM2 to verify the performance of the axial pump with Jira component having ID 10001, Jira owner having ID 10057 in folder 'Pumps'

{
  "projectKey": "MM2",
  "name": "Check axial pump performance",
  "objective": "Ensure the axial pump performs within acceptable limits",
  "componentId": 10001,
  "ownerJiraUserId": 10057,
  "folderId": 18
}

Expected Output: The newly created Test Case with its details and key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
labelsNoArray of labels associated to this entity.
ownerIdNoAtlassian Account ID of the Jira user.
folderIdNoID of a folder to place the entity within.
objectiveNoA description of the objective.
projectKeyYesJira project key.
statusNameNoThe status name.
componentIdNoID of a component from Jira.
customFieldsNoMulti-line text fields support HTML and should denote new lines with the \<br\> tag. Dates should be in the format 'yyyy-MM-dd'. Users should have values of Jira User Account IDs.
preconditionNoAny conditions that need to be met.
priorityNameNoThe priority name.
estimatedTimeNoEstimated duration in milliseconds.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoThe ID of the entity
keyNo
selfNo
Behavior4/5

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

Annotations are present (readOnlyHint=false, destructiveHint=false) and consistent with creation behavior. The description adds value beyond annotations by specifying expected output (newly created test case with details and key) and formatting details for customFields.

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?

The description is well-structured with sections for toolset, parameters, and examples. It is not overly verbose given the complexity of the tool. Each example adds distinct use cases.

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

Completeness5/5

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

The description covers all parameters with examples, explains complex fields, and mentions expected output format. Given the presence of an output schema and high parameter coverage, it is sufficiently complete.

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?

With 92% schema coverage, the baseline is 3. The description adds meaning with examples and formatting notes (e.g., customFields HTML, date format, estimatedTime in milliseconds). This exceeds schema-only documentation.

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?

The description clearly states the tool creates a new test case in Zephyr for a specified project. Examples reinforce the purpose and differentiate from sibling tools like update or get test cases.

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 description provides parameters and examples but does not explicitly state when to use this tool versus alternatives (e.g., other test management tools). Usage context is implied by the tool name and project key requirement.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SmartBear/smartbear-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server