Skip to main content
Glama

Create a folder

create_folder

Creates a new email folder in an account and returns its ID for moving messages; specify a parent folder or omit it to create at the top level.

Instructions

Create a folder in an account. Answers its id, which update_messages takes as move_to. Fails on an account without folders, which list_accounts names under unsupported. To rename or move a folder that exists, use update_folder. Folders are not deleted by any tool.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe new folder's name
parentNoFolder id or role to create it in. Left out: the top
account_idYesThe account, by the id list_accounts names

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.8.0
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / description
      Added value: +"A folder just made, renamed or moved: its id from now on."
    • addedOutput schema / properties
      Added value: +{
      +  "id": {
      +    "title": "Id",
      +    "type": "string"
      +  },
      +  "name": {
      +    "title": "Name",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "id",
      +  "name"
      +]
    • changedOutput schema / title
      Previous value: -"create_folderDictOutput"New value: +"FolderName"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, so the safety profile is largely covered. The description still adds real behavior the annotations cannot: the failure mode on accounts lacking folder support, and the fact that no tool ever deletes folders, which tells the agent creation is effectively permanent. It does not address duplicate-name handling, which is the main remaining behavioral gap.

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?

Four short sentences, front-loaded with the action and the failure condition, then alternatives, then the permanence note. Each sentence carries distinct information; nothing restates the name or the title.

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?

An output schema exists, so return values need no explanation, and the description nevertheless flags the id's downstream use. Failure mode, sibling routing, and irreversibility are all covered for a 3-parameter mutation tool. Only duplicate-folder behavior and any account permission requirements are left unstated.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters (name, parent, account_id) already carry their own documentation, making 3 the baseline. The description adds cross-tool meaning by tying account_id to list_accounts and by explaining what the returned id is consumed by (move_to in update_messages), but it says nothing about how parent behaves (id vs. role).

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 and resource ('Create a folder') plus its scope ('in an account'), and explicitly contrasts itself with update_folder for existing folders. An agent can separate creation from renaming/moving without opening any 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 an explicit alternative for the overlapping case ('To rename or move a folder that exists, use update_folder') and names the precondition failure ('Fails on an account without folders, which list_accounts names under unsupported'). That is when-to-use, when-not-to-use, and how to pre-check, all in one place.

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