Skip to main content
Glama

cfw__ListAttackLogs

Query Cloud Firewall attack logs using time, IP, port, threat level, action, and protocol filters to investigate security incidents.

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": {
      "end_time": "<end_time>",
      "fw_instance_id": "<fw_instance_id>",
      "limit": "<limit>",
      "project_id": "<project_id>",
      "start_time": "<start_time>"
    },
    "name": "cfw__ListAttackLogs"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNo规则应用类型包括:“HTTP”,"HTTPS","TLS1",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。
levelNo威胁等级,包括CRITICAL、HIGH、MEDIUM、LOW
limitYes每页显示个数,范围为1-1024
actionNo动作包含permit,deny
dst_ipNo目的IP
log_idNo文档ID,第一页为空,其他页不为空,其他页可取上一次查询最后一条数据的log_id
offsetNo偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于0,首页时为空,非首页时不为空
src_ipNo源IP
dst_hostNo目标主机
dst_portNo目的端口号
end_timeYes结束时间,以毫秒为单位的时间戳,如1718936272648
log_typeNo日志类型包括:internet,vpc,nat
protocolNo协议类型,包含TCP, UDP,ICMP,ICMPV6等。
src_portNo源端口号
directionNo方向,包含in2out,out2in
next_dateNo下个日期,当是第一页时为空,不是第一页时不为空,其他页可取上一次查询最后一条数据的event_time
project_idYes项目ID, 可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml)
start_timeYes开始时间,以毫秒为单位的时间戳,如1718936272648
attack_ruleNo入侵事件规则
attack_typeNo入侵事件类型
dst_city_nameNo目的城市名称
src_city_nameNo源城市名称
attack_rule_idNo入侵事件id
fw_instance_idYes防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
dst_region_nameNo目的region名称
src_region_nameNo源region名称
dst_province_nameNo目的省份名称
src_province_nameNo源省份名称
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

C2.8/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 disclosure burden, yet it provides none. The word "查询" weakly implies a read-only listing, but there is nothing about permissions, result ordering, page-size caps, or how the log_id/next_date cursor chain must be used across pages.

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 single phrase is front-loaded and contains no filler, but for a 29-parameter query tool this brevity is under-specification rather than efficiency. It leaves no room for the pagination or scoping context an agent needs.

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

Completeness2/5

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

With 29 parameters, no annotations, and no output schema, the description should establish pagination behavior, expected result shape, and filtering intent. The rich schema partially compensates, but the definition itself leaves the agent without behavioral context for a complex, required-parameter-heavy query.

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 each parameter, including the cursor fields log_id, offset, and next_date, is documented in the schema. The description adds no parameter meaning beyond that, so the baseline of 3 for a fully documented schema applies.

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 phrase "查询攻击日志" (query attack logs) pairs a specific verb with a specific resource, and the resource name itself separates it from siblings such as cfw__ListAccessControlLogs and cfw__ListFlowLogs. It stops short of explicitly stating how it differs from those siblings, so it is clear but not fully differentiated.

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 guidance on when to choose this tool over the access-control or flow-log siblings, and no mention of prerequisites, filters, or pagination workflow. The agent must infer everything from the 29-parameter schema alone.

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