Skip to main content
Glama

Move an email to Trash

mail_trash_message
DestructiveIdempotent

Move one email (uid from mail_list_messages) to the Trash folder of a connected mailbox. It is not permanently deleted. Needs confirm: true after the customer approves.

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": {
      "email": "<email>",
      "uid": "<uid>"
    },
    "name": "mail_trash_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYes
emailYesMailbox address on one of the customer's own domains, e.g. info@example.com.
folderNoMail folder (default INBOX), e.g. INBOX, Sent, Trash.
confirmNoMust be true. Set it only after the customer has explicitly confirmed this exact change.

Output Schema

NameRequiredDescriptionDefault
movedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 destructiveHint=true, idempotent=true and readOnlyHint=false, so the safety profile is partly covered. The description adds genuinely new behavior beyond that: the operation is recoverable (mail lands in Trash, not permanently deleted) and it is gated on explicit customer approval via confirm. It doesn't say what happens if uid is invalid or what the response contains, but the output schema covers returns.

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 short sentences, zero waste, with the action and the 'not permanently deleted' reassurance front-loaded before the confirm requirement. Each sentence carries distinct 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?

For a destructive mutation the description covers recoverability, the consent gate, and the uid provenance, and an output schema documents the return. The only small gap is silence on the optional folder parameter's interaction with the Trash destination, which the schema largely handles.

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 75%, so the schema already documents email, folder and confirm. The description adds the one piece the schema omits: that uid comes from mail_list_messages, which is the key semantic an agent needs to source the identifier. It adds nothing about the optional folder parameter, but that is fully described in the schema.

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 one email ... to the Trash folder of a connected mailbox') and scopes it to a single message. The parenthetical naming mail_list_messages as the uid source, plus the explicit 'not permanently deleted' contrast, lets an agent distinguish this from any hard-delete operation 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 Guidelines4/5

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

Gives clear preconditions: the uid must come from mail_list_messages and confirm:true is required after the customer explicitly approves. It doesn't name a concrete alternative tool or state when-not to use it, but the reversibility note implicitly frames the soft-delete use case.

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.