Skip to main content
Glama

aad__UpdatePolicy

Updates an Advanced Anti-DDoS policy by modifying protection rules, including TCP/UDP/ICMP protocol blocking or rate-limiting, cleaning thresholds, names, and descriptions.

Instructions

[AAD] 更新策略

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>"
    },
    "name": "aad__UpdatePolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
tcpNotcp协议设置。block:封禁,unblock:不封禁,limiting:限速
udpNoudp协议设置。block:封禁,unblock:不封禁,limiting:限速
icmpNoicmp协议设置。block:封禁,unblock:不封禁,limiting:限速
nameNo策略名
otherNoother协议设置。block:封禁,unblock:不封禁,limiting:限速
policy_idYes策略id
thresholdNo清洗阈值
descriptionNo描述
tcp_traffic_limitingNotcp自定义限速值,tcp取值limiting情况下,如果该值为空表示不限速
udp_traffic_limitingNoudp自定义限速值,udp取值limiting情况下,如果该值为空表示不限速
icmp_traffic_limitingNoicmp自定义限速值,icmp取值limiting情况下,如果该值为空表示不限速
other_traffic_limitingNoother自定义限速值,other取值limiting情况下,如果该值为空表示不限速
tcp_fragment_rate_limitingNotcp分片自定义限速值,tcp取值limiting情况下,如果该值为空表示不限速
udp_fragment_rate_limitingNoudp分片自定义限速值,udp取值limiting情况下,如果该值为空表示不限速

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.7/5.0
Behavior1/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 mutation tool, yet it discloses nothing: not whether this is a full replace or a partial patch (only policy_id is required, which makes the partial-update semantics critical), not whether changes are reversible, and not what permissions or account state are needed. It adds zero context beyond the title.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

The description is a single four-character phrase, technically free of waste but underspecified rather than concise. It is not structured, not front-loaded with any actionable information, and leaves the agent with less than the tool's title already implies.

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 14-parameter mutation tool with no annotations and no output schema, the definition is wholly inadequate. The most consequential behavior for a partial-update API, namely which omitted fields are preserved versus cleared, is absent, as is any note on the meaning of the policy_id path parameter range.

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%, with every one of the 14 parameters documented inline including enum meanings (block/unblock/limiting) and the conditional relationship between *:"limiting" and the corresponding *_traffic_limiting fields. Per the high-coverage baseline the schema does the work here, and the description adds nothing further, so 3 rather than higher.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"[AAD] 更新策略" only restates the tool name (UpdatePolicy) as a verb+resource phrase. It gives no indication of what a policy contains, what scope of update is allowed, or how it differs from siblings like aad__CreatePolicy, aad__DeletePolicy, or aad__UpdatePackageName. An agent learns nothing it could not infer from the name alone.

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

Usage Guidelines1/5

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

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites, and no reference to any alternative tool. With Create/Delete/Show/List policy siblings present, the absence of any routing cue leaves selection entirely to inference from the name.

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