Skip to main content
Glama

workspace__CreateScript

Creates a POWERSHELL, BAT, or SHELL script in a specified Huawei Cloud Workspace project by supplying its name, content, type, and project ID.

Instructions

[WORKSPACE] 新增脚本。

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>",
      "name": "<name>",
      "project_id": "<project_id>",
      "type": "<type>"
    },
    "name": "workspace__CreateScript"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes脚本名称。
typeYes脚本类型:POWERSHELL/BAT/SHELL。
contentYes脚本内容。
versionNo脚本版本。
project_idYes项目ID。
descriptionNo描述。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/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 discloses nothing about write semantics, required permissions, whether names must be unique, or whether a created script is immediately executable. Only the bare fact of creation is conveyed.

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?

It is a single short sentence with no wasted words, but the brevity comes from under-specification rather than disciplined editing; there is no structure to front-load.

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 create mutation with four required parameters and no annotations or output schema, the description omits permissions, side effects, and naming constraints that an agent would need before invoking it confidently.

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% and each of the six parameters carries its own description and examples, so the schema does the heavy lifting. The description adds no meaning beyond it, which is the baseline expectation for fully-documented schemas.

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

Purpose2/5

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

"[WORKSPACE] 新增脚本。" only restates the tool name (CreateScript → add script) with no verb nuance, no scope, and no distinction from siblings such as workspace__UpdateScript or the other CreateScript tools in the catalog.

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 mention of prerequisites, and no routing to alternatives like UpdateScript for existing scripts. The agent must infer usage entirely from the name.

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