Skip to main content
Glama

anti-ddos__UpdateDDos

Updates Anti-DDoS protection policy for a specified EIP, setting traffic thresholds and cleaning access limits. Verify changes via the Anti-DDoS task query API.

Instructions

[ANTI-DDOS] 更新指定EIP的Anti-DDoS防护策略配置。调用成功,只是说明服务节点收到了关闭更新配置请求,操作是否成功需要通过任务查询接口查询该任务的执行状态,具体请参考查询Anti-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__UpdateDDos"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipNoip
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

A3.7/5.0
Behavior4/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 does disclose a genuinely important behavioral trait: a successful response only means the service node acknowledged the request, not that the change took effect, and the caller must poll the Anti-DDoS task status. That is exactly the kind of asynchronous/mutation nuance agents otherwise miss. It does not mention permission requirements or whether unspecified fields are reset, so it stops short of 5.

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 purpose is front-loaded in the first sentence, followed by the essential async caveat. The caveat sentence is somewhat wordy and repeats the 'call success is not operation success' point twice, which keeps it from a 5.

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

Completeness4/5

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

For an 8-parameter mutation tool with no annotations and no output schema, the definition covers the two things an agent most needs: what is mutated and that completion must be verified out-of-band. Remaining gaps (permissions, behavior of omitted optional fields, reversibility) are secondary given the rich schema documentation.

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 coverage is 100%, with per-parameter descriptions including the traffic/cleaning range enumerations and the fixed values for L7, app type, and HTTP request position. The description adds no parameter-level meaning beyond that, so the baseline 3 is appropriate when the schema does the heavy lifting.

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 + resource: updating the Anti-DDoS protection policy configuration for a designated EIP. That is unambiguous about what operation is performed and on what target. It stops short of differentiating itself from siblings such as EnableDefensePolicy or CreateDefaultConfig, so it is clear but not sibling-aware.

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?

There is no explicit statement about when to use this tool versus the sibling configuration tools, but usage is strongly implied by the description naming an update of an existing EIP's policy. The second sentence gives practical follow-up guidance that the caller must consult a task-query interface, which is real usage context even if no alternative tool is named.

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