Skip to main content
Glama

cloudtest__CreateRelationsByOneCase

Creates requirement and defect associations for a single test case, with optional iteration linking, to support traceability in Huawei Cloud CloudTest.

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": {
      "case_id": "<case_id>"
    },
    "name": "cloudtest__CreateRelationsByOneCase"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only restates the purpose. It does not disclose whether the operation is additive-only, how duplicates are handled, whether add_to_iterator silently moves requirements into an iteration, or what permissions/scope are required for a mutation of this kind.

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?

A single front-loaded sentence with no filler; the bracketed product tag is the only mild noise. It is efficient, though its brevity is partly under-specification rather than disciplined concision.

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

Completeness3/5

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

For a 7-parameter mutation with a nested relations array and no annotations or output schema, the description should at least explain the relations payload (relate_type of bug vs requirement, association_number) and the effect of add_to_iterator. The strong schema coverage keeps this from being inadequate, but the behavioral context is only partially complete.

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 nearly every field including the nested relations object already carries its own description; the description adds nothing beyond that. Baseline 3 applies since the schema does the heavy lifting and the description does not compensate for the remaining ambiguity in relate_type/resource_type values.

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 specific verb (添加/add) and resource (用例与需求/缺陷的关联关系), so an agent can tell it creates links between one test case and multiple requirements/bugs. It is clear against the DeleteRelationsByOneCase sibling by implication, but it never explicitly contrasts with BatchAddRelationsByOneCase, which is the main risk of misselection.

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

Usage Guidelines3/5

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

Usage is only implied: link requirements/defects to a case. There is no statement of when to prefer this over BatchAddRelationsByOneCase, no prerequisites (e.g., case must exist, project/version context), and no note on what happens if a relation already exists.

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