Skip to main content
Glama

apig__CreateEnvironment

Create an APIG environment with a name and optional remark to isolate API versions and endpoints for development, testing, or production.

Instructions

[APIG] 在实际的生产中,API提供者可能有多个环境,如开发环境、测试环境、生产环境等,用户可以自由将API发布到某个环境,供调用者调用。对于不同的环境,API的版本、请求地址甚至于包括请求消息等均有可能不同。如:某个API,v1.0的版本为稳定版本,发布到了生产环境供生产使用,同时,该API正处于迭代中,v1.1的版本是开发人员交付测试人员进行测试的版本,发布在测试环境上,而v1.2的版本目前开发团队正处于开发过程中,可以发布到开发环境进行自测等。

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": {
      "name": "<name>"
    },
    "name": "apig__CreateEnvironment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes环境的名称,支持英文,数字,下划线,且只能以英文字母开头,3 ~ 64字符。
remarkNo描述信息,字符长度不能大于255

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full burden, and it discloses nothing behavioral: not that this is a mutating write, not whether environment names must be unique or immutable, not permission or quota requirements, and not what happens on success. With zero annotation coverage and no output schema, the description leaves an agent with no sense of the operation's side effects.

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

Conciseness2/5

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

A single long paragraph of background narrative with no front-loaded statement of purpose, and no sentence that identifies the tool's own behavior. The content is under-specified rather than concise — it spends its length on environment theory that the agent cannot act on.

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 create/mutation tool with no annotations and no output schema, the description should at minimum state that it creates an environment and what the result is. Instead it covers only conceptual background, leaving the mutation semantics, uniqueness constraints, and return behavior entirely undocumented.

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%, and both `name` (naming pattern, 3–64 chars, must start with a letter) and `remark` (max 255 chars) are fully documented in the schema. The prose adds no parameter meaning beyond that, so the baseline of 3 applies.

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 never states that the tool creates an environment. It is a paragraph of conceptual background explaining why multiple environments (dev/test/prod) exist and how APIs are published to them — education about the resource domain, not a statement of this tool's action. An agent cannot tell from this text that invoking it will create a new environment rather than publish, list, or update one.

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 at all: no indication of prerequisites, no distinction from siblings such as apig__CreateEnvironmentV2 or apig__UpdateEnvironment, and no note about what conditions call for creating a new environment versus reusing an existing one. The text describes API publishing workflows, which is adjacent to but not the same as the create operation.

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