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 by providing a test cycle key and test case key, with optional filtering by priority and status to focus on the most relevant issues.

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.
Behavior5/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true; the description adds valuable behavioral context: the key lookup process, filter-name resolution to numeric IDs, pagination defaults, level filtering behavior, and the meaning of empty results (total=0). No contradictions 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 and front-loaded with the core purpose. Sections for parameters, output, use cases, examples, and hints are clearly separated. Slight redundancy exists (filter-name resolution appears in the intro, parameter descriptions, and hints), but it earns its place through completeness.

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?

For a tool with a nested filter object, six parameters, and an output schema, the description is comprehensive: prerequisites, pagination, level semantics, output structure, examples, edge cases, and sibling alternatives are all covered. It fully addresses the complexity without needing to rely on omitted details.

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% and parameter descriptions are already detailed, so a baseline of 3 applies. The description adds extra meaning by explaining how testCycleKey and testCaseKey are used to look up the execution, how filter names are resolved, and the effect of the level parameter. Examples clarify nested filter structure.

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-resource pair: 'Retrieve Jira bugs linked to a test case execution', further scoped by optional filtering. It distinguishes itself from the sibling 'get_linked_bugs_of_test_step_execution' explicitly in Hints #4.

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?

Use Cases clearly state when to use (list or filter linked bugs). Hints provide explicit alternatives: 'Use get_linked_bugs_of_test_step_execution for step-level' and a prerequisite 'Call set_project_context before this tool.' Includes both positive and negative guidance.

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