Skip to main content
Glama

coc__ExecuteDocument

Executes a Huawei Cloud COC custom job by document ID, letting you pass global parameters, target instances, version, and tags to run automated operations.

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": {
      "document_id": "<document_id>"
    },
    "name": "coc__ExecuteDocument"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetsNo与target_parameter_name搭配使用。选择实例化target_parameter_name参数的方式。
versionNo作业版本号,若不传则默认为最新版本
sys_tagsNo系统标签列表
parametersNo全局参数
descriptionNo执行描述
document_idYes
document_typeNo执行的作业类型
target_parameter_nameNo速率控制模式下,批量执行对象的参数名

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.5/5.0
Behavior1/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, and it provides nothing: no mention of side effects, permissions/auth requirements, risk checks (coc__CheckScriptRisk exists), rate-control behavior implied by target_parameter_name, or whether execution is async. A one-line restatement of the name leaves an agent with zero behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

It is short, but that shortness is under-specification rather than conciseness: a single terse Chinese phrase with no front-loaded detail about scope, required inputs, or effects.

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

Completeness1/5

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

An 8-parameter mutation/execution tool with no annotations, no output schema, and no description of what happens on execution. The description leaves nearly every aspect (effects, permissions, return value, targeting semantics) undocumented.

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 description coverage is high (88%), which sets a baseline of 3, but the description adds nothing to it. Notably it does not explain the interaction between targets, target_parameter_name, and rate-control mode, which is the most complex semantic in the tool; it also does not clarify document_id semantics (a script vs private/public document).

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?

"执行自定义作业" restates the title/tool name (ExecuteDocument = execute a document/script job). It gives no specifics about what a "自定义作业" is, what it returns, or how it differs from siblings like coc__ExecuteScript or coc__ExecutePublicScript, which also execute scripts.

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

Usage Guidelines1/5

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

No when-to-use guidance at all. The description never says when to call this versus coc__ExecuteScript, coc__ExecutePublicScript, or coc__AcceptScript — a real ambiguity given several execution siblings exist.

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