Skip to main content
Glama

workspace__CreateDesktopNamePolicy

Creates a desktop name policy that auto-generates desktop names from a prefix and numbering rules, supporting up to 50 policies per project.

Instructions

[WORKSPACE] 创建桌面名称策略,用于自动生成桌面名称,最多允许50个。

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": {
      "digit_number": "<digit_number>",
      "name_prefix": "<name_prefix>",
      "policy_name": "<policy_name>",
      "project_id": "<project_id>",
      "single_domain_user_inc": "<single_domain_user_inc>",
      "start_number": "<start_number>"
    },
    "name": "workspace__CreateDesktopNamePolicy"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full burden. It does volunteer one genuine behavioral constraint not present in the schema: a cap of 50 policies ('最多允许50个'). It says nothing about permissions, what happens when the quota is hit, whether is_default_policy displaces an existing default, or what the response contains.

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 tightly packed sentence that front-loads the verb and resource, then the purpose, then the quota. Nothing is wasted, though the extreme brevity leaves the agent without operational context.

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?

With seven parameters, six of them required, no annotations and no output schema, this definition is thin. It never explains the relationship between name_prefix, digit_number and start_number, nor what a successfully created policy returns, which an agent needs to chain into desktop creation.

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 seven parameters, including the name_prefix placeholder example and the digit_number/start_number bounds, are already documented in the schema. 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.

Purpose4/5

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

The description pairs a specific verb (创建/create) with a specific resource (桌面名称策略/desktop name policy) and states its function: automatically generating desktop names. That is enough to separate it from ListDesktopNamePolicy, UpdateDesktopNamePolicy and BatchDeleteDesktopNamePolicy. It stops short of a 5 because it never explicitly contrasts itself with those siblings.

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 create a new policy versus updating an existing one, no prerequisites, and no mention of how this policy feeds into CreateDesktop/CreateDesktopBatchOrder. The only guidance available is what the agent can infer from the tool name.

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