Skip to main content
Glama

apig__CreateEnvironmentV2

Create named API Gateway environments, such as development, testing, or production, within a project and instance so APIs can be published for callers.

Instructions

[APIG] 在实际的生产中,API提供者可能有多个环境,如开发环境、测试环境、生产环境等,用户可以自由将API发布到某个环境,供调用者调用。

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": {
      "instance_id": "<instance_id>",
      "name": "<name>",
      "project_id": "<project_id>"
    },
    "name": "apig__CreateEnvironmentV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes环境的名称,支持英文,数字,下划线,且只能以英文字母开头。
remarkNo描述信息
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full disclosure burden for a mutation tool, yet it says nothing about side effects, required permissions, name-uniqueness constraints, or idempotency. The only useful content, that environments are user-defined and targeted by API publication, is generic domain context rather than behavior of this call.

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?

It is a single reasonably sized sentence with no redundancy, but the content is poorly allocated: the opening gives conceptual background instead of front-loading what the operation does. Efficient in length, weak in information placement.

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?

For a 4-parameter, 3-required mutation tool with no annotations and no output schema, the description never states the creation action, required IDs, or the result of a successful call. An agent would have to infer the operation entirely from the tool name and schema.

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, remark, project_id, and instance_id are all documented in the schema itself (including name charset rules and how to obtain IDs). The description adds no additional meaning beyond those fields, which is the baseline-3 case.

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

Purpose2/5

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

The description explains the concept of API environments in production (dev/test/prod, users publishing APIs into them), but never states that this tool creates an environment. The only signal about the action comes from the tool name itself, so the text adds domain background rather than a specific verb+resource purpose.

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 prerequisites, and no mention of how this differs from siblings such as apig__UpdateEnvironmentV2, apig__CreateEnvironment, or apig__DeleteEnvironmentV2. The sentence about publishing APIs to an environment is background, not an instruction on when to call this tool.

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