Skip to main content
Glama

functiongraph__UpdateWorkFlow

Update a Huawei Cloud FunctionGraph workflow's metadata and configuration, including name, description, states, functions, retries, triggers, constants, and execution mode.

Instructions

[FUNCTIONGRAPH] 修改指定函数流实例的元数据

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": {
      "constants": "<constants>",
      "functions": "<functions>",
      "name": "<name>",
      "project_id": "<project_id>",
      "retries": "<retries>",
      "start": "<start>",
      "states": "<states>",
      "workflow_id": "<workflow_id>"
    },
    "name": "functiongraph__UpdateWorkFlow"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo函数流模式,当前支持两种模式NORMAL
nameYes函数流名称
startYes流程开始节点ID
statesYes函数流节点清单,定义参考SleepState和OperationState
retriesYes重试策略清单
triggersNo触发器列表
constantsYes函数流中的常量
functionsYes函数列表
project_idYes项目ID。
descriptionNo函数流描述
workflow_idYes函数工作流ID
express_configNo快速函数流模式配置,当mode为EXPRESS时需要设置
enterprise_project_idNo企业项目ID
enable_stream_responseNo是否返回流数据

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/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 burden and discloses almost nothing: it does not say whether this is a full replacement (PUT-style) or a partial patch, what happens to omitted optional fields (triggers, retries, express_config), what happens to a running flow, or what permissions are needed. For a mutation over a 14-parameter graph definition, this is a large gap.

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 single sentence is trivially concise and front-loads the verb, but its brevity reflects under-specification rather than efficiency. There is no structure to help an agent understand a 14-parameter, nested-object payload.

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?

Given 14 parameters, 8 required, deeply nested state/action/trigger objects, no annotations, and no output schema, one short sentence is completely inadequate. The agent receives no guidance on how to construct the replacement definition or what the call returns.

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 every parameter is already documented in the schema, which sets the baseline at 3. The description adds only the word '元数据', which does not clarify any specific parameter and arguably conflicts with the required body. No extra meaning is contributed.

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 names a specific verb and resource (modify a function-flow instance), so the general intent is clear. However, it frames the operation as changing '元数据' (metadata), while the schema requires the full graph definition (states, functions, retries, start, transitions). That label understates the operation and can mislead an agent into thinking this is a lightweight property edit. No sibling (ShowWorkFlow, StopWorkFlow, RetryWorkFlow) is named for contrast.

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 prerequisite (e.g. workflow must exist, must be stopped first), and no alternative named. The only hint is the verb 'modify', which the agent must infer means replacing an existing flow's definition rather than creating, retrying, or stopping one.

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