Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

QTM4J: Update Test Cycle

qtm4j_update_test_cycle
Idempotent

Update an existing test cycle in QTM4J by its key, changing only the fields you provide—status, priority, dates, assignee, labels, components. Pass null to clear nullable fields.

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
Install Server

TDQS

A4.7/5.0
Behavior5/5

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

Even though annotations already declare idempotentHint=true and destructiveHint=false, the description adds substantial behavioral detail: projectId is injected automatically, null clears fields, names are auto-resolved to IDs with warnings on failure, labels/components use add/delete semantics, and archived cycles return 400. This goes far beyond what annotations convey.

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 long but well-structured with clear sections: overview, parameters, output, use cases, examples, and hints. It is front-loaded with the core behavior and then provides progressively detailed guidance. Some redundancy exists between the parameter list, use cases, and hints, but the complexity of the tool justifies the thoroughness.

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 11 parameters, nested add/delete objects, date formatting constraints, prerequisite project context, null-clearing semantics, and conditional server behavior, the description is remarkably complete. It covers prerequisites, failure modes, warnings, output shape, and provides six realistic examples that demonstrate both simple and full updates.

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

Parameters5/5

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

Schema coverage is 100%, but the description still enriches the parameters meaningfully: key must match '{PROJECT_KEY}-TR-{number}' and is used as the API path parameter, date format requires capitalized months, null has explicit clearing semantics, and status/priority values come from set_project_context. This is well beyond the schema baseline.

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 opens with a specific verb and resource: 'Update an existing test cycle in QTM4J by its human-readable key.' It clearly indicates partial-update behavior, names the key format, and differentiates from creation-oriented siblings like qtm4j_create_test_cycle by emphasizing 'existing' 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 Guidelines4/5

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

The description provides strong contextual guidance: set_project_context is a prerequisite, project selection must never be auto-assumed, omitted fields are left unchanged, and archived test cycles cannot be updated. It does not explicitly name an alternative tool for creating cycles, but the word 'existing' and the Toolset heading make the intended usage clear.

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

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