Skip to main content
Glama

cfw__ListFlowLogs

Retrieve Huawei Cloud firewall flow logs by time range, IP, port, protocol, direction, and log type with pagination filters for auditing and network traffic analysis.

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

Input Schema

NameRequiredDescriptionDefault
appNo规则应用类型包括:“HTTP”,"HTTPS","TLS1",“DNS”,“SSH”,“MYSQL”,“SMTP”,“RDP”,“RDPS”,“VNC”,“POP3”,“IMAP4”,“SMTPS”,“POP3S”,“FTPS”,“ANY”,“BGP”等。
limitYes每页显示个数,范围为1-1024
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下个日期,当是第一页时为空,不是第一页时不为空,其他页可取上一次查询最后一条数据的start_time
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 burden, yet it discloses nothing about behavior. It implies a read-only query via "查询", but says nothing about required permissions, whether pagination is mandatory, how the log_id/offset/next_date continuation works across pages, throttling, or result volume — all critical for a 24-parameter log query.

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 maximally terse and front-loaded with no wasted words, satisfying the conciseness bar trivially. However, the brevity crosses into under-specification rather than efficient structure, since nothing about pagination or scope is surfaced before the agent opens the large schema.

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?

For a tool with 24 parameters, 5 required fields, pagination state parameters, and no annotations or output schema, a one-phrase description is far from complete. The rich schema descriptions partly compensate, but the agent gets no framing on scope, result shape, or pagination expectations for a complex log-query operation.

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 every parameter is already documented in the schema, including the pagination mechanics for log_id, offset, and next_date. The description adds no additional meaning beyond the schema, which is the baseline expectation at this coverage level.

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 gives a specific verb+resource pair ("查询流日志" / query flow logs) and prefixes it with the service tag [CFW], so an agent knows this retrieves firewall flow logs rather than some other log type. It offers no differentiation against the closely named siblings such as vpc__ListFlowLogs, cfw__ListAccessControlLogs, or cfw__ListAttackLogs, leaving that distinction entirely to the schema.

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 alternative-tool guidance at all; the entire description is a purpose phrase. An agent must infer from the parameter list alone that this is for CFW flow logs versus VPC flow logs or CFW access-control/attack logs, which is exactly the decision the description should support.

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