Skip to main content
Glama

workspace__ListUsedDesktopInfo

Queries desktop usage duration by date range, desktop IDs, or user for Huawei Cloud Workspace reporting; deprecated, use usage metric APIs instead.

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__ListUsedDesktopInfo"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo查询结果中想要返回的信息条目数量,用于分页查询,取值范围0-100,默认值100。
offsetNo从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2147483647,默认从0开始。
end_timeNo结束时间,格式:yyyy-MM-dd(UTC时间,不传查默认最近15天)最多查31天数据。
project_idYes项目ID。
start_timeNo开始时间,格式:yyyy-MM-dd(UTC时间,不传查默认最近15天)最多查31天数据。
desktop_idsNo桌面id集合。
group_by_typeNo统计方式,不传则默认按天。可选值为:DAY
desktop_usernameNo若传桌面的用户名,则查询使用时间只有该用户的使用时间。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden, and it does disclose the critical behavioral fact that the tool is deprecated in favor of specific alternatives. However, it says nothing about permissions, rate limits, what the usage-duration response contains, or what the pagination defaults mean in practice; those details live only in the schema.

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?

Front-loads the purpose, then the deprecation warning, then the redirect to alternatives — a sensible order with no filler. The two long documentation URLs add bulk but earn their place by making the recommended replacements actionable.

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

Completeness4/5

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

For a deprecated, read-oriented query tool with an eight-parameter schema fully described and no output schema, the description supplies the essentials: what it returns (usage duration) and why to avoid it. It is only short of a note on when, if ever, calling it is still appropriate.

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 all eight parameters (limit, offset, start_time, end_time, desktop_ids, group_by_type, desktop_username, project_id) are already documented, including the 15-day default window and the 31-day cap. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('查询使用桌面的时长' / query desktop usage duration) and immediately flags the tool as deprecated, which distinguishes it from the two named metric siblings. An agent can tell what it does and that it should generally prefer ListDesktopUsageMetric or ListUserUsageMetric.

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

Usage Guidelines5/5

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

Explicitly says '已废弃,不推荐使用' (deprecated, not recommended) and names two concrete alternative endpoints with links, both of which match sibling tools in the catalog. This is a clear use/do-not-use directive with named alternatives, leaving little to inference.

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