qmetry_fetch_test_cases_linked_to_requirement
Get test cases that are linked (or not linked) to a specific requirement in QMetry Parameters: - projectKey (string): Project key - unique identifier for the project (default: "default") - baseUrl (string): The base URL for the QMetry instance (must be a valid URL) (default: "https://testmanageme...
This record as markdown: /tools/smartbear-mcp/qmetry-fetch-test-cases-linked-to-requirement.md
What qmetry_fetch_test_cases_linked_to_requirement does on SmartBear MCP
AI agents call qmetry_fetch_test_cases_linked_to_requirement to retrieve information from SmartBear MCP without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
page | number | — | Page number to return (starts from 1) |
rqID | number | Yes | Requirement numeric ID (required for fetching specific requirement details). This is the internal numeric identifier, not the entity key like 'MAC-RQ-730'. You |
limit | number | — | Number of records (default 10). |
start | number | — | Start index for pagination - defaults to 0 |
filter | string | — | Filter criteria as JSON string (default '[]') |
baseUrl | string | — | The base URL for the QMetry instance (must be a valid URL) |
cycleID | string | — | Filter test cases by cycle ID. Use string representation of cycle ID (e.g., '13382'). Get cycle IDs from FETCH_RELEASES_AND_CYCLES tool. |
getLinked | boolean | — | True to get only test cases that are linked with this requirement, false to get test cases which are not linked with this requirement. Defaults to true (get lin |
releaseID | string | — | Filter test cases by release ID. Use string representation of release ID (e.g., '7138'). Get release IDs from FETCH_RELEASES_AND_CYCLES tool. |
getColumns | boolean | — | True to get column information in response. |
projectKey | string | — | Project key - unique identifier for the project |
tcFolderPath | string | — | Folder path to get test cases under specific folder. Use empty string "" for root folder or specify path like "/Sample Template". |
Parameters from the server's own tool schema.
Why qmetry_fetch_test_cases_linked_to_requirement is rated Low
This tool retrieves and queries test case data linked to requirements in QMetry. It performs a data lookup with filtering but has no side effects, modifications, or external execution capabilities. This is a straightforward Read operation with minimal blast radius if misused—it can only return information the user is already authorized to view.
From the tool's definition Tool name includes 'fetch' and description states 'Get test cases that are linked...to a specific requirement'. The parameters show read-only operations: projectKey, baseUrl, rqID (identifier), and getLinked (filter).
Risk signalsHigh parameter count (14 properties) · Admin/system-level operation
Attacks that exploit this kind of access
The rule that runs qmetry_fetch_test_cases_linked_to_requirement safely
PolicyLayer is an MCP gateway: it sits between your AI agents and SmartBear MCP, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For qmetry_fetch_test_cases_linked_to_requirement, this is the rule to start with:
qmetry_fetch_test_cases_linked_to_requirement is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect SmartBear MCP, apply this rule, and every qmetry_fetch_test_cases_linked_to_requirement call is checked against it from then on.
Questions about qmetry_fetch_test_cases_linked_to_requirement
Get test cases that are linked (or not linked) to a specific requirement in QMetry Parameters: - projectKey (string): Project key - unique identifier for the project (default: "default") - baseUrl (string): The base URL for the QMetry instance (must be a valid URL) (default: "https://testmanagement.qmetry.com") - rqID (number) *required*: Requirement numeric ID (required for fetching specific requirement details). This is the internal numeric identifier, not the entity key like 'MAC-RQ-730'. You can get this ID from requirement search results or by using filters. - getLinked (boolean): True to get only test cases that are linked with this requirement, false to get test cases which are not linked with this requirement. Defaults to true (get linked test cases). (default: true) - showEntityWithReleaseCycle (boolean): True to list only test cases which have given release and cycle, false for all test cases regardless of release/cycle association. Defaults to false (show all). (default: false) - start (number): Start index for pagination - defaults to 0 (default: 0) - page (number): Page number to return (starts from 1) (default: 1) - limit (number): Number of records (default 10). (default: 10) - tcFolderPath (string): Folder path to get test cases under specific folder. Use empty string "" for root folder or specify path like "/Sample Template". (default: "") - releaseID (string): Filter test cases by release ID. Use string representation of release ID (e.g., '7138'). Get release IDs from FETCH_RELEASES_AND_CYCLES tool. - cycleID (string): Filter test cases by cycle ID. Use string representation of cycle ID (e.g., '13382'). Get cycle IDs from FETCH_RELEASES_AND_CYCLES tool. - filter (string): Filter criteria as JSON string (default '[]') (default: "[]") - getSubEntities (boolean): Allow filter of sub-entities for requirement. (default: true) - getColumns (boolean): True to get column information in response. (default: true) Output Description: JSON object with test cases array, traceability information, and pagination metadata Use Cases: 1. Get all test cases linked to a specific requirement for traceability analysis 2. Find test cases that are NOT linked to a requirement (gap analysis) 3. Verify requirement coverage by checking linked test cases 4. Impact analysis - see which test cases are affected when a requirement changes 5. Generate traceability matrix between requirements and test cases 6. Filter linked test cases by release, cycle, or other criteria 7. Audit requirement-test case relationships for compliance 8. Identify orphaned test cases or requirements without proper links 9. Plan test execution based on requirement-test case associations 10. Quality assurance - ensure all requirements have adequate test coverage Examples: 1. Get all test cases linked to requirement ID 4791316 json { "rqID": 4791316 } Expected Output: List of test cases that are linked to requirement MAC-RQ-1011 2. Get test cases NOT linked to requirement (gap analysis) json { "rqID": 4791316, "getLinked": false } Expected Output: List of test cases that are NOT linked to requirement MAC-RQ-1011 3. Get linked test cases filtered by specific release json { "rqID": 4791316, "releaseID": "55178" } Expected Output: Linked test cases associated with Release 8.12 (ID: 55178) 4. Get linked test cases filtered by release and cycle json { "rqID": 4791316, "releaseID": "55178", "cycleID": "111577", "showEntityWithReleaseCycle": true } Expected Output: Linked test cases in Release 8.12 and Cycle 8.12.1 5. Get linked test cases from specific folder json { "rqID": 4791316, "tcFolderPath": "/Sample Template" } Expected Output: Linked test cases located in the '/Sample Template' folder 6. Search linked test cases by entity key json { "rqID": 4791316, "filter": "[{\"type\":\"string\",\"value\":\"MAC-TC-1684,MAC-TC-1685\",\"field\":\"entityKeyId\"}]" } Expected Output: Linked test cases matching specific entity keys 7. Filter linked test cases by priority json { "rqID": 4791316, "filter": "[{\"type\":\"list\",\"value\":[1,2],\"field\":\"priorityAlias\"}]" } Expected Output: Linked test cases with High or Medium priority 8. Filter linked test cases by status json { "rqID": 4791316, "filter": "[{\"type\":\"list\",\"value\":[1,2],\"field\":\"testCaseStateAlias\"}]" } Expected Output: Linked test cases with Active or Review status 9. Filter linked test cases by test case type json { "rqID": 4791316, "filter": "[{\"type\":\"list\",\"value\":[1],\"field\":\"testCaseTypeAlias\"}]" } Expected Output: Linked functional test cases 10. Filter linked test cases by testing type (automation) json { "rqID": 4791316, "filter": "[{\"type\":\"list\",\"value\":[2],\"field\":\"testingTypeAlias\"}]" } Expected Output: Linked automated test cases 11. Get only parameterized linked test cases json { "rqID": 4791316, "filter": "[{\"type\":\"list\",\"value\":[1],\"field\":\"isParameterized\"}]" } Expected Output: Linked test cases that are parameterized (data-driven) 12. Filter linked test cases by archive status json { "rqID": 4791316, "filter": "[{\"type\":\"list\",\"value\":[0],\"field\":\"isArchived\"}]" } Expected Output: Active (non-archived) linked test cases 13. Search linked test cases by summary content json { "rqID": 4791316, "filter": "[{\"type\":\"string\",\"value\":\"login\",\"field\":\"summary\"}]" } Expected Output: Linked test cases with 'login' in their summary 14. Filter linked test cases by requirement version json { "rqID": 4791316, "filter": "[{\"type\":\"string\",\"value\":\"1\",\"field\":\"rqVersion\"}]" } Expected Output: Test cases linked to version 1 of the requirement 15. Complex filter: Active, high priority, automated test cases json { "rqID": 4791316, "filter": "[{\"type\":\"list\",\"value\":[0],\"field\":\"isArchived\"},{\"type\":\"list\",\"value\":[1],\"field\":\"priorityAlias\"},{\"type\":\"list\",\"value\":[2],\"field\":\"testingTypeAlias\"}]" } Expected Output: Active, high priority, automated test cases linked to requirement Hints: 1. This API requires a numeric rqID parameter, not entity key 2. If user provides entityKey (e.g., MAC-RQ-1011), first call FETCH_REQUIREMENTS with filter on entityKeyId to resolve the numeric rqID 3. After resolving entityKey → rqID, call this tool with the resolved numeric rqID 4. TRACEABILITY WORKFLOW: Use this tool to establish requirement-test case traceability matrix 5. getLinked=true (default): Returns test cases that ARE linked to the requirement 6. getLinked=false: Returns test cases that are NOT linked to the requirement (useful for gap analysis) 7. showEntityWithReleaseCycle=true: Only show test cases that have the specified release and cycle 8. showEntityWithReleaseCycle=false (default): Show all test cases regardless of release/cycle 9. RELEASE/CYCLE FILTERING: Use string IDs, not numeric (e.g., releaseID: '55178', cycleID: '111577') 10. Get release/cycle IDs from FETCH_RELEASES_AND_CYCLES tool before filtering 11. tcFolderPath: Use empty string '' for root folder or specific path like '/Sample Template' 12. FILTER CAPABILITIES: Support same filters as regular test case listing 13. FILTER FIELDS: summary, rqVersion, priorityAlias, testCaseStateAlias, createdByAlias, testCaseTypeAlias, testingTypeAlias, release, cycle, isArchived, isParameterized, componentAlias, entityKeyId 14. PRIORITY IDs: Typically 1=High, 2=Medium, 3=Low (verify with your QMetry instance) 15. STATUS IDs: Typically 1=Active, 2=Review, 3=Deprecated (verify with your QMetry instance) 16. TYPE IDs: Typically 1=Functional, 2=Integration, 3=System (verify with your QMetry instance) 17. TESTING TYPE IDs: Typically 1=Manual, 2=Automated (verify with your QMetry instance) 18. PARAMETERIZED: 1=Yes (parameterized), 0=No (non-parameterized) 19. ARCHIVED: 1=Archived, 0=Active (non-archived) 20. Multiple filter conditions are combined with AND logic 21. For entity key search, use comma-separated values: 'MAC-TC-1,MAC-TC-2,MAC-TC-3' 22. This tool is crucial for compliance, traceability audits, and impact analysis 23. Use getColumns=true to get column metadata for better result interpretation 24. Pagination supported for large result sets (start, page, limit parameters). It is categorised as a Read tool in the SmartBear MCP MCP Server, which means it retrieves data without modifying state.
qmetry_fetch_test_cases_linked_to_requirement accepts 12 parameters: page, rqID, limit, start, filter, baseUrl, cycleID, getLinked, releaseID, getColumns, projectKey, tcFolderPath. Required: rqID. The full parameter table on this page comes from the server's own tool schema.
Register the SmartBear MCP server in PolicyLayer and add a rule for qmetry_fetch_test_cases_linked_to_requirement: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches SmartBear MCP. Nothing to install.
qmetry_fetch_test_cases_linked_to_requirement is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the qmetry_fetch_test_cases_linked_to_requirement rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for qmetry_fetch_test_cases_linked_to_requirement. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
qmetry_fetch_test_cases_linked_to_requirement is provided by the SmartBear MCP server (SmartBear/smartbear-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on SmartBear, and thousands of servers like it.
This server
Across the catalogue