Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

QMetry: Link Issues to Testcase Run

qmetry_link_issues_to_testcase_run

Link one or more issues to a QMetry testcase run to associate defects with test executions and maintain traceability.

Instructions

Link one or more issues to a QMetry Testcase Run (execution).

Toolset: Issues

Parameters:

  • projectKey (string): Project key - unique identifier for the project (default: "default")

  • issueIds (array) required: ID of issues to be linked to Testcase Run

  • tcrId (number) required: ID of Testcase Run to link issues with. CRITICAL: parameter name is 'tcrId' — do NOT use 'tcRunId', 'testCaseRunId', or other variants. Accepts a string or number.

Output Description: JSON object with linkage status and details.

Use Cases: 1. Link a single issue to a testcase run 2. Link multiple issues to a testcase run 3. Automate defect association during test execution 4. Maintain traceability between defects and test runs

Examples:

  1. Link one issue to a testcase run

{
  "issueIds": [
    "5054834"
  ],
  "tcrId": 567890
}

Expected Output: Issue 5054834 linked to testcase run 567890 successfully.

  1. Link multiple issues to a testcase run

{
  "issueIds": [
    "5054834",
    "5054835"
  ],
  "tcrId": 567890
}

Expected Output: Issues 5054834, 5054835 linked to testcase run 567890 successfully.

Hints: 1. if you have pass issue key (VT-IS-5, MAC-IS-10 etc.) then first fetch issue by issue key to get issue id. 2. To get the issueIds, call the Fetch issues linked with testcases tool and use data[].defectID from the response. 3. To get the tcrId, call the Execution/Fetch Testcase Run ID tool and use data[].tcRunID from the response. 4. Both issueIds and tcrId are required. 5. You can link multiple issues at once by providing an array of IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tcrIdYesID of Testcase Run to link issues with. CRITICAL: parameter name is 'tcrId' — do NOT use 'tcRunId', 'testCaseRunId', or other variants. Accepts a string or number.
issueIdsYesID of issues to be linked to Testcase Run
projectKeyNoProject key - unique identifier for the projectdefault
Install Server

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already mark this as a mutating, non-idempotent operation; the description adds an output description and warns about the exact 'tcrId' parameter name. It does not expand on side effects like whether existing links are preserved, but the annotated safety profile plus examples give enough behavioral context.

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 front-loaded with a one-line summary, then organized into short labeled sections; the examples and hints are useful. It repeats some schema content and the generic Output Description is low-value, so it is not maximally tight.

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

Completeness4/5

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

For a mutation tool without an output schema, it includes output shape, multiple worked examples, and step-by-step hints for sourcing the two required IDs. Missing specifics on error behavior and exact JSON fields are minor given the clear examples.

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?

The schema already documents all parameters, so baseline is 3, but the description's Hints add real value: it explains how to resolve issue keys to IDs, which companion tool returns issueIds and which returns tcrId, and the example shows correct JSON. The only concern is that the parameter text says tcrId accepts a string or number while the schema types it as number, a minor source of ambiguity.

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 opening sentence states a specific action (Link) against a concrete resource (QMetry Testcase Run) and clarifies scope ('one or more issues'). The examples and 'Automate defect association during test execution' use case reinforce that this is the issue-to-test-execution linking tool, distinct from requirement/test-case linking siblings such as qtm4j_link_requirements_to_test_case.

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?

Use Cases and Hints provide clear context: linking single/multiple issues, defect association, and traceability. It gives retrieval instructions for required IDs from companion tools but does not explicitly say when not to use it or name a sibling alternative, so it falls short of a full exclusion statement.

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