Skip to main content
Glama

cfw__ListAccessControlLogs

Query Huawei Cloud CFW access control logs by time range, firewall instance, rule, IP, port, protocol, and action to audit traffic decisions and troubleshoot policy behavior.

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__ListAccessControlLogs"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNo规则应用类型包括:“HTTP”,"HTTPS","TLS1",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。
limitYes每页显示个数,范围为1-1024
actionNo动作包含permit,deny
dst_ipNo目的IP
log_idNo文档ID,第一页为空,其他页不为空,其他页可取上一次查询最后一条数据的log_id
offsetNo偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于0,首页时为空,非首页时不为空
src_ipNo源IP
rule_idNo规则id,可通过[查询防护规则接口](ListAclRules.xml)查询获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。
dst_hostNo目标主机
dst_portNo目的端口
end_timeYes结束时间,以毫秒为单位的时间戳,如1718936272648
log_typeNo日志类型包括:internet,vpc,nat
protocolNo协议类型,包含TCP, UDP,ICMP,ICMPV6等。
src_portNo源端口
next_dateNo下个日期,当是第一页时为空,不是第一页时不为空,其他页可取上一次查询最后一条数据的start_time
rule_nameNo规则名称
project_idYes项目ID, 可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml)
start_timeYes开始时间,以毫秒为单位的时间戳,如1718936272648
dst_city_nameNo目的城市名称
src_city_nameNo源城市名称
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 transparency burden and delivers almost none of it. It does not state that this is a read-only listing operation, does not explain the pagination model despite log_id/offset/next_date cursor fields, and says nothing about result volume, ordering, or rate limits.

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 free of waste, but at this length conciseness shades into under-specification for a tool with 26 parameters. There is no structure to organize scope, filtering, or pagination guidance.

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?

This is a complex, 26-parameter log-query tool with cursor-based pagination, no annotations, and no output schema, yet the description is a five-word label. An agent would have to derive all calling behavior from the schema, and the tricky multi-page cursor semantics are not addressed.

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%, so all 26 parameters are already documented in structured form, which sets the baseline at 3. The description adds no extra meaning about filtering behavior (for example, how time range interacts with log_id/next_date cursors), so it does not exceed that baseline.

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 pair, "查询访问控制日志" (query access control logs), so the agent knows it retrieves ACL log entries. It does not distinguish this tool from close siblings such as cfw__ListAttackLogs or cfw__ListFlowLogs, all of which are also log-listing 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, when-not-to-use, or prerequisite guidance at all. The sibling set contains obvious alternatives (ListAttackLogs, ListFlowLogs) but the description gives no basis for choosing between them, leaving the agent to infer selection from the name 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