Skip to main content
Glama

rms__CountAllResources

Count resources in a Huawei Cloud account by applying filters such as resource type, region, project, enterprise project, tags, ID, or name to get accurate totals for audits and planning.

Instructions

[RMS] 查询当前帐号的资源数量。

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": {
      "domain_id": "<domain_id>"
    },
    "name": "rms__CountAllResources"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo资源ID
nameNo资源名称
tagsNo标签列表
typeNo资源类型(provider.type)
ep_idNo企业项目ID列表
domain_idYes帐号ID
region_idNo区域ID列表
project_idNo项目ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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 behavioral burden, yet it discloses nothing beyond the bare action: it does not say whether the count respects the eight optional filters, whether it aggregates across regions/projects, what the numeric response shape is, or what permissions the domain_id requires. For a tool with eight parameters and no output schema, 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 sentence with the scope constraint ('current account') front-loaded and no filler. It is efficient, though the '[RMS]' prefix adds no information for an agent that already sees the namespaced tool name.

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?

The core intent is clear, but relative to an eight-parameter counting tool with no annotations and no output schema, the definition says almost nothing about how filters affect the total or what is returned. An agent can call it, but cannot predict the result with confidence.

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% and all eight parameters carry Chinese descriptions (id, name, tags, type, ep_id, domain_id, region_id, project_id), so the schema does the heavy lifting. The description adds only the notion that domain_id corresponds to the 'current account', not how the remaining filters constrain the resulting count.

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 concrete verb and resource — counting resources ('查询...资源数量') — scoped to the current account, which is meaningfully different from the sibling rms__ListAllResources that returns items. It does not, however, explicitly name or contrast itself with that sibling, so the agent must infer the distinction from the tool names 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 guidance on when to use this over rms__ListAllResources or rms__CollectAllResourcesSummary, nor any statement about prerequisites or exclusions. The agent is left to infer that counting is preferred when only a total is needed.

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