Skip to main content
Glama

codeartsdeploy__ImportHostToEnvironment

Imports specified host IDs into a CodeArts Deploy environment host group, attaching existing hosts to the target application environment for deployment.

Instructions

[CODEARTSDEPLOY] 环境下导入主机。

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": {
      "application_id": "<application_id>",
      "environment_id": "<environment_id>",
      "group_id": "<group_id>",
      "host_ids": "<host_ids>"
    },
    "name": "codeartsdeploy__ImportHostToEnvironment"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_idYes主机集群id
host_idsYes要导入的主机id列表
application_idYes应用id
environment_idYes环境id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/5.0
Behavior1/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 of behavioral disclosure, and it provides none. It does not say whether the operation is idempotent, what happens if a host is already in the environment, whether permissions are required, whether the batch is atomic, or that the schema caps host_ids at 100 entries.

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

Conciseness3/5

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

The single sentence is front-loaded and free of waste, but its brevity comes from under-specification rather than discipline. It is efficiently formed yet carries almost no information an agent could not get from the tool name.

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

Completeness2/5

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

This is a four-parameter mutation tool with no annotations and no output schema, so the description should explain side effects, required permissions, and partial-failure behavior. Instead it supplies only a restated action, leaving an agent unable to predict the outcome of the call.

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%, with each of the four required parameters (application_id, environment_id, group_id, host_ids) documented in Chinese, so the baseline of 3 applies. The description adds no additional meaning about how group_id relates to environment_id or about the batch limit on host_ids.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb and a resource ('import hosts' under an environment), which is clearer than a bare restatement of the name, but it is nearly a translation of the tool name and offers no differentiation from siblings such as DeleteHostFromEnvironment or CopyHostsToTarget. An agent learns the general action but nothing about its scope or relationship to other host-management tools.

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 when-to-use guidance, no preconditions (e.g., that the host group and environment must already exist), and no mention of alternatives. The agent must infer everything from the name and schema.

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