Skip to main content
Glama

hss__AssociatePolicyGroup

Deploy an HSS policy group to chosen hosts, pods, workloads, or clusters by project and target policy group ID.

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": {
      "project_id": "<project_id>",
      "target_policy_group_id": "<target_policy_group_id>"
    },
    "name": "hss__AssociatePolicyGroup"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID
deploy_typeNo策略部署类型:host
operate_allNo是否要对全量主机/pod实例/工作负载/集群部署策略,如果为true的话,不需填写host_id_list,如果为false的话,需要填写host_id_list
host_id_listNo需要部署策略组的主机/pod实例/负载/集群ID列表
enterprise_project_idNo主机所属的企业项目ID。0
target_policy_group_idYes部署的目标策略组ID

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 provided, so the description carries the full burden of disclosure. "部署" implies a mutating association, but nothing is said about what state changes on the target hosts, whether the operation is idempotent, whether re-running replaces or duplicates prior bindings, permission requirements, or the all-vs-list semantics when operate_all is involved.

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 label with zero padding, but it is under-specified rather than concise. There is no wasted wording, yet the brevity costs information rather than saving it.

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?

For a six-parameter mutating deployment tool with no annotations and no output schema, a four-character label is far short of adequate. The schema supplies parameter detail, but nothing explains scoping behavior, deployment target semantics, or the effect of an all-targets deployment — the areas where an agent would most likely err.

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 including deploy_type, operate_all, and host_id_list is already documented in the schema, which sets the baseline at 3. The description adds no additional meaning about parameter interplay, such as the mutual exclusivity between operate_all and host_id_list, beyond what the schema states.

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?

"[HSS] 部署策略组" names a verb (部署/deploy) and a resource (策略组/policy group), so the basic action is recoverable. However it does not say what the group is deployed onto (hosts, pods, workloads, clusters) nor how it differs from sibling operations such as hss__CreateSecurityGroupPolicy or hss__SyncSecurityGroupPolicies, so the agent must open the schema to disambiguate.

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 mention of alternatives, and no stated prerequisites. The agent is left to infer that this is the association step after a policy group exists and that hss__ListPolicyGroup supplies valid target IDs.

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