Skip to main content
Glama

anti-ddos__CreateDefaultConfig

Configures a default Anti-DDoS protection policy so newly purchased resources automatically apply those protection settings when protection is enabled.

Instructions

[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>",
      "http_request_pos_id": "<http_request_pos_id>",
      "project_id": "<project_id>",
      "traffic_pos_id": "<traffic_pos_id>"
    },
    "name": "anti-ddos__CreateDefaultConfig"
  }
}

Input Schema

NameRequiredDescriptionDefault
enable_L7Yes是否开启L7层防护,固定值为fasle
project_idYes项目id
app_type_idYes应用类型ID,固定值为0
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.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does contribute one genuinely useful behavioral fact: the policy applies only to newly purchased resources at the moment protection is auto-enabled, not retroactively to existing ones. It says nothing about permissions required, whether an existing default is overwritten, idempotency, or the response shape, which is a meaningful gap for an unannotated 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the action and followed by the consequence; nothing is redundant. The only waste is the '[ANTI-DDOS]' service tag prefix, which adds no selection value.

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?

With all six required parameters fully documented in the schema and no output schema to explain, the description is complete enough to call the tool correctly. What remains thin is behavioral: overwrite semantics, required authorization, and whether one default exists per project, none of which the description or annotations cover.

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% and every parameter is required and documented, including enum ranges for traffic_pos_id and cleaning_access_pos_id. The description adds no parameter-level guidance beyond that, so the schema baseline of 3 applies — notably it never mentions that several fields (app_type_id, http_request_pos_id, enable_L7) have fixed values.

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?

States a specific resource ('默认防护策略') and the operation (配置), plus the downstream effect that newly purchased resources inherit this policy on auto-enable. An agent can tell this is the create/configure counterpart to the sibling ShowDefaultConfig/DeleteDefaultConfig, though the description itself never names or distinguishes those siblings.

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 rather than stated: the second sentence tells you this is the template applied to new resources, which hints at when to use it (setting a baseline before provisioning). There is no explicit when-not guidance and no pointer to ShowDefaultConfig for reading or DeleteDefaultConfig for removal.

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