Skip to main content
Glama

codeartsdeploy__ListNewHosts

Retrieve the hosts in a specified CodeArts Deploy host cluster by cluster ID, with optional filtering, sorting, and pagination for inventory checks.

Instructions

[CODEARTSDEPLOY] 根据主机集群id查询指定主机集群下的主机列表。

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__ListNewHosts"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_proxyNo是否为代理机
group_idYes项目id
sort_dirNo排序方式:DESC、ASC,默认为DESC
sort_keyNo排序字段:as_proxy|host_name|owner_name,不传使用默认排序
key_fieldNo主机名模糊查询信息
page_sizeNo每页显示的条目数量,默认为10
page_indexNo页码数
environment_idNo环境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 behavioral burden, yet it says nothing beyond purpose. It does not state that this is a read-only list operation, how results are paginated, whether the response is capped at page_size 1000, or what confirmation or permission context is required.

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?

The definition is a single compact sentence with the scoping criterion front-loaded and no filler, though the brevity leaves out useful context rather than adding it.

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?

The input schema is fully documented and no output schema exists, so an agent can construct a call correctly. However, for a paginated list tool with eight filtering and sorting parameters and no annotations, the description does nothing to explain result shape, default ordering, or how the host-cluster filter relates to environment_id.

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 coverage is 100%, so all eight parameters are already documented with types, enums, defaults, and constraints, setting the baseline at 3. The description only clarifies that the cluster id drives the query, but it actually conflicts with the schema, which labels group_id as 项目id (project id), leaving the identity of the key ambiguous.

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 (查询/list) and a resource (主机列表/hosts) and scopes the query to a host cluster id, so the agent knows exactly which collection it addresses. It does not distinguish itself from the many similar siblings such as ListHosts or ListEnvironmentHosts, which likely also return host lists under different filters.

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 indication of when to prefer this tool over ListHosts or ListEnvironmentHosts, no prerequisites, and no exclusion criteria. The only implicit guidance is the host-cluster scoping that the group_id path parameter already implies.

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