Skip to main content
Glama

hss__DeletePolicy

Deletes an unused Host Security Service (HSS) protection policy by policy ID and project ID; active policies cannot be deleted.

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_id": "<policy_id>",
      "project_id": "<project_id>"
    },
    "name": "hss__DeletePolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
policy_idYes策略ID
project_idYes项目ID
enterprise_project_idNo企业项目ID,查询所有企业项目时填写:all_granted_eps0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full disclosure burden. It does add one genuinely non-obvious behavioral fact: deletion fails for policies still in use. However, it says nothing about whether the delete is reversible, what happens to the policy's associations (policy groups, hosts, containers), or what permissions are required, all of which matter for a destructive tool with zero annotation coverage.

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 compact sentence with the destructive action and the key constraint front-loaded, so an agent reads the important part first. The only minor waste is the '删除防护策略:删除策略' restatement, which duplicates the name without adding information.

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 three-parameter mutation with no output schema and no annotations, the definition covers the essential precondition but leaves out side effects and recovery behavior. The schema already carries parameter detail, so the main remaining gap is the absence of any note on what happens to dependent resources after deletion.

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%: policy_id, project_id, and enterprise_project_id are each documented, including the default value and the all_granted_eps convention. The description adds no meaning beyond the schema, which is acceptable here but earns only the baseline.

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 states a specific verb and resource: delete a protection policy ([HSS] 删除防护策略). It is clear what the tool does, but it does not distinguish itself from close siblings such as hss__DeleteProtectionPolicy or the many other typed Delete*Policy tools, and it does not explain which kind of protection policy this generic entry targets.

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?

The only guidance beyond the action itself is the precondition that policies already in use cannot be deleted, which is useful but framed as a failure condition rather than a rule for choosing this tool. There is no statement of when to pick this generic delete over the more specific Delete*Policy siblings, and no prerequisites or alternatives are offered.

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