Skip to main content
Glama

workspace__ListDesktopUsageMetric

Queries desktop usage statistics for a project, including active hours and idle days, so you can monitor and filter Workspace desktop utilization by time range and resource name.

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": {
      "end_time": "<end_time>",
      "project_id": "<project_id>",
      "start_time": "<start_time>"
    },
    "name": "workspace__ListDesktopUsageMetric"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNolimit范围[1-100],默认值0。
offsetNo查询的偏移量,默认值0。
end_timeYes查询截至时间(0时区)。
sort_typeNo按照指标进行排序的方向;需配合sort_field一起使用DESC
project_idYes项目ID。
sort_fieldNo按照指标进行排序
start_timeYes查询起始时间(0时区)
max_idle_daysNo最大空闲天数
min_idle_daysNo最小空闲天数。
resource_nameNo资源名称(模糊匹配)。
usage_max_hoursNo使用时长(hour)最大值(必须大于等于usage_min_hours)。
usage_min_hoursNo使用时长(hour)最小值。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry the full behavioral burden. It says only 'query', which weakly implies a read operation, but says nothing about permissions, filtering semantics, aggregation granularity, ordering behavior (sort_field/sort_type pairing), or pagination limits beyond what the schema states.

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

Conciseness3/5

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

The single short sentence is front-loaded and free of padding, but that brevity reflects under-specification rather than disciplined conciseness. There is no structure to separate purpose from constraints.

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?

For a 12-parameter read tool with no annotations and no output schema, the description omits essential context: what the statistics contain (per-desktop rows vs. aggregates), units, and whether time range is required. It is not complete enough for an agent to predict the result shape.

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 12 parameters are already documented in the schema, including fuzzy match for resource_name and the usage_min_hours/usage_max_hours constraint. The description adds no supplementary meaning, which is acceptable at the baseline but not above it.

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

Purpose3/5

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

The description states a general verb+resource ('查询桌面使用统计信息' / query desktop usage statistics), which gives a rough idea of the tool. However, it does not distinguish this from the sibling ListUserUsageMetric or explain what dimension of 'usage' is returned (time, duration, idle days), leaving the scope vague.

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 guidance, no mention of alternatives such as ListUserUsageMetric, and no prerequisites or exclusions. The agent must infer applicability from the name alone.

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