Skip to main content
Glama

Move emails to another folder

move_email
Destructive

Move messages from one IMAP folder to another. Flags and the original dates are preserved. All the messages must be in the SAME source folder and go to the SAME destination - to file into several folders, make one call per destination. Filing a backlog is what this tool is for: pass every UID in one call rather than calling it once per message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesDestination folder name.
fromNoSource folder name. Defaults to INBOX.
uidsYesThe UIDs to act on, from list_emails or search_emails. Pass EVERY message you want changed in ONE call - this tool acts on the whole set in a single operation, and doing it that way costs the user one call instead of one per message. Up to 500 at a time. A single message is simply a one-element array.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already mark the operation as destructive and not read-only. The description adds valuable behavioral details beyond annotations: flags and original dates are preserved, and the operation requires all UIDs to come from the same source folder. No contradiction with annotations.

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?

Three sentences carry the essential information: the action, the preservation guarantees, the batching/destination constraints. No wasted words, and the key usage instruction is placed where it is most likely to be read.

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 three-parameter tool with no output schema and annotations covering destructive/read-only behavior, the description is sufficient. An agent knows what to call, how to batch UIDs, what constraints apply, and what behavior to expect regarding flags and dates.

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 100% and the schema already documents uids, to, and from, including batching guidance and the INBOX default. The description still adds value by making explicit the same-source/same-destination invariant, which the schema does not directly state.

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 opens with a specific verb and resource: 'Move messages from one IMAP folder to another.' The additional constraints about same source folder and same destination further clarify exactly what the tool does, distinguishing it from archive/delete/folder operations.

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?

It gives clear usage context: 'Filing a backlog is what this tool is for' and instructs to pass every UID in one call and make one call per destination for multiple folders. It does not explicitly contrast with alternatives like archive_email or delete_email, but the usage guidance is strong and concrete.

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