Skip to main content
Glama

codeartsdeploy__ListHosts

Lists hosts in a specified CodeArts Deploy host cluster by cluster ID, with optional host name, proxy status, pagination, and sorting filters.

Instructions

[CODEARTSDEPLOY] 根据主机集群id查询指定主机集群下的主机列表。该接口于2024年09月30日后不再维护,推荐使用新版ListNewHosts接口。

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": {
      "group_id": "<group_id>"
    },
    "name": "codeartsdeploy__ListHosts"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo主机名,可输入中英文,数字和符号(-_.)
limitNo每页显示的条目数量,默认为1000
offsetNo偏移量,表示从此偏移量开始查询,offset大于等于0
as_proxyNo是否为代理机
group_idYes主机集群id
sort_dirNo排序方式,默认为:DESC。DESC:降序排序。ASC:升序排序
sort_keyNo排序字段,支持:AS_PROXY|HOST_NAME|OS|OWNER_NAME|as_proxy|host_name|os|owner_name|nickName。不填默认为:as_proxy
with_authNo返回结果是否加密

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/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. It discloses a genuinely useful lifecycle trait (deprecated since 2024-09-30) and implies a read-only query via 查询, but says nothing about permissions, pagination behavior, or what the result set contains.

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 sentences with no filler: the purpose and scope come first, then the deprecation warning. Every sentence earns its place and nothing is repeated from the schema.

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 8 parameters and no output schema, an agent gets the key scoping and deprecation facts but no notion of the returned host records or pagination semantics. Adequate to call correctly, incomplete for interpreting results.

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 name, limit, offset, as_proxy, sort_key, sort_dir, and with_auth are already fully documented in the schema. The description adds only that the query is keyed on the host-cluster id, 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 states a specific verb and resource (query the host list under a given host-cluster id) and scopes it to group_id, which separates it from environment-scoped siblings. It does not distinguish itself from codeartsdeploy__ListEnvironmentHosts, but the deprecation note does route agents away from this tool toward ListNewHosts.

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 names an explicit alternative (ListNewHosts) and the condition that selects it (this interface is no longer maintained after 2024-09-30), which is strong routing guidance. It stops short of saying whether legacy callers should still use this tool or whether any scenario requires 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