Skip to main content
Glama

waf__ListBandwidthTimeline

Queries Web Application Firewall bandwidth statistics for a specified time range, optionally filtered by protected domain or engine instance, and returns average or peak throughput data in bit/s.

Instructions

[WAF] 查询安全统计带宽数据,统计的带宽数据为平均值,单位为bit/s。

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": {
      "from": "<from>",
      "project_id": "<project_id>",
      "to": "<to>"
    },
    "name": "waf__ListBandwidthTimeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes查询的带宽统计数据的结束时间(13位毫秒时间戳),需要和from同时使用
fromYes查询的带宽统计数据的起始时间(13位毫秒时间戳),需要和to同时使用
hostsNo域名id,用于查询指定的防护域名在from到to这段时间内的带宽数据。通过查询云模式防护域名列表(ListHost)获取域名id或者通过独享模式域名列表(ListPremiumHost)获取域名id
group_byNo展示维度,按天展示时传"DAY";默认不传,按照分钟展示。
instancesNo引擎实例id,用于查询指定的独享引擎实例所防护的域名在from到to这段时间内的带宽数据。
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
display_optionNo发送/接受字节数,查看峰值请输入1,查看平均值请输入0
enterprise_project_idNo您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose genuinely useful semantics that the name alone does not: the metric is an average and the unit is bit/s. However, it omits return shape, whether results are per-host/per-instance buckets, and any time-range or rate limits. It also asserts the data is 'averages' while the schema exposes display_option=1 for peaks, creating a mild internal inconsistency an agent must reconcile.

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

Conciseness5/5

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

A single front-loaded sentence of two clauses: the resource first, then the metric's unit and averaging behavior. Zero filler and nothing misplaced.

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

Completeness3/5

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

For an 8-parameter, read-only metrics query with 100% schema coverage and no output schema, the schema does most of the work, so the description is serviceable. It is still thin on the things the schema cannot express: return structure, granularity defaults, and any limits on the from/to range.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description adds a bit beyond that by pinning down the metric's unit and averaging semantics, which clarifies what display_option is actually choosing between. It still adds no per-parameter meaning of its own beyond the schema.

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: 查询安全统计带宽数据, and further qualifies the metric as an average in bit/s. This distinguishes it in kind from sibling time-series tools such as ListQpsTimeline and ListRequestTimeline, though it never names those alternatives explicitly.

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: it does not say to pick this over ListQpsTimeline or ListRequestTimeline, does not state prerequisites (obtaining host/instance IDs), and does not mention constraints on the from/to window. The only usage context comes from the schema's own parameter descriptions.

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