Skip to main content
Glama

workspaceapp__CheckQuota

Validates whether sufficient quota exists for creating WorkspaceApp server resources before purchase, checking disk count, disk size, product, and subscription quantity.

Instructions

[WORKSPACEAPP] 配额校验,购买服务器前可用调用该接口,校验本次创建服务器资源是否足够。

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": {
      "disk_num": "<disk_num>",
      "disk_size": "<disk_size>",
      "product_id": "<product_id>",
      "project_id": "<project_id>",
      "subscription_num": "<subscription_num>"
    },
    "name": "workspaceapp__CheckQuota"
  }
}

Input Schema

NameRequiredDescriptionDefault
deh_idNo主机id。
disk_numYes单台实例所需的磁盘数量(最大系统盘1块、数据盘10块)。
disk_sizeYes单台实例所需的磁盘大小(最大系统盘1块*1024、数据盘10块*32768)。
flavor_idNo规格id。
is_periodNo是否包周期。
cluster_idNo云专属分布式存储池id。
product_idYes产品id。
project_idYes项目唯一标识。
subscription_numYes订单需要创建总实例数、订购数量。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/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. The verb 校验 and the phrase 是否足够 imply a read-only sufficiency check rather than a mutation, which is useful, but the description says nothing about what is returned (a boolean vs. a quota breakdown), whether quota is reserved, or about rate limits and permissions.

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 key trigger condition front-loaded. The only waste is the '[WORKSPACEAPP]' prefix tag, which conveys no actionable information to the agent.

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?

For a 9-parameter validation tool with no annotations and no output schema, the definition covers when to call it but not what the caller receives or how to interpret the result. Combined with fully documented parameters this is adequate, but not complete.

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% and every parameter has its own bounds and explanation (disk_num, disk_size, subscription_num, etc.), so the schema does the heavy lifting. The description adds no extra meaning about which parameters drive the sufficiency check.

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 names a specific action (配额校验 / quota validation) and its object (resources for creating a server), which is clearly distinguishable from the many sibling quota-listing tools. It stops short of naming a sibling it differs from, so it is clear but not maximally differentiated.

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

Usage Guidelines4/5

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

It gives a concrete usage context: call it 购买服务器前 (before purchasing a server) to verify whether the resources are sufficient. It does not state exclusions or name an alternative tool, but the timing guidance is explicit enough for an agent to select it.

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