Skip to main content
Glama

workspace__UpdateDesktopNamePolicy

Updates a desktop name policy so automatic desktop-name generation uses the configured prefix, suffix digit count, and starting number.

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

Input Schema

NameRequiredDescriptionDefault
policy_idYes策略ID。
project_idYes项目ID。
name_prefixNo策略前缀。
policy_nameNo策略名称,由数字、字母、中文、下划线组成,必须以字母或下划线开头,长度范围为1~30个字符。
digit_numberNo策略后缀有效位数。
start_numberNo策略后缀起始数字。
is_default_policyNo是否为默认策略,true默认策略。
single_domain_user_incNo是否单用户名递增。

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 burden. It says 'update' but never discloses whether omitted optional fields are preserved or reset, whether the caller needs project-admin permissions, or what happens when the policy is the default policy — significant gaps for a mutation tool.

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 front-loaded sentence with the [WORKSPACE] scope tag and no filler. It is efficient, though its brevity is partly under-specification rather than discipline.

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 an 8-parameter mutation with two required identifiers, six optional fields, no annotations and no output schema, the description omits the crucial partial-update semantics and the effect of is_default_policy. An agent could call it but could not predict the result of omitting fields.

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 (policy_id, project_id, prefix, suffix digits, start number, default flag, single-user increment) are already documented in the schema. The description adds only the general framing that the policy drives auto-generated desktop names, which contextualizes the prefix/suffix fields but explains none of them.

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?

Names a specific verb+resource pair ('更新桌面名称策略') and adds that the policy governs automatic desktop-name generation, so the agent knows what it mutates. It does not distinguish itself from siblings such as CreateDesktopNamePolicy or ListDesktopNamePolicy, relying on the tool name alone for that.

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 statement of when to choose this over Create/List/BatchDelete desktop name policies, nor any precondition such as the policy having to exist already. The clause '用于自动生成桌面名称' hints at the domain purpose but gives no selection guidance or exclusions.

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