Skip to main content
Glama
Infisical MCP Server

Infisical MCP Server

Official
by Infisical

create-environment

Add a new environment, such as QA, to an Infisical project; it starts empty, so copy secrets into it with create-secret.

Instructions

Add an environment, such as QA, to a project. It starts empty; copy secrets into it with create-secret.

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": {
      "projectId": "<projectId>",
      "name": "<name>",
      "slug": "<slug>"
    },
    "name": "create-environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe display name of the environment, such as QA
slugYesThe slug the other tools use for the environment, such as qa. Lowercase letters, numbers and hyphens
positionNoWhere the environment appears in the project's list. Defaults to last
projectIdYesThe ID of the project, from list-projects. A project slug or exact project name also works.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.0
    • changedInput schema / properties / name / description
      Previous value: -"The name of the environment to create (required)"New value: +"The display name of the environment, such as QA"
    • changedInput schema / properties / position / description
      Previous value: -"The position of the environment to create"New value: +"Where the environment appears in the project's list. Defaults to last"
    • changedInput schema / properties / projectId / description
      Previous value: -"The ID of the project to create the environment in (required)"New value: +"The ID of the project, from list-projects. A project slug or exact project name also works."
    • changedInput schema / properties / slug / description
      Previous value: -"The slug of the environment to create (required)"New value: +"The slug the other tools use for the environment, such as qa. Lowercase letters, numbers and hyphens"
  2. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the mutation and non-idempotency are documented structurally. The description adds the genuinely useful "starts empty" state note, but says nothing about duplicate-slug behavior, failure modes, or what happens to the returned environment beyond creation.

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

Conciseness5/5

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

Two tightly written sentences with zero filler, front-loading what is created and following with the one action the agent must know to take next.

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

Completeness4/5

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

For a four-parameter creation tool with full schema documentation and safety annotations, the description covers purpose, initial state, and the follow-up path. Minor gaps remain around uniqueness/conflict behavior for slug and name, but nothing essential to invoking it correctly is missing.

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%; every parameter, including the optional position default, is already documented with examples and format rules. The description adds no parameter-level meaning beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ("Add an environment ... to a project") and gives a concrete example (QA), so the agent knows exactly what entity is created and its parent scope. It doesn't explicitly contrast with create-project or create-folder, but the parent-scoping makes the distinction inferable.

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?

Provides clear workflow context: the environment is created empty and secrets are added afterward via create-secret. That tells the agent this is a scaffolding step, not a configuration step. There are no explicit exclusions or when-not conditions, which keeps it below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.