Skip to main content
Glama

cbh__ShowEcsQuota

Checks whether a specified bastion host ECS flavor is available in an availability zone for a project to validate quota before provisioning.

Instructions

[CBH] 获取当前租户所选择的可用分区里的堡垒机ECS规格是否可用。

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": {
      "availability_zone": "<availability_zone>",
      "project_id": "<project_id>",
      "resource_spec_code": "<resource_spec_code>"
    },
    "name": "cbh__ShowEcsQuota"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。
availability_zoneYes可用分区名称。
resource_spec_codeYes待创建云堡垒机规格ID,例如:

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 disclosure burden. It implies a read-only availability check but never says so, and says nothing about permission requirements, whether the check is per-AZ and per-spec only, or how the availability verdict is expressed.

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 no wasted wording. It is compact, though the '[CBH]' prefix adds little and the sentence could have used its brevity to also state the return semantics.

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?

With no annotations and no output schema, the description should ideally explain the shape of the availability result and any prerequisites. It does convey that the output is an availability verdict (是否可用), which partially compensates, but leaves permission and return-format questions open for a three-parameter required-arg tool.

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 three parameters are already documented in the schema. The description reinforces the meaning of availability_zone and resource_spec_code conceptually but adds no syntax, format, or constraint details, and does not mention project_id at all. Baseline 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 names a specific verb-resource pair: it retrieves whether the bastion host (堡垒机) ECS spec is available within the tenant's selected availability zone. That is concrete enough to distinguish it from a generic quota tool, though it does not explicitly contrast itself with siblings such as ShowQuota or ShowAvailableZoneInfo.

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?

It states what is checked but not when an agent should call it (e.g. before creating an instance) or what alternative to use when the question is about general quota rather than ECS spec availability. Usage is only implied by the resource 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