Skip to main content
Glama

Sickle — every mailbox for your agent

Move emails to Trash

trash_email
DestructiveIdempotent

Move emails to the account's Trash folder, found by its \Trash attribute or a well-known name. This is how these tools remove email, and it is reversible: the emails stay in Trash, where the user can restore or delete them. No tool deletes email permanently. Moving gives the emails new UIDs; the result lists their old UIDs as stale.

Input Schema

NameRequiredDescriptionDefault
uidsYesEmail UIDs to move to Trash
emailYesThe email account address
mailboxYesMailbox/folder the UIDs currently live in, e.g. "INBOX"

Output Schema

NameRequiredDescriptionDefault
countYesHow many emails were moved: only those `from_mailbox` had.
stale_uidsYesThe UIDs the moved emails had in `from_mailbox`. They are no longer valid: moving gives the emails new UIDs. List `to_mailbox` to find them again.
to_mailboxYesThe folder they are in now. For trash_email, the account's Trash folder.
from_mailboxYesThe folder the emails were in.
missing_uidsYesUIDs `from_mailbox` did not have — already moved, or never there. Nothing was done for them; asking again for a move that already happened is not an error.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: emails remain in Trash, can be restored or permanently deleted later, no tool permanently deletes email, and moved emails receive new UIDs with old UIDs listed as stale. This adds substantial operational context not captured by destructiveHint or idempotentHint alone.

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 front-loaded with the core action, then adds only relevant behavioral context. Every sentence contributes to correct tool selection or invocation.

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?

Given the annotations, full schema coverage, and presence of an output schema, the description supplies the remaining critical context: reversibility, non-permanent deletion, Trash-folder identification, and UID staleness after the move.

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 the schema already defines email, mailbox, and uids. The description adds related behavioral detail about UID changes, but it does not further clarify parameter formats or constraints beyond what the schema provides.

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 names a specific verb and resource: moving emails to the account's Trash folder. It clearly distinguishes this from general moving by explaining Trash-folder resolution and by framing it as the removal mechanism for these tools.

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 clearly explains that this is how the tools remove email and that removal is reversible, giving strong context for when to use it. It does not explicitly name move_email or state when to choose a general move instead, so it falls short of full alternative routing.

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