Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

QTM4J: Get Linked Bugs of Test Case Execution

qtm4j_get_linked_bugs_of_test_case_execution
Read-onlyIdempotent

Retrieve Jira bugs linked to a test case execution, applying optional priority and status filters for targeted results.

Instructions

Retrieve Jira bugs linked to a test case execution with optional priority and status filtering. Looks up testCaseExecutionId from testCycleKey and testCaseKey; resolves filter names to numeric IDs.

Toolset: Test Executions

Parameters:

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

  • testCaseKey (string) required: Test case key in the format '{PROJECT_KEY}-TC-{number}', e.g. 'SCRUM-TC-145'.

  • filter (object): Filter criteria for linked bugs. Omit to return all linked bugs. priority and status names are resolved to numeric IDs; unresolvable names are skipped with a warning.

  • level (string): Execution level filter. Default: 'testcase_execution, teststep_execution' (both levels). Use 'testcase_execution' for test-case-level links only, 'teststep_execution' for step-level links only. (default: "testcase_execution, teststep_execution")

  • startAt (number): Zero-based index of the first result to return (pagination offset). (default: 0)

  • maxResults (number): Maximum number of bugs to return per page. Range 1–100; defaults to 20. (default: 20)

Output Description: JSON object with startAt, maxResults, total, and data array of linked bug objects. Each bug has: id, key, summary, status, priority, issueType, level, stepSeqNo, parameterGroup.

Use Cases: 1. List all Jira bugs linked to a test case execution 2. Filter linked bugs by priority or status

Examples:

  1. Get all linked bugs for a test case execution

{
  "testCycleKey": "PROJ-TR-101",
  "testCaseKey": "PROJ-TC-42"
}

Expected Output: Paginated list of all bugs linked to the test case execution

  1. Filter by priority

{
  "testCycleKey": "PROJ-TR-101",
  "testCaseKey": "PROJ-TC-42",
  "filter": {
    "priority": [
      "High"
    ]
  }
}

Expected Output: Linked bugs with High priority

  1. Filter by status

{
  "testCycleKey": "PROJ-TR-101",
  "testCaseKey": "PROJ-TC-42",
  "filter": {
    "status": [
      "To Do",
      "In Progress"
    ]
  }
}

Expected Output: Linked bugs in To Do or In Progress status

Hints: 1. Call set_project_context before this tool. 2. An empty result (total = 0) means no bugs are linked — it is not an error. 3. priority and status names are resolved to numeric IDs; unresolved names are skipped with a warning. 4. Use get_linked_bugs_of_test_step_execution to retrieve bugs linked at a specific step level.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelNoExecution level filter. Default: 'testcase_execution, teststep_execution' (both levels). Use 'testcase_execution' for test-case-level links only, 'teststep_execution' for step-level links only.testcase_execution, teststep_execution
filterNoFilter criteria for linked bugs. Omit to return all linked bugs. priority and status names are resolved to numeric IDs; unresolvable names are skipped with a warning.
startAtNoZero-based index of the first result to return (pagination offset).
maxResultsNoMaximum number of bugs to return per page. Range 1–100; defaults to 20.
testCaseKeyYesTest case key in the format '{PROJECT_KEY}-TC-{number}', e.g. 'SCRUM-TC-145'.
testCycleKeyYesTest cycle key in the format '{PROJECT_KEY}-TR-{number}', e.g. 'SCRUM-TR-101'. Used directly as the API path parameter.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesLinked bugs on the current page; empty when total is 0.
totalYesTotal number of linked bugs matching the filter across all pages. 0 means none are linked.
startAtYesZero-based index of the first item in this page.
maxResultsYesPage size applied to this response.
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint false, and the description goes further by explaining filter-name resolution, warning on unresolvable names, pagination defaults, and that an empty result is not an error. No contradiction with annotations exists.

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 (Toolset, Parameters, Output, Use Cases, Examples, Hints). It front-loads the core purpose and each section serves a purpose, though some parameter details are redundantly restated from the schema.

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 prerequisites, parameter formats, output shape, filtering semantics, pagination behavior, edge cases (empty results), and sibling differentiation. For a relatively complex read tool with nested filter objects, nothing essential for correct invocation is missing.

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 description coverage is 100%, so the baseline is 3. The description adds value by providing practical examples, clarifying the API path behavior for testCycleKey, and explaining resolution semantics for priority/status filters beyond the raw 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?

The description opens with a specific verb ('Retrieve'), a specific resource ('Jira bugs linked to a test case execution'), and optional filtering behavior. It also names a sibling tool in the Hints section, `get_linked_bugs_of_test_step_execution`, clarifying the boundary between the two tools.

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 explicitly tells the agent when to use the tool, what to omit to get all bugs, how to filter, and which prerequisite to call (`set_project_context`). It also directs the agent to a sibling tool for step-level retrieval, leaving no ambiguity about alternatives.

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