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 "/". Calling it again for a folder that already exists returns that folder 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.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the folder is SUBSCRIBED and therefore visible in subscribed-only clients, that '/' builds hierarchy and auto-creates missing parents, that matching against existing folders is case-insensitive and returns the existing folder, and that it REFUSES names with blank segments. These are exactly the mutation/side-effect details annotations cannot convey.

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

Conciseness4/5

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

Front-loads the core purpose and each clause carries distinct information (subscription, hierarchy, idempotency, refusal). It is long and leans on shouty all-caps emphasis ('SUBSCRIBED', 'IN THE NAME BUILDS A HIERARCHY', 'REFUSES'), which costs some readability, but little is genuinely redundant.

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?

With no output schema, the description still covers the return signal ('the reply says whether it actually created anything'), the mutation/idempotency behavior, and the error condition (blank segments). Everything an agent needs to call this correctly is present.

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 description coverage is already 100%, so baseline is 3, but the description adds real semantics: '/' nests rather than appearing literally, a literal '/' is therefore illegal in a name, and `parent` may legitimately be a non-selectable folder because nesting under it makes it selectable. That is meaningful behavior beyond the schema strings.

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?

States a specific verb+resource ('Create an IMAP folder') and immediately differentiates from siblings like rename_folder/delete_folder by describing hierarchy-building and subscription outcomes rather than just restating the title. An agent can identify the operation without opening the schema.

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?

Gives clear context on when this is the right call (asserting the folder lands where expected, is subscribed, and nests via '/'), and notes the idempotent existing-folder case so the agent knows re-calling is safe. It never explicitly routes to an alternative (e.g. rename_folder) or states when NOT to use it, so it falls short of the 5 bar.

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