Skip to main content
Glama

codeartsdeploy__ListHostGroups

Queries host clusters by name, OS, project, region, and pagination filters to retrieve matching deployment groups; use newer cluster listing APIs after Sept 30, 2024.

Instructions

[CODEARTSDEPLOY] 按条件查询主机集群列表。该接口于2024年09月30日后不再维护,推荐使用新版ListHostClusters接口。

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": {
      "project_id": "<project_id>",
      "region_name": "<region_name>"
    },
    "name": "codeartsdeploy__ListHostGroups"
  }
}

Input Schema

NameRequiredDescriptionDefault
osNo操作系统:windows|linux
nameNo主机集群名
limitNo每页显示的条目数量,默认为1000
offsetNo偏移量,表示从此偏移量开始查询,offset大于等于0
sort_dirNo排序方式:DESC、ASC,默认为DESC
sort_keyNo排序字段:nickName|NAME|OWNER_NAME|CREATE_TIME|name|owner_name|create_time,不传使用默认排序
project_idYes项目id
region_nameYes局点信息

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/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 whole burden. It does disclose the important behavioral fact that the endpoint is deprecated — something annotations would not have captured — and '查询' implies a read-only operation. However, it says nothing about authentication/project scoping needs or response characteristics beyond what the schema covers.

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

Conciseness5/5

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

Two short sentences with zero padding: purpose first, deprecation and replacement second. Nothing is repeated from the schema and every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, fully schema-documented list tool with no output schema and no annotations, the description covers the essentials: what it returns conceptually and that it is superseded. The remaining gap — no mention of pagination behavior or required permissions — is largely mitigated by the explicit limit/offset/project_id documentation in the schema.

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 every parameter (os, name, limit, offset, sort_key, sort_dir, project_id, region_name) is already documented including enums and defaults. The description adds only '按条件' (by conditions) and no format, interaction, or filtering semantics beyond the schema. 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 states a specific verb and resource — query (查询) the host cluster list by conditions — which lets an agent distinguish this from siblings like CreateHostCluster or DeleteHostCluster. It does not differentiate against other list-style siblings (ListHostGroupBaseInfos, ListHostGroupPermissions), but the deprecation pointer to ListHostClusters covers the most likely confusion.

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 an explicit when-not-to-use rule: the API is unmaintained after 2024-09-30 and callers should use the newer ListHostClusters interface instead. That names the alternative and the condition that selects it. It stops short of saying when this tool is still appropriate (e.g. legacy projects), so it is not a full 5.

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