Skip to main content
Glama

hss__UpdateContainerNetworkPolicy

Updates a container cluster network policy in Huawei Cloud HSS by applying the specified policy content to the target cluster.

Instructions

[HSS] 容器集群网络更新配置策略

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": {
      "cluster_id": "<cluster_id>",
      "policy_content": "<policy_content>",
      "policy_id": "<policy_id>",
      "project_id": "<project_id>"
    },
    "name": "hss__UpdateContainerNetworkPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo策略名称
namespaceNo命名空间
policy_idYes策略Id
cluster_idYes集群ID
project_idYes**参数解释**:
policy_contentYes网络策略内容
enterprise_project_idNo**参数解释**:0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/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, yet it says nothing beyond 'update'. It does not state whether policy_content fully replaces the existing spec or merges with it, whether the change is reversible, what permissions are required, or what happens on a partial or invalid nested policy object.

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 short phrase contains no wasted words, but it is a label rather than a front-loaded explanation. Brevity here comes from under-specification, not from disciplined editing.

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?

For a 7-parameter mutation with a deep nested Kubernetes NetworkPolicy object, no annotations and no output schema, the description provides nothing an agent needs to invoke it safely. Callers cannot determine overwrite semantics, validation rules, or failure modes from this text.

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 parameter (cluster_id, policy_id, project_id, policy_content, namespace, name, enterprise_project_id) is documented in the schema, including a full nested NetworkPolicy example. The description adds no meaning beyond that, so the baseline of 3 applies.

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?

The description "[HSS] 容器集群网络更新配置策略" is essentially a Chinese restatement of the tool name UpdateContainerNetworkPolicy. It conveys update plus resource, but adds no scope, no target object detail, and nothing to separate it from the Create/Delete/List siblings beyond the verb already in the name.

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 guidance on when to call this versus hss__CreateContainerNetworkPolicy or hss__UpdatePolicy, and no mention of prerequisites such as needing the policy to already exist or being bound to a specific cluster. The agent must infer all of this from the sibling name list.

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