Skip to main content
Glama
Infisical MCP Server

Infisical MCP Server

Official
by Infisical

create-folder

Create a folder in an Infisical project environment, including any missing parent folders, to organize secrets by path.

Instructions

Create a folder in a project environment. To create /backend/workers, pass path "/backend" and name "workers"; a missing parent folder such as /backend is created too.

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>",
      "environmentSlug": "<environmentSlug>",
      "name": "<name>"
    },
    "name": "create-folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe name of the new folder, without slashes. Letters, numbers, dashes and underscores
pathNoThe path of the parent folder to create it in. Defaults to "/", the root
projectIdYesThe ID of the project, from list-projects. A project slug or exact project name also works.
descriptionNoA description of the folder
environmentSlugYesThe slug of the environment, such as dev, staging or prod. list-projects shows each project's environments. An environment name such as Production also works.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.0
    • changedInput schema / properties / description / description
      Previous value: -"The description of the folder to create"New value: +"A description of the folder"
    • removedInput schema / properties / environment
      Removed value: -{
      -  "description": "The environment to create the folder in (required)",
      -  "type": "string"
      -}
    • addedInput schema / properties / environmentSlug
      Added value: +{
      +  "description": "The slug of the environment, such as dev, staging or prod. list-projects shows each project's environments. An environment name such as Production also works.",
      +  "type": "string"
      +}
    • changedInput schema / properties / name / description
      Previous value: -"The name of the folder to create (required)"New value: +"The name of the new folder, without slashes. Letters, numbers, dashes and underscores"
    • changedInput schema / properties / path / description
      Previous value: -"The path to create the folder in (Defaults to /)"New value: +"The path of the parent folder to create it in. Defaults to \"/\", the root"
    • changedInput schema / properties / projectId / description
      Previous value: -"The project to create the folder in (required)"New value: +"The ID of the project, from list-projects. A project slug or exact project name also works."
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "projectId",
      -  "environment"
      -]New value: +[
      +  "projectId",
      +  "environmentSlug",
      +  "name"
      +]
  2. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare it is a non-readonly, non-destructive, non-idempotent mutation, so the safety bar is lower. The description still adds real behavioral value by disclosing that a missing parent folder is created automatically — a side effect not visible in the schema or annotations. It does not say what happens if the folder already exists, which matters given idempotentHint=false.

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 tight sentences: the purpose leads and the disambiguating example follows. Every clause carries information an agent could get wrong otherwise, with no filler.

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 5-parameter mutation tool with full schema coverage and annotations covering the safety profile, the description supplies the one thing structured fields lack: parent auto-creation and path/name semantics. The remaining gap is the return value and duplicate-name behavior, which matter somewhat given there is no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3, but the description earns above that by disambiguating the most error-prone parameter relationship: path is the parent path and name is the leaf, illustrated with '/backend' + 'workers'. It adds no meaning for projectId or environmentSlug, which the schema already explains.

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 states a specific verb and resource ('Create a folder in a project environment') and reinforces it with a concrete worked example of the path/name split. It is clearly distinct from siblings like list-folders or create-project by resource, though it never explicitly routes the agent away from an alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the create semantics and the example shows the calling shape, but there is no explicit when-to-use guidance, no prerequisites (e.g., permissions), and no mention of how this differs from sibling creation tools such as create-environment.

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