Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

QMetry: Link Requirements to Testcase

qmetry_link_requirements_to_testcase

Link requirements to test cases using entity keys and version IDs to establish traceability, enable bulk linking, and automate coverage mapping.

Instructions

Link one or more requirements to a test case by entityKey and version IDs.

Toolset: Requirements

Parameters:

  • tcID (string) required: EntityKey of Testcase (e.g. 'COD-TC-29')

  • tcVersionId (number) required: Test Case version number. This is the internal numeric identifier for the version.

  • rqVersionIds (string) required: Comma-separated values of versionId of the Requirement (e.g. '236124,236125')

Output Description: JSON object with success status and linkage details.

Use Cases: 1. Link requirements to a test case for traceability 2. Bulk link multiple requirements to a single test case 3. Automate requirement coverage mapping

Examples:

  1. Link requirements to test case VT-TC-26

{
  "tcID": "VT-TC-26",
  "tcVersionId": 5448515,
  "rqVersionIds": "5009939,5009937,4970699"
}

Expected Output: Requirements linked to test case VT-TC-26 successfully.

Hints: 1. To get the tcID, call the Testcase/Fetch List for Bulk Operation API and use data[].entityKey. 2. To get the tcVersionId, call the Testcase/Fetch Versions API and use data[].tcVersionID. 3. To get the rqVersionIds, call the requirement/List Versions API and use data[].rqVersionID. 4. If user provides requirement entityKey (e.g., VT-RQ-18), first call requirements list with a filter on entityKeyId to resolve the rqVersionIds 5. If user provides testcase entityKey (e.g., VT-TC-26), first call testcase list with a filter on entityKeyId to resolve the tcVersionId and tcID. 6. rqVersionIds must be a comma-separated string of requirement version IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tcIDYesEntityKey of Testcase (e.g. 'COD-TC-29')
tcVersionIdYesTest Case version number. This is the internal numeric identifier for the version.
rqVersionIdsYesComma-separated values of versionId of the Requirement (e.g. '236124,236125')
Install Server

TDQS

A4.4/5.0
Behavior3/5

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

The annotations include readOnlyHint=false, destructiveHint=false, and idempotentHint=false, which already indicate a non-read, non-destructive, non-idempotent operation. The description adds context by stating it links requirements (implying modification) and provides output description ('JSON object with success status and linkage details'). It does not contradict annotations, but it does not disclose side effects like whether existing links are replaced or appended, or if there are permissions required. Annotations carry the basic mutation info, so a 3 is appropriate; no contradiction.

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 comprehensive and well-structured with sections for parameters, output, use cases, examples, and hints. It is longer than necessary, but each section earns its place: the hints are highly actionable, and the example is valuable. It is front-loaded with the core purpose, and the structure aids scanning. There is minor redundancy (parameter descriptions echoed from schema), but it's acceptable for usability. Not as concise as the TDQS 4.3 example, hence 4.

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 tool's moderate complexity (3 parameters, no output schema, no nested objects), the description is complete. It includes all necessary information: purpose, parameter semantics, output description, use cases, and critical hints for resolving IDs, which are non-obvious and require external API calls. The annotations provide safety hints, so the description doesn't need to repeat them. This description fully equips the agent to use the tool correctly, surpassing the minimum viable bar.

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%, each parameter has a description in the schema. However, the tool description enhances parameter understanding significantly by providing examples (e.g., 'VT-TC-26', '5448515', '5009939,5009937,4970699') and detailed hints on how to obtain each parameter (e.g., 'To get the tcID, call the Testcase/Fetch List for Bulk Operation API and use data[<index>].entityKey'). This goes beyond the schema's basic descriptions, adding practical guidance. Baseline is 3 due to full schema coverage, but the extra detail justifies a 4.

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: 'Link one or more requirements to a test case by entityKey and version IDs.' It specifies the action (linking), the resource (requirements to test case), and the identifiers used. It is distinct from sibling tools like qmetry_link_test_cases_to_test_suite, which links test cases to suites. The title and description are consistent, and the toolset label ('Requirements') helps contextualize it.

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 guidance on when to use this tool: 'Use Cases: 1. Link requirements to a test case for traceability 2. Bulk link multiple requirements to a single test case 3. Automate requirement coverage mapping.' It also mentions alternatives implicitly by naming the toolset and providing hints to resolve IDs via other APIs. However, it does not explicitly state when NOT to use it, but the use cases and hints are sufficient for differentiation.

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