Skip to main content
Glama

coc__UpdateScript

Modifies a custom job script by UUID, enabling updates to script content, parameters, version, risk level, and approval settings in Huawei Cloud COC.

Instructions

[COC] 修改作业脚本:自定义脚本

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": {
      "content": "<content>",
      "description": "<description>",
      "script_uuid": "<script_uuid>"
    },
    "name": "coc__UpdateScript"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes脚本内容
propertiesNo脚本标签:风险等级risk_level(取值范围:LOW/MEDIUM/HIGH)、审批人reviewer、脚本解释器interpreter等
descriptionYes脚本描述
script_uuidYes脚本uuid
script_paramsNo脚本入参

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry behavioral disclosure. It implies a mutation but does not state side effects, permissions, approval requirements, reversibility, or how nested properties such as reviewers and risk_level affect the update.

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 description is a single front-loaded sentence with no wasted wording. However, it is very terse for a five-parameter nested mutation and provides no structural cues for usage constraints or prerequisites.

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 mutation tool with no annotations, no output schema, and a nested five-parameter schema, the description only names the action. It does not cover prerequisites, approval or risk-level semantics, side effects, or expected outcomes, leaving it incomplete for safe invocation.

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 100%, so content, properties, description, script_uuid, and script_params are already documented in the schema. The description adds no parameter-level meaning beyond the phrase 自定义脚本, so the baseline of 3 is appropriate.

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 states a specific verb-resource pair: 修改 (modify/update) 作业脚本 (job script), scoped to 自定义脚本 (custom script). This distinguishes it by action from CreateScript, DeleteScript, GetScript, and ExecuteScript, though it does not explicitly name those siblings or clarify edge cases.

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?

No when-to-use guidance, prerequisites, or alternatives are provided. The verb 修改 implies editing an existing script, but the description does not say when to choose this over CreateScript, GetScript, or ExecuteScript, nor what must exist first.

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