Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

QTM4J: Update Test Cycle

qtm4j_update_test_cycle
Idempotent

Update a test cycle's summary, status, priority, dates, assignee, or labels by providing its key and the fields to change. Omitted fields remain unchanged.

Instructions

Update an existing test cycle in QTM4J by its human-readable key (e.g. 'SCRUM-TR-101'). Supports auto-resolving human-readable names for status and priority. Labels and components support add/delete operations. Only the fields you provide are changed — omitted fields are left as-is. projectId is injected automatically from the active project context.

Toolset: Test Cycles

Parameters:

  • key (string) required: Test cycle key in the format '{PROJECT_KEY}-TR-{number}', e.g. 'SCRUM-TR-101'. Used directly as the API path parameter.

  • summary (string): Updated test cycle name / title. Max 255 characters.

  • description (string): Updated description. Pass null to clear the existing value. Max 65 535 characters.

  • status (string): Status name (e.g., 'To Do', 'In Progress', 'Done'). Auto-resolved to ID. Use values from set_project_context response. Pass null to clear.

  • priority (string): Priority name (e.g., 'High', 'Medium', 'Low'). Auto-resolved to ID. Use values from set_project_context response. Pass null to clear.

  • plannedStartDate (string): Format: 'dd/MMM/yyyy HH:mm' e.g. '15/May/2026 09:00'. Month must be capitalised (May not may). Pass null to clear the existing value.

  • plannedEndDate (string): Format: 'dd/MMM/yyyy HH:mm' e.g. '15/May/2026 09:00'. Month must be capitalised (May not may). Pass null to clear the existing value.

  • assignee (string): Assignee Jira account ID (e.g., '5b10a2844c20165700ede21f'). Pass null to unassign.

  • reporter (string): Reporter Jira account ID (e.g., '5b10a2844c20165700ede21f'). Pass null to clear.

  • labels (object): Labels to add or remove by name. Each name is auto-resolved to its ID.

  • components (object): Components to add or remove by name. Each name is auto-resolved to its ID.

Output Description: Confirmation object with the test cycle key and updated: true. Warnings are included if any field names could not be resolved.

Use Cases: 1. Update summary, status, priority, planned dates, assignee, or reporter 2. Clear a nullable field by passing null (e.g. description: null removes text, assignee: null unassigns owner) 3. Add or remove labels and components atomically without affecting other entries 4. Apply multiple field updates in a single call

Examples:

  1. Rename a test cycle

{
  "key": "SCRUM-TR-101",
  "summary": "Regression Cycle - Sprint 12 Updated"
}

Expected Output: Test cycle updated with new summary

  1. Change status and update planned dates

{
  "key": "SCRUM-TR-101",
  "status": "In Progress",
  "plannedStartDate": "01/May/2026 09:00",
  "plannedEndDate": "31/May/2026 18:00"
}

Expected Output: Test cycle status and planned dates updated

  1. Add a label and remove an old one

{
  "key": "SCRUM-TR-101",
  "labels": {
    "add": [
      "Regression",
      "Smoke"
    ],
    "delete": [
      "Sprint1"
    ]
  }
}

Expected Output: Test cycle updated — Regression and Smoke labels added, Sprint1 removed

  1. Clear the description text

{
  "key": "SCRUM-TR-101",
  "description": null
}

Expected Output: Test cycle description cleared

  1. Unassign the owner and clear planned dates

{
  "key": "SCRUM-TR-101",
  "assignee": null,
  "plannedStartDate": null,
  "plannedEndDate": null
}

Expected Output: Test cycle owner unassigned and planned dates cleared

  1. Full update with all fields

{
  "key": "SCRUM-TR-101",
  "summary": "Final Regression Cycle",
  "description": "Updated for sprint 12.",
  "status": "In Progress",
  "priority": "High",
  "plannedStartDate": "15/May/2026 09:00",
  "plannedEndDate": "30/May/2026 18:00",
  "assignee": "5b10a2844c20165700ede21f",
  "labels": {
    "add": [
      "Regression"
    ],
    "delete": [
      "Sprint1"
    ]
  },
  "components": {
    "add": [
      "Backend"
    ],
    "delete": [
      "Frontend"
    ]
  }
}

Expected Output: Test cycle updated with all specified fields

Hints: 1. PREREQUISITE: set_project_context must be called before this tool. NEVER auto-select a project. 2. KEY FORMAT: '{PROJECT_KEY}-TR-{number}' — e.g. 'SCRUM-TR-101'. 3. Pass explicit null to CLEAR a nullable field — e.g. description: null removes the description text, assignee: null unassigns the owner, plannedStartDate: null removes the date. Omitting a field leaves it unchanged. 4. Status and priority are auto-resolved from human-readable names loaded by set_project_context. If a name cannot be resolved, the cycle is still updated and a warning is returned. 5. Labels and components use add/delete — names are auto-resolved to IDs. Both operations can be combined in a single call. 6. Date format: 'dd/MMM/yyyy HH:mm' e.g. '15/May/2026 09:00'. Month must be capitalised (May not may or MAY). 7. Archived test cycles cannot be updated — the server returns 400. Unarchive first if needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesTest cycle key in the format '{PROJECT_KEY}-TR-{number}', e.g. 'SCRUM-TR-101'. Used directly as the API path parameter.
labelsNoLabels to add or remove by name. Each name is auto-resolved to its ID.
statusNoStatus name (e.g., 'To Do', 'In Progress', 'Done'). Auto-resolved to ID. Use values from set_project_context response. Pass null to clear.
summaryNoUpdated test cycle name / title. Max 255 characters.
assigneeNoAssignee Jira account ID (e.g., '5b10a2844c20165700ede21f'). Pass null to unassign.
priorityNoPriority name (e.g., 'High', 'Medium', 'Low'). Auto-resolved to ID. Use values from set_project_context response. Pass null to clear.
reporterNoReporter Jira account ID (e.g., '5b10a2844c20165700ede21f'). Pass null to clear.
componentsNoComponents to add or remove by name. Each name is auto-resolved to its ID.
descriptionNoUpdated description. Pass null to clear the existing value. Max 65 535 characters.
plannedEndDateNoFormat: 'dd/MMM/yyyy HH:mm' e.g. '15/May/2026 09:00'. Month must be capitalised (May not may). Pass null to clear the existing value.
plannedStartDateNoFormat: 'dd/MMM/yyyy HH:mm' e.g. '15/May/2026 09:00'. Month must be capitalised (May not may). Pass null to clear the existing value.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesHuman-readable key of the updated test cycle
updatedYesConfirms the update was applied
Behavior5/5

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

The description discloses key behavioral traits beyond annotations: only provided fields are changed, omitted fields are left as-is, null values clear fields, auto-resolution of names with warnings for unresolved ones, and the constraint that archived cycles cannot be updated (server returns 400). There is no contradiction with annotations.

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 (main description, parameters, output, use cases, examples, hints) and is front-loaded with the core purpose. While comprehensive, it is somewhat lengthy due to 11 parameters and extensive examples, but every sentence adds value without redundancy.

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?

Given the high parameter count (11), nested objects, and existing schema/output schema coverage, the description is thorough. It covers prerequisites, format specifics, null handling, auto-resolution, and provides examples for all major use cases. The hints section addresses edge cases like archived cycles, ensuring the agent has complete context.

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 description adds value beyond schema by explaining usage contexts (e.g., key format, null clearing, date format, auto-resolution for status/priority and labels/components). This enriches understanding, especially for nested objects, though the schema already contains detailed parameter descriptions.

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's purpose: 'Update an existing test cycle in QTM4J by its human-readable key.' It specifies the resource (test cycle) and action (update), distinguishing it from sibling tools like qtm4j_create_test_cycle or qtm4j_search_test_cycles.

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

Usage Guidelines5/5

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

The description provides explicit usage guidelines, including a prerequisite (set_project_context must be called first), key format requirements, handling of null to clear fields, auto-resolution of status/priority names, and a note that archived cycles cannot be updated. These instructions help the agent decide when and how to use the tool.

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