Skip to main content
Glama

cloudtest__UpdateTestCaseAndScript

Updates Huawei Cloud TestCase records and test scripts by project and TMSS case URI, synchronizing case metadata, steps, variables, and execution settings.

Instructions

[CLOUDTEST] 更新tmss用例和用例脚本

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": {
      "project_id": "<project_id>",
      "tmss_case_uri": "<tmss_case_uri>"
    },
    "name": "cloudtest__UpdateTestCaseAndScript"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoid
nameNo名称
typeNo类型
isSyncNo是否同步
planIdNo计划ID
sourceNo来源
issueIdNo问题ID
demoFlagNo演示标志
addToPlanNo是否添加到计划
case_typeNo用例类型:0商用现有类型,1从内部导过来的用例类型
errorStepNo错误测试阶段
isKeyWordNo是否设置为关键字操作
sourceWayNo来源的方式
project_idYes工程ID
releaseDevNo新服务新建用例版本号
activity_idNo活动id
aw_instanceNo
script_nameNo脚本名(类名)
script_pathNo脚本路径
aw_cata_listNo创建时可选择导入的aw目录直接产生测试步骤
package_nameNo包名
tmss_case_uriYestmss用例uri
tmss_propertyNo
variableGroupIdNo环境参数分组id
import_info_listNoimport信息List
tmss_feature_uriNotmss用例uri
old_tmss_case_uriNo被复制用例的tmsscaseuri
src_tmss_case_uriNo选择用例中测试步骤生成关键字时的原用例tmssCaseUri
turn_on_awmappingNo新组合AW开关
case_variable_listNo用例局部变量
old_tmss_case_uri_listNo被复制用例的tmsscaseuri列表,内部使用

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/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 for a mutation tool. It does not say whether the script is overwritten wholesale, whether omitted fields are preserved, whether project/activity scoping is enforced, 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of padding, but the '[CLOUDTEST]' prefix is pure noise and the brevity comes from under-specification rather than efficiency. It reads like a restated title rather than a usable definition.

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 31-parameter mutation tool with nested object graphs, no annotations, and no output schema, one short sentence is far from sufficient. An agent cannot determine update semantics, required identifiers, or side effects from this definition.

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

Parameters2/5

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

Schema coverage is nominally 94%, but most descriptions are tautological labels ('id':'id', '名称':'名称'), and the description adds nothing about the 31 parameters. It never mentions the two required fields (project_id, tmss_case_uri) or how the deeply nested aw_instance/setup_aw_list/teardown_aw_list structures relate to the script being updated.

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

Purpose3/5

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

The description names a verb (更新/update) and two resources (tmss用例 and 用例脚本), so the basic action is discernible. However, it never distinguishes this from close siblings such as cloudtest__UpdateTestCase or cloudtest__UpdateVersionTestCase, and it does not clarify what 'tmss_case_uri' identifies or what parts of the case versus the script are affected.

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 when-to-use guidance, no preconditions (e.g. that the case must already exist), and no mention of alternatives such as UpdateTestCase for case metadata only. An agent must guess which update tool applies based on the name alone.

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