Skip to main content
Glama

codeartsdeploy__CreateDeploymentHost

Creates a deployment host under a specified host cluster, configuring its IP address, OS type, SSH port, proxy setting, and password- or key-based authentication.

Instructions

[CODEARTSDEPLOY] 在指定主机集群下新建主机。该接口于2024年09月30日后不再维护,推荐使用新版CreateHost接口。

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": {
      "as_proxy": "<as_proxy>",
      "authorization": "<authorization>",
      "group_id": "<group_id>",
      "host_name": "<host_name>",
      "ip": "<ip>",
      "os": "<os>",
      "port": "<port>"
    },
    "name": "codeartsdeploy__CreateDeploymentHost"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesIP,请输入弹性ip格式:161.17.101.12
osYes操作系统:windows|linux,需要和主机集群保持一致
portYesssh端口,如:22
as_proxyYes是否为代理机
group_idYes主机集群id
host_nameYes主机名称
authorizationYes登录主机鉴权,使用密码登录则填写密码即可,使用密钥则填写密钥,二选一即可。
proxy_host_idNo代理机id
install_icagentNo免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机)

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 behavioral burden. It does add useful lifecycle context by declaring the deprecation date and steering to CreateHost, which is genuine value beyond the schema. However, it says nothing about permission/credential requirements, whether the operation is idempotent or what happens on duplicate hosts, or what is returned after creation – notable gaps for an unannotated mutation.

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?

Two compact sentences, front-loaded with purpose followed by the deprecation notice, with no filler. Slightly terse for a 9-parameter mutation, but nothing is wasted.

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 complex create operation with a nested auth object, seven required parameters, no annotations and no output schema, the description covers purpose and deprecation but omits prerequisites, permission requirements and post-creation outcome. The rich schema compensates for parameter detail, but behavioral context is thinner than the tool's complexity warrants.

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 including the nested authorization object is documented in the schema, establishing a baseline of 3. The description adds no extra meaning about parameters (e.g., how proxy_host_id interacts with as_proxy, or the password-vs-key choice), so no credit above baseline is warranted.

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 with scope: create a new host ('新建主机') under a specified host cluster. It also names the replacement sibling ('新版CreateHost接口'), which lets an agent distinguish it from the newer host-creation API. It falls short of 5 only because it does not clarify how this differs from other host-related siblings (Update/Import/Show).

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?

Explicit when-not-to-use guidance is given: the interface is unmaintained after 2024-09-30 and the new CreateHost API should be used instead. That is a clear routing instruction to an alternative. It does not spell out prerequisites for using this tool (e.g., that the target host cluster must already exist) or the circumstance in which the legacy call is still legitimate.

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