Skip to main content
Glama

hss__AddPolicy

Creates a Huawei Cloud HSS protection policy with a policy name, enabled detection rules, protection actions, and rule configuration for endpoint security management.

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

Input Schema

NameRequiredDescriptionDefault
os_typeNo操作系统类型,包含如下2种。
project_idYes项目ID
policy_nameYes策略名称
feature_listNo检测特性规则列表
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 provided, so the description carries the full burden of behavioral disclosure. It clearly implies a write operation, but it does not mention permission requirements, whether the new policy takes effect immediately, whether it can be modified or removed later, or what the response contains. For an unannotated mutation tool, these are significant gaps.

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?

The description is a single, front-loaded sentence with no wasted words, and the core purpose and fields appear immediately. Its brevity is appropriate, though it leaves important behavioral information unstated.

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?

This is an unannotated mutation tool with five parameters, including an array of nested objects (feature_list) and no output schema. The description identifies the fields but omits how the tool behaves, what happens on failure, permission needs, and how it differs from the closely named AddProtectionPolicy sibling. Given that complexity, it is not complete enough to guide confident selection and invocation.

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 all five parameters including the nested feature_list fields. The description restates the same concepts (policy name, enabled status, protection action, detection rule config) without adding format, constraint, or interaction details beyond the schema; the baseline of 3 is appropriate.

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 clear verb and resource (create a protection policy) and enumerates the main contents: policy name, rule enabled status, protection action, and detection rule configuration. However, it does not distinguish this tool from the very similarly named sibling hss__AddProtectionPolicy, leaving real ambiguity about which one an agent should select.

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 explicit guidance about when to use this tool, when not to use it, or which sibling tool (notably hss__AddProtectionPolicy) is the appropriate alternative. The description only states what the tool creates, not the context that calls for it.

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