Skip to main content
Glama

Create a folder

create_folder
Idempotent

Create an IMAP folder. The server's own namespace and hierarchy rules are applied, so it lands where the user would expect it in Outlook or webmail, and a folder created this way is SUBSCRIBED, so it shows up in clients that list only subscribed folders (Outlook and Roundcube both do). A "/" IN THE NAME BUILDS A HIERARCHY rather than a folder with a slash in its name: "Archive/2026" puts 2026 inside Archive, creating Archive too if it is missing - so a folder name cannot contain a literal "/". Safe to call twice: a folder of that name that already exists is returned as it is, matched case-insensitively, so asking for "projects" where "Projects" exists finds that one rather than leaving two folders nobody can tell apart - the reply says whether it actually created anything. parent may be a folder that cannot itself hold messages (selectable: false in list_mailboxes), because creating underneath one is what turns it into a real folder. REFUSES a name with a blank or empty segment, such as a leading, trailing or doubled "/".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesFolder name, e.g. "Invoices". A "/" nests: "Archive/2026" creates 2026 inside Archive.
parentNoAn existing folder to nest it under, e.g. "Archive". Use this rather than building the path by hand when the parent is already there.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Folder name, e.g. \"Invoices\"."New value: +"Folder name, e.g. \"Invoices\". A \"/\" nests: \"Archive/2026\" creates 2026 inside Archive."
    • changedInput schema / properties / parent / description
      Previous value: -"Parent folder path to nest it under."New value: +"An existing folder to nest it under, e.g. \"Archive\". Use this rather than building the path by hand when the parent is already there."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The description goes far beyond the annotations. It discloses that the folder is automatically subscribed, that '/' builds hierarchy rather than appearing literally, that the operation is idempotent with case-insensitive matching, that the reply indicates whether something was created, and that blank path segments are refused. This is exactly the kind of behavioral context an agent needs.

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?

The description is dense but every sentence earns its place. It front-loads the core purpose, then covers hierarchy, idempotency, parent constraints, and validation rules in a logical order. The length is justified by the number of non-obvious behaviors an agent must know to call the tool correctly.

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

Completeness5/5

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

Despite having no output schema, the description tells the agent what the reply indicates ('whether it actually created anything'), covers error conditions (blank segments), explains idempotency, and clarifies the relationship with list_mailboxes via selectable: false. The tool is fully specified for correct invocation.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds substantial meaning beyond the schema. It explains the literal-slash prohibition, the case-insensitive matching behavior, the parent parameter's role with non-selectable folders, and the refusal of blank segments. This transforms the parameters from simple strings into well-understood inputs.

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

Purpose5/5

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

The description opens with a specific verb and resource: 'Create an IMAP folder.' It clearly distinguishes this from sibling tools like delete_folder and rename_folder by focusing on creation semantics, and adds concrete details about namespace rules and subscription behavior that make the tool's purpose unmistakable.

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?

The description gives strong contextual guidance: it explains when to use the parent parameter, how slash-based hierarchy works, and that creating under a non-selectable parent is the intended way to make it a real folder. It does not explicitly name alternatives or say 'use this instead of X,' but the sibling list and clear creation focus make the intended use obvious.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources