Skip to main content
Glama

Create folder

create_folder
Idempotent

Create a mailbox folder or nested subfolder path, with missing parents added automatically. Existing folders are returned unchanged, and system folders are rejected.

Instructions

Create a folder in a mailbox. For a subfolder, give the full path with the separator the mailbox already uses in its folder names, such as Projects/2026. Missing parent folders are created too. If the folder already exists, it is returned unchanged. System folder names, including Inbox, Sent and Trash, are rejected. In Gmail, the folder is a label. Call list_folders first to see how the mailbox writes folder paths.

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": {
      "name": "<name>"
    },
    "name": "create_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFolder name, or the full path of a subfolder, such as Receipts or Projects/2026.
accountIdNoAccount to operate on. Optional when exactly one account is connected.

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.31.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing side effects (missing parent folders are created implicitly), idempotent behavior (existing folder returned unchanged), and a validation rule that rejects reserved system names. It also explains the semantic mapping in Gmail, where the created folder is a label rather than a container.

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 action and then layers the edge cases in short declarative sentences with no filler. The only redundancy is restating the 'Projects/2026' example that already appears in the schema, a minor duplication that could be trimmed.

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 two-parameter creation tool with an output schema, everything an agent needs is present: path formatting, implicit parent creation, idempotency, reserved-name rejection, and provider-specific naming semantics. Return values are correctly left to the 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 already 100%, so this clears the baseline, and the description still adds meaning: 'name' must use the separator the target mailbox itself uses in folder names, not an assumed one. The Projects/2026 example merely repeats the schema's own example, so the added value is real but modest.

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?

Opens with a specific verb+resource ('Create a folder in a mailbox') and immediately covers scope variants: subfolder paths, auto-created parents, and the Gmail label equivalence. An agent can distinguish this from create_label and list_folders 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 Guidelines5/5

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

Gives explicit operational guidance: call list_folders first to learn the mailbox's path convention, pass a full path for subfolders, and expect rejection for system folder names like Inbox/Sent/Trash. It also states what happens when the folder already exists, so the agent knows re-creation is safe.

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