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. Dates show when Glama detected each change.

  1. Changed2 schema fields changed
    • changedInput schema / properties / name / description
      Before
      "Folder name, e.g. \"Invoices\"."
      After
      "Folder name, e.g. \"Invoices\". A \"/\" nests: \"Archive/2026\" creates 2026 inside Archive."
    • changedInput schema / properties / parent / description
      Before
      "Parent folder path to nest it under."
      After
      "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

A5/5.0
Behavior5/5

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

Annotations declare idempotentHint=true, and the description goes well beyond that by explaining the case-insensitive matching behavior, the reply indicating whether anything was created, and the side effect of creating intermediate folders. It also discloses the subscription side effect, which is not visible in the annotations or schema.

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 adds critical behavior: namespace rules, hierarchy creation, idempotency, parent semantics, and refusal conditions. The most important fact (what '/' does) is explicitly highlighted, and the structure flows from common usage to edge cases without wasting words.

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?

For a creation tool with two required/optional string parameters and no output schema, the description covers all likely unknowns: naming, nesting, idempotency, case sensitivity, subscription, parent limitations, and refusal conditions. Nothing needed to call the tool safely and correctly is missing.

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 description coverage is 100%, so the baseline is 3, but the description adds meaningful detail beyond the schema: it clarifies that '/' builds hierarchy, that 'parent' can be non-selectable, and that duplicate names are matched case-insensitively. This transforms the parameters from simple strings into well-understood behaviors.

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 identifies the exact action and resource—'Create an IMAP folder'—and immediately distinguishes this operation from siblings like rename_folder and delete_folder by explaining server-side namespace behavior, subscription, and hierarchy creation. It is specific about what the tool does and what it does not do (e.g., no literal '/' in names).

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

Usage Guidelines5/5

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

The description gives explicit guidance on when to use `parent` versus building the path manually, explains that creating under a non-selectable parent is intentional and useful, and notes that it is safe to call twice, which conflicts with typical assumptions about creation tools. It also states when the tool refuses input, giving clear usage boundaries.

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.

TDQS

A4/5.0
Disambiguation4/5

Most tools target clearly distinct actions, but there are several close pairs that require careful reading: check_bounces vs check_receipts, list_emails vs search_emails, and the send/reply/forward vs draft_email/draft_reply/draft_forward families. The descriptions are strong enough that a careful agent can disambiguate, but the boundaries are not always obvious from the tool names alone.

Naming Consistency5/5

Every tool uses a consistent snake_case verb_noun convention, such as check_bounces, list_mailboxes, send_email, and update_draft. Related operations use parallel forms like mark_read/mark_unread and flag_email/unflag_email, making the naming predictable and coherent.

Tool Count2/5

With 28 tools, this exceeds the 25+ threshold where a tool set starts to feel too heavy. Email is a broad domain and many tools are individually justified, but the surface could be consolidated, especially the draft_forward/draft_reply/draft_email and send_email/reply_email/forward_email variants.

Completeness4/5

The core email lifecycle is thoroughly covered: send, read, search, move, delete, drafts, replies, forwards, folders, flags, attachments, upload links, contacts, identities, deliverability, bounces, and receipts. The main gap is that permanent deletion is referenced as a separate operation but no such tool is actually provided, and contact/identity management is effectively read-only.

Resources