Skip to main content
Glama

coc__UpdateDocument

Updates an existing Huawei Cloud COC custom job by document ID, letting you revise its name, DSL content, description, and risk level.

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

Input Schema

NameRequiredDescriptionDefault
nameYes作业名称
contentYes作业内容,DSL语句,最大长度64KB
risk_levelNo风险等级
descriptionNo描述
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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 beyond the fact of mutation. It does not say whether the update replaces or merges fields, whether the document must exist first, what permissions are needed, or how risk_level affects execution.

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 front-loaded phrase with zero waste, which is structurally sound. The brevity is not earned, though, since it reflects under-specification rather than disciplined compression.

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?

This is a mutation tool with five parameters, no annotations, and no output schema, so the description should explain semantics and effects. Instead it says nothing about the required document_id, content format expectations, or the outcome of a successful update, leaving the agent under-informed.

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 80%, so the schema already documents name, content (DSL, 64KB cap), description, and risk_level; the description adds nothing to that. The one gap, document_id, is only implied by the path location in the schema and is not clarified in the description. Baseline 3 is appropriate.

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?

"修改自定义作业" gives a verb (modify) and a resource (custom job/document), so an agent can tell this is an update operation on a job definition. However, it is essentially a restatement of the tool name UpdateDocument, and it offers no differentiation from the many other Update* siblings (UpdateScript, UpdateResourceTags, UpdateScheduledTask) or from CreateDocument/DeleteDocument.

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 pointer to alternatives. The agent must infer from the name alone whether this is the right tool for changing a job versus UpdateScript or UpdateScheduledTask.

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