Skip to main content
Glama

Fluxmail Cloud

Move folder

move_folder
Idempotent

Move a folder under another folder, or to the top level of the mailbox. The folder keeps its own name, its messages and its subfolders. Give either the destination as parent or topLevel: true, not both. The destination can't be the folder itself, one of its subfolders, or the trash, and it can't already hold a folder with the same name. In Gmail, where the folder is a label, the labels nested under it move with it. System folders such as Inbox, Sent and Trash can't be moved, and neither can a folder the account settings use as one. Use the folder ID in the result afterwards: in an IMAP mailbox the folder and its subfolders always get new IDs. Message IDs normally stay the same. If one stops working, list the folder again.

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

Input Schema

NameRequiredDescriptionDefault
folderYesID of the folder to move, as list_folders returns it, or the folder name.
parentNoID or name of the folder to move it under. Leave out when topLevel is true.
topLevelNoSet to true to move the folder to the top level of the mailbox. Leave out when parent is given.
accountIdNoAccount to operate on. Optional when exactly one account is connected.

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false); the description goes well beyond that by disclosing what is preserved (name, messages, subfolders), Gmail-specific label nesting behavior, and the non-obvious side effect that folder IDs change in IMAP mailboxes while message IDs normally do not. That ID-invalidation warning is a genuinely important behavioral trait an agent could not infer from structured fields.

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-loaded with the action and destination choice, then constraints, then post-call guidance — a logical order with no filler sentences. It is on the longer side (seven sentences), but nearly every clause carries a distinct constraint or consequence that could not be trimmed without losing information.

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?

With annotations, a full output schema and 100% schema coverage already present, the description is not expected to explain return values, yet it volunteers the crucial caveat that folder IDs change after the move and that listing again is the recovery path. Together with the exclusion rules for system folders and name collisions, this is essentially complete for a mutation tool of this complexity; only explicit mention of required permissions is absent.

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%, so the baseline is 3, but the description adds a constraint the schema does not express: parent and topLevel are mutually exclusive ('Give either the destination as parent or topLevel: true, not both'). It also clarifies that 'folder' may be an ID or a name and what each destination means semantically.

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 ('Move a folder') plus the two destinations available ('under another folder, or to the top level of the mailbox'). The resource itself cleanly separates it from the sibling move_emails, which moves messages rather than folders, so an agent can pick correctly 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?

Enumerates the conditions that make a call invalid — destination must be parent or topLevel but not both, cannot be the folder itself, a subfolder, the trash, or a name collision, and system/account-settings folders cannot be moved at all. It also tells the agent what to do after the call ('Use the folder ID in the result afterwards', 'If one stops working, list the folder again'), which is explicit use guidance rather than vague context.

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