Skip to main content
Glama

hss__UpdatePolicy

Updates an HSS protection policy's name, enabled detection rules, protection actions, and rule settings, then applies the revised policy to associated servers.

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": {
      "feature_list": "<feature_list>",
      "policy_id": "<policy_id>",
      "policy_name": "<policy_name>",
      "project_id": "<project_id>"
    },
    "name": "hss__UpdatePolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
policy_idYes策略ID
project_idYes项目ID
policy_nameYes策略名称
feature_listYes检测特性规则列表
enterprise_project_idNo企业项目ID,查询所有企业项目时填写:all_granted_eps0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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. It does disclose one important side effect — the updated policy is pushed down to every server currently using it — but says nothing about required permissions, whether existing rules not listed in feature_list are preserved or dropped, or whether the change is reversible.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with the [HSS] prefix, the verb+resource front-loaded, and the field list following. Nothing is wasted, though the sentence is long and could be broken to surface the server-push side effect more prominently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the definition covers the what and one behavioral consequence, but leaves out the critical operational details: permission requirements, effect on servers during rollout, and what happens to omitted rules. Adequate but with clear gaps.

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 baseline is 3. The description does echo the semantics of policy_name and the feature_list fields (enabled, protective_action, feature_configure), which adds mild confirmation, but it never mentions policy_id, project_id, or enterprise_project_id, and adds no format or constraint detail beyond the schema.

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 names a specific verb and resource (修改防护策略) and enumerates the mutable content: policy name, rule enabled state, protection action, and detection rule configuration. It is clear what the tool does, but it never distinguishes itself from the very similarly named sibling hss__UpdateProtectionPolicy, which an agent could easily confuse it with.

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 reference to any alternative among the many policy-mutation siblings (UpdateProtectionPolicy, ChangeAntivirusPolicy, etc.). The agent must infer selection purely from the tool name, which is ambiguous in this catalog.

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