Skip to main content
Glama

workspace__ListDesktopsStatistics

Retrieves counts of ordinary desktops and desktop pools by allocation, login, or run status, or returns the total, for a specified Huawei Cloud project.

Instructions

[WORKSPACE] 统计租户下的普通桌面、桌面池状态,默认仅统计总数。

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

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。
desktop_typeNo桌面类型,为空时查所有桌面。
statistics_typeNo统计类型,为空时仅统计桌面总数 |- - attach-state 按照分配状态统计 - login-state 按照登录状态统计 - run-state 按照运行状态统计。

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 disclosure burden, yet it only mentions tenant scope and the totals-by-default behavior. It does not confirm read-only semantics, permission requirements, result granularity per desktop type, or how the response changes when statistics_type is supplied.

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 compact sentence with the scope stated up front and the default behavior attached; nothing is wasted. The bracketed [WORKSPACE] prefix is the only noise, and it is trivial.

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?

With three fully documented parameters, no output schema, and no annotations, the definition covers the minimum needed to invoke the tool. However, it never indicates the shape of the returned statistics when statistics_type is requested, which matters more because no output schema exists.

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 project_id, desktop_type, and the statistics_type enum values. The description's note about defaulting to totals restates what the schema says ('为空时仅统计桌面总数') and adds no extra syntax, format, or interaction guidance.

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?

States a concrete action (统计/count) and scope (tenant-level ordinary desktops plus desktop-pool status), so an agent can tell this is an aggregation tool rather than a listing tool. It never names a sibling such as workspace__ListDesktops or workspace__ListPoolDesktopsDetail, so differentiation is left to inference from the verb 统计.

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?

The only usage context offered is the default behavior (默认仅统计总数); there is no statement of when to prefer this over the plain listing or detail tools, and no prerequisites, permissions, or exclusions. An agent must guess that this tool is for counts while ListDesktops is for 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