Skip to main content
Glama

cfw__ListServiceItems

Lists service group members in Huawei Cloud Firewall, supporting pagination and keyword filtering to inspect group contents.

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": {
      "limit": "<limit>",
      "offset": "<offset>",
      "project_id": "<project_id>",
      "set_id": "<set_id>"
    },
    "name": "cfw__ListServiceItems"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes每页显示个数,范围为1-1024
offsetYes偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
set_idYes服务组id,可通过[获取服务组列表接口](ListServiceSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获得。
key_wordNo查询字段,可为服务组成员名称或服务组成员描述的一部分。
project_idYes项目ID, 可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml)
fw_instance_idNo防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
enterprise_project_idNo企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
query_service_set_typeNo查询服务组类型,0表示自定义服务组,1表示预定义服务组。仅当set_id为预定义服务组id时生效

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/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 of behavioral disclosure, yet it adds nothing about read-only semantics, required permissions, pagination behavior, maximum result sizes, or what an empty result means. For a list operation over 8 parameters this is a substantial gap.

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

Conciseness4/5

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

A single short phrase with zero padding, and the resource is front-loaded. It is efficiently written, though its brevity stems from omission rather than disciplined editing.

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 8 parameters, 4 of them required, no annotations, and no output schema, the description is far too thin to guide correct invocation. It does not explain how set_id scoping interacts with query_service_set_type or what the returned member records contain.

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 including set_id, key_word, and query_service_set_type is already explained in the schema. The description adds no filtering or format detail beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase "查询服务组成员列表" names a verb (query) and a resource (service group members), so the basic operation is identifiable. However, it gives no differentiation from closely related siblings such as ListServiceSetDetail or ListServiceSets, leaving the agent to infer whether this returns members of one set or spans sets.

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 mention of alternatives. The agent must discover from the schema alone that set_id is required and that this is a scoped, paginated listing rather than a full enumeration.

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