Skip to main content
Glama

config__CountResourcesByTag

Counts Huawei Cloud Config resources of a specified type that match tag filters, enabling tag-based inventory and aggregation queries.

Instructions

[CONFIG] 使用标签过滤实例,标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力。注意:tags, tags_any, not_tags, not_tags_any等字段支持的tag的数量。

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": {
      "resource_type": "<resource_type>"
    },
    "name": "config__CountResourcesByTag"
  }
}

Input Schema

NameRequiredDescriptionDefault
resource_typeYes资源类型

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, but it discloses no return shape, permissions, or scope limits. Worse, it discusses 'tags, tags_any, not_tags, not_tags_any' field behavior that does not exist in this tool's single-parameter schema, actively misdirecting the agent about how the tool behaves.

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?

The text is one run-on sentence that is largely irrelevant platform-internal rationale ('标签管理服务需要提供...需要各服务提供查询能力'). Nothing is front-loaded about what the tool does or returns, and the most prominent content, the tag-count note, does not apply here.

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?

This is a simple one-parameter count tool, so little is needed, but the description still omits the essential fact that the result is a count for the given config resource type. It also points at non-existent tag filter fields, leaving the agent less informed than the schema alone.

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

Parameters2/5

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

Schema description coverage is 100%, so the resource_type enum is already fully documented by the schema. The description adds no meaning for resource_type, and its tag-filter remarks reference parameters that are absent, creating confusion rather than clarity beyond the schema.

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?

The name indicates counting resources by tag, but the description reads as internal platform boilerplate: '标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力'. It never states plainly that the tool returns a count, nor which resource population is counted. '汇总' hints at aggregation, but the agent must infer the actual verb+result from the name alone.

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 sibling routing guidance. Nearby tools such as config__ListResourcesByTag, config__CountAllResources, and config__CountTrackedResources are not mentioned, so the agent cannot tell why one would count by tag versus list by tag versus count all. Usage is only implied by the phrase '按标签过滤'.

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