Skip to main content
Glama

coc__CreateScript

Creates custom shell, Python, or BAT job scripts in Huawei Cloud COC with parameters, risk levels, and optional approval reviewers for controlled automation.

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>",
      "name": "<name>",
      "properties": "<properties>",
      "type": "<type>"
    },
    "name": "coc__CreateScript"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes脚本名称:只能包含中文、英文、数字、下划线
typeYes脚本类型:
contentYes脚本内容
propertiesYes脚本标签:风险等级risk_level(取值范围:LOW/MEDIUM/HIGH)、审批人reviewer、脚本解释器interpreter等
descriptionYes脚本描述
script_paramsNo脚本入参
enterprise_project_idNo企业项目ID,默认为:00

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/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 says nothing beyond the bare verb. It does not disclose that creation implies a write operation with possible approval gating (reviewers, risk_level, notification protocol) or what permissions are required; only the name itself implies mutation.

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 short phrase with zero filler and the verb front-loaded. It is concise to a fault — the brevity is under-specification rather than efficient communication — but no sentence is wasted.

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?

The tool has 7 parameters, 5 required, nested approval-reviewer objects, enums, and no output schema or annotations. For that complexity, a one-phrase description leaves critical context uncovered, including the approval workflow implied by reviewers and risk_level and the consequences of creating a script.

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 name, type, content, description, and the nested properties/script_params fields are already documented in the schema. The description adds no parameter meaning of its own, so the baseline of 3 applies.

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 states a verb plus resource ("创建作业脚本" = create job script) with a qualifier ("自定义脚本"), so an agent can tell it creates a custom script. However, it offers nothing to distinguish it from siblings such as coc__UpdateScript, coc__DeleteScript, or dlf__CreateScript, and the qualifier is too terse to explain what "custom" means here.

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 prerequisites, and no named alternative. Nothing tells an agent whether this is for ad-hoc scripts versus public scripts, or whether an approval step must precede or follow creation, even though the schema hints at a review workflow.

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