Skip to main content
Glama

bcs__BatchRemovePeersFromChannel

Batch removes specified peer nodes from a Huawei Cloud Blockchain Service channel for an organization, supporting node withdrawal when the channel still has other peers.

Instructions

[BCS] 该接口用于BCS某个组织中的节点退出某通道。当节点为通道中最后一个节点时,需要使用组织退通道的接口来将通道中的最后一个节点退出。

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": {
      "blockchain_id": "<blockchain_id>",
      "channel_id": "<channel_id>",
      "org_name": "<org_name>",
      "peers": "<peers>",
      "project_id": "<project_id>"
    },
    "name": "bcs__BatchRemovePeersFromChannel"
  }
}

Input Schema

NameRequiredDescriptionDefault
peersYes要退出的节点个数。取值范围(0, 组织中节点总数)
org_nameYes组织名称。仅可输入一个组织名称
channel_idYes区块链通道名称。可调用“查询实例信息”接口获取,接口返回的“channels”中的name字段值
project_idYes租户从IAM申请到的projectid,一般为32位字符串。
blockchain_idYes区块链服务id。可调用“查询服务实例列表”接口获取ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/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. It does add the important edge-case behavior around the last node in a channel, which is genuine value beyond the schema. However, it says nothing about permissions, whether removal is immediate or reversible, or what happens to the channel when removal fails.

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?

Two sentences, with the primary purpose stated first and the edge-case routing second. No filler or repeated name restatement. It is compact enough to scan quickly, though the second sentence could be tightened.

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 a mutation tool with five required parameters, no annotations, and no output schema, the description covers purpose and the main exception but leaves the agent without confirmation of return behavior or side effects. Since the schema fully documents every parameter, the remaining gap is moderate rather than severe.

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 the schema already documents all five parameters, including how to obtain blockchain_id, channel_id, and project_id. The description adds no syntax or interpretation guidance beyond that baseline. It notably does not clarify that 'peers' is a numeric count rather than a list of node identifiers, which is the one ambiguity the schema alone leaves open.

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 names a specific verb and resource in its opening clause: nodes in a BCS organization exiting a channel, matching the BatchRemovePeersFromChannel operation. It also distinguishes itself from the organization-level removal sibling by explaining that the last remaining node must be removed via the org-exit interface. It loses a point only because the 'batch' wording is never reconciled with the integer 'peers' count parameter.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The second sentence gives an explicit exclusion condition: when the node being removed is the last one in the channel, this interface is not the right one and the org-exit interface should be used instead. That is a real when-not rule an agent can act on. It does not name the specific sibling tool or state prerequisites, so it falls short of the top score.

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