Skip to main content
Glama

cfw__UpdateAlarmConfig

Updates Cloud Firewall alarm settings, including alarm type, severity, trigger frequency, time period, and enable status, so you can adjust when and how attack, traffic, or EIP alerts are sent.

Instructions

[CFW] 修改告警配置接口

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": {
      "fw_instance_id": "<fw_instance_id>",
      "project_id": "<project_id>"
    },
    "name": "cfw__UpdateAlarmConfig"
  }
}

Input Schema

NameRequiredDescriptionDefault
alarm_idNo告警id
languageNo告警语言
severityNo告警等级
usernameNo用户名称
topic_urnNo告警urn
alarm_typeNo告警类型 0:攻击告警; 1:流量超额预警; 2:EIP未防护告警; 3:威胁情报告警
project_idYes项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
account_nameNo账号名称
enable_statusNo告警状态 0:失效; 1:生效
frequency_timeNo告警频次时间范围
fw_instance_idYes防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
frequency_countNo告警触发频次
alarm_time_periodNo告警周期,0:全天,1:8时到22时
enterprise_project_idNo企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure, and it discloses nothing. It does not say whether the update is partial or full-replacement, what happens to omitted fields, whether elevated permissions are needed, or whether changes are reversible — all critical for a 14-parameter mutation.

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 single phrase is short but that shortness comes from under-specification, not economy. There is no front-loaded action statement, no scope, and no structure to orient the agent.

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 with 14 parameters, no annotations, and no output schema, this description is wholly inadequate. An agent cannot determine update semantics, required permissions, or effects on existing configuration from an eight-character restatement of the name.

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 the schema documents each of the 14 properties in Chinese, including enum-like meanings for alarm_type, enable_status, and alarm_time_period. The description adds no parameter meaning beyond the schema, so the baseline 3 applies.

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?

The description "[CFW] 修改告警配置接口" only restates the tool name (UpdateAlarmConfig) in Chinese plus an "interface" suffix. It confirms the product namespace (CFW) but gives no scope, no affected fields, and no distinction from siblings such as cfw__ShowAlarmConfig or the many other cfw__Update* tools.

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 preconditions, and no pointer to alternatives. An agent must infer from the name alone that this modifies an existing alarm config rather than creating or reading one, and it must guess whether to use cfw__ShowAlarmConfig first.

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