Skip to main content
Glama

cfw__CreateTag

Creates key-value tags for a Huawei Cloud firewall instance using its firewall ID and project ID, helping organize and identify firewall resources.

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": {
      "fw_instance_id": "<fw_instance_id>",
      "project_id": "<project_id>"
    },
    "name": "cfw__CreateTag"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo创建防火墙标签列表
project_idYes项目ID, 可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml)
fw_instance_idYes防火墙id,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.7/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full burden and delivers nothing. It does not state whether tags are merged or replaced, how duplicate keys are handled, whether a fw_instance_id must exist, what permissions are needed, or whether the call is idempotent.

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

Conciseness2/5

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

A single four-character phrase with no structure or front-loaded detail. The problem is under-specification rather than verbosity, so brevity earns no credit here.

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

Completeness1/5

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

This is a mutating create operation with no annotations, no output schema, and a description that conveys nothing about behavior, side effects, or results. For a write tool, the definition is completely inadequate to guide correct invocation.

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%, with all three properties (tags, project_id, fw_instance_id) documented in the schema including key/value semantics and ID acquisition links. The description adds no meaning over the schema, but the schema-driven baseline of 3 applies.

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

Purpose2/5

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

"[CFW] 创建标签" only restates the tool name CreateTag with a product prefix. It never says these are firewall tags attached to a specific firewall instance, nor how this differs from cfw__DeleteTag or the many other CreateTag siblings. An agent learns nothing beyond the name itself.

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

Usage Guidelines1/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 guidance whatsoever. Nothing tells the agent when to pick this over cfw__DeleteTag, vpc__CreateFirewallTag, or any other tag-creation tool in the sibling list.

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