Skip to main content
Glama

hss__SwitchRasp

Enable or disable HSS application protection for selected servers, apply or clear a protection policy, and update RASP ports per host.

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": {
      "app_status": "<app_status>",
      "host_id_list": "<host_id_list>",
      "project_id": "<project_id>"
    },
    "name": "hss__SwitchRasp"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_typeNo应用防护类型java
policy_idNo防护策略ID
app_statusYes应用防护开关状态
project_idYes项目ID
auto_attachNo动态防护开关状态
host_id_listYesHostId list
rasp_port_listNoRASP端口列表,列表元素与host_id_list对应,app_status为true时支持生效
enterprise_project_idNo企业项目ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose one important behavioral trait: 关闭防护则清空策略 (disabling protection clears the policy), which warns of a destructive side effect. It also implies ports are only meaningful when enabling. It says nothing about required permissions, whether the change is reversible, or what happens when policy_id is omitted — meaningful gaps for a mutation tool.

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 run-on clause chain of comma-separated actions with no sentence structure or prioritization beyond the leading enable/disable verb. There is little wasted wording, but the flat list makes it harder to extract the key side-effect warning, which is buried at the end.

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 an 8-parameter write tool with no annotations and no output schema, the description covers the main flow and one critical side effect. It leaves out the conditional logic (e.g. whether policy_id is required when enabling), permission requirements, and the result of the call, so it is adequate but not complete.

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 one of the 8 parameters is already documented in the schema, which sets the baseline at 3. The description adds the relationship that the port list is applied as part of the delivery and that disabling clears the policy, but it does not explain app_type, auto_attach, or the conditional dependency between app_status and policy_id beyond what the schema states.

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 opens with a specific verb pair and resource (开启/关闭应用防护) and enumerates the associated actions: selecting a policy, selecting hosts, delivering the policy, and optionally updating ports. An agent can tell this is the RASP switch tool. It does not, however, differentiate itself from the similarly named sibling hss__SetRaspSwitch, leaving a real ambiguity about which switch tool to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the enumeration of what can be done (enable/disable, choose policy, choose servers, set ports), and the closing clause notes that disabling clears the policy. There is no explicit when-to-use vs. when-to-use-another-tool guidance and no stated prerequisites, so an agent must infer the selection criteria relative to hss__SetRaspSwitch or hss__ShowAppRaspSwitchStatus.

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