Skip to main content
Glama

hss__UpdateSecurityGroupPolicy

Updates an HSS security group policy for a Kubernetes cluster namespace, enabling changes to which security groups are applied to workloads.

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>",
      "namespace": "<namespace>",
      "policy_id": "<policy_id>",
      "project_id": "<project_id>",
      "security_groups": "<security_groups>"
    },
    "name": "hss__UpdateSecurityGroupPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
namespaceYes命名空间
policy_idYes安全策略ID
cluster_idYes集群id
project_idYes**参数解释**:
policy_nameNo策略名称
security_groupsYes安全组列表
enterprise_project_idNo**参数解释**:0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/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 entire behavioral burden, and it discloses almost nothing. It does not state whether the supplied security_groups list replaces or appends to the existing groups, whether the update is reversible, what permissions are required, or what happens to fields omitted from the payload. Only the bare fact of mutation is conveyed by 更新.

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 text is a single compact phrase with no padding, so nothing is wasted, but for a 7-parameter mutation tool this level of brevity is under-specification rather than effective conciseness. The bracket-prefixed fragment has no front-loaded statement of effect or preconditions.

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?

Against a tool with 7 parameters, 5 required, a nested array of up to 10000 security groups, no output schema and no annotations, one sentence leaves most agent-relevant context missing. It does not clarify the replace-vs-merge semantics of the security_groups array, which is the single most consequential detail for calling this correctly.

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 the schema already documents every parameter including the nested security_groups objects, giving a baseline of 3. The description adds no semantics beyond the schema - it does not explain the relationship between policy_id and policy_name, nor what security_groups' omission or empty array would mean.

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

Purpose4/5

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

The description gives a specific verb and resource - 更新 (update) applied to 安全组策略 (security group policy) - which is enough to distinguish it from the Create/Delete/List/SyncSecurityGroupPolicy siblings by verb alone. The parenthetical (云原生网络模型) adds a scope qualifier that partially separates it from hss__UpdateContainerNetworkPolicy, though it is unexplained and the reader must guess what 'cloud-native network model' implies.

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 or when-not-to-use guidance, no prerequisites (e.g. that the policy must already exist or which cluster/project context is needed), and no mention of alternatives among the many sibling policy-update tools. The only hint that this modifies an existing policy comes from the verb in 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