Skip to main content
Glama

codeartsdeploy__CreateEnvironment

Creates a deployment environment under a CodeArts Deploy application, letting you define its name, OS, and target type (host or Kubernetes) for application deployments.

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>",
      "deploy_type": "<deploy_type>",
      "name": "<name>",
      "os": "<os>",
      "project_id": "<project_id>"
    },
    "name": "codeartsdeploy__CreateEnvironment"
  }
}

Input Schema

NameRequiredDescriptionDefault
osYes操作系统:windows|linux,需要和主机集群保持一致linux
nameYes环境名称
project_idYes项目id
deploy_typeYes部署类型:0表示主机, 1表示kubernetes
descriptionNo环境描述
application_idYes应用id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/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 and fails to do so. It does not disclose permission requirements, whether the operation is idempotent, what happens on duplicate names, or what the response contains; "创建" only implies mutation, which the agent already infers from the name.

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 noise, which is good, but for a six-parameter creation tool with five required fields it is too sparse to be considered appropriately sized. Conciseness here reflects under-specification rather than disciplined economy.

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?

A mutation tool with five required parameters, no annotations, and no output schema needs at least prerequisite, permission, and failure-mode context. The definition supplies none of this, leaving the agent reliant entirely on the input schema to call it correctly.

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 enum and default values documented for os and deploy_type, so the schema does the heavy lifting and baseline 3 applies. The description adds no extra semantics such as how application_id relates to project_id or the consequences of the windows/linux choice.

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 gives a clear verb+resource: "创建环境" (create environment), scoped to "应用下" (under an application). An agent can identify the action without opening the schema, though nothing explicitly distinguishes it from siblings like UpdateEnvironment or the CreateEnvironment tools in other services beyond the CODEARTSDEPLOY prefix.

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?

No guidance on when to use this tool versus alternatives (e.g. codeartsdeploy__CheckCanCreate, which likely precedes creation, or the apig/cae/roma equivalents). No prerequisites are stated — the description does not say the application must already exist or that the os/host-cluster constraint must be satisfied before calling.

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