Skip to main content
Glama

cloudtest__BatchAddRelationsByOneCase

Batch-associates a requirement or defect with multiple test cases in Huawei Cloud CloudTest, so you can add all case relations in one request.

Instructions

[CLOUDTEST] 添加需求/缺陷和多个用例关联关系

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workitem_id": "<workitem_id>"
    },
    "name": "cloudtest__BatchAddRelationsByOneCase"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_uriNo测试套id
relationsNo
tracker_idNo工作项类型id
version_uriNo版本uri
workitem_idYes需求/缺陷id
project_uuidNo项目id
add_to_iteratorNo是否将需求添加到迭代

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a mutation tool, and it does not deliver. It does not say whether relations are deduplicated, what happens if some entries in the batch fail, whether the operation is idempotent, or what permissions are required.

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?

It is a single front-loaded clause with a tool prefix and no filler, so it is maximally compact. The downside is under-specification rather than verbosity, but nothing needs trimming.

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

Completeness2/5

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

For a 7-parameter batch mutation with no annotations and no output schema, the description is far too thin. It omits batch/partial-failure semantics, duplicate handling, and what the response contains, leaving the agent unable to predict the effects of calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 86%, so the schema already documents task_uri, tracker_id, version_uri, project_uuid and add_to_iterator. The description restates the two domain concepts (the work item and the multiple test cases) but adds no format, constraint, or interaction detail beyond that baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a concrete verb+resource: add (添加) association relations (关联关系) between a requirement/defect (需求/缺陷) and multiple test cases (多个用例). The "multiple cases" wording signals the batch semantics that distinguish it from the single-case sibling CreateRelationsByOneCase, though that sibling is never named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance. The agent must infer whether this should be chosen over cloudtest__CreateRelationsByOneCase, and there is nothing on prerequisites such as whether the work item and cases must already exist or belong to the same project/version.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools