Skip to main content
Glama

anti-ddos__EnableDefensePolicy

Enable DDoS defense for a specified EIP by applying traffic and cleaning thresholds to control protection levels.

Instructions

[ANTI-DDOS] 开通DDoS服务

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_type_id": "<app_type_id>",
      "cleaning_access_pos_id": "<cleaning_access_pos_id>",
      "enable_L7": "<enable_L7>",
      "floating_ip_id": "<floating_ip_id>",
      "http_request_pos_id": "<http_request_pos_id>",
      "project_id": "<project_id>",
      "traffic_pos_id": "<traffic_pos_id>"
    },
    "name": "anti-ddos__EnableDefensePolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
enable_L7Yes是否开启L7层防护,固定值为fasle
project_idYes项目id
app_type_idYes应用类型ID,固定值为0
floating_ip_idYes用户EIP对应的ID
traffic_pos_idYes流量分段ID,取值范围:1:10M;2:30M;3:50M;4:70M;5:100M;6:150M;7:200M;8:250M;9:300M;10:500M;11:800M;88:1000M;99:默认防护。
http_request_pos_idYesHTTP请求数分段ID,固定值为1
cleaning_access_pos_idYes清洗时访问限制分段ID,取值范围:1:10M;2:30M;3:50M;4:70M;5:100M;6:150M;7:200M;8:250M;9:300M;10:500M;11:800M;88:1000M;99:默认防护。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/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 for a 7-required-parameter mutation. It discloses only that something is 'activated', with no information about billing implications, whether the operation is idempotent, what happens if the policy already exists, or what is returned. This is a significant gap for a write operation.

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?

The description is a single short phrase with no wasted words and is front-loaded, but its brevity reflects under-specification rather than disciplined concision. There is no structure to speak of.

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

Completeness1/5

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

For a mutation tool requiring seven parameters, with no annotations and no output schema, a six-character description is completely inadequate. Nothing an agent needs in order to invoke it correctly or safely is present beyond the bare intent.

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%: every parameter, including the enums and the traffic/cleaning bandwidth tiers, is documented in the schema itself. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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?

"[ANTI-DDOS] 开通DDoS服务" names a verb (开通/activate) and a resource (DDoS service), which is marginally more specific than the tool name EnableDefensePolicy. However, it never states what is actually being enabled (protection on a specific EIP) or how this differs from siblings such as anti-ddos__UpdateDDos or anti-ddos__CreateDefaultConfig. The purpose is only broadly inferable.

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 (e.g., the EIP must exist and not already be protected), and no mention of any alternative tool. The agent is left to guess the context in which activation is appropriate.

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