Skip to main content
Glama

Move a message to Trash

mail_trash
DestructiveIdempotent

Moves a message to Trash, where the user can still recover it; Prubex never deletes mail permanently. Use it only when the user wants mail deleted; to tidy the Inbox use mail_archive. The account policy can forbid it. Example: { "message_id": "msg_…" }.

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": {
      "message_id": "<message_id>"
    },
    "name": "mail_trash"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idYesA message id (`msg_…`) from a list or search.

Output Schema

NameRequiredDescriptionDefault
message_idYesThe message's id after the move (it can change).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but on their own they would make the action look irreversible. The description adds the crucial nuance that Trash is recoverable and mail is never permanently deleted, plus the policy-forbidding constraint — three behavioral facts not present in any structured field. Return shape is covered by the output schema, so no gap remains.

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 core action and recoverability, then the usage rule and the alternative. The trailing example payload largely duplicates what the fully documented schema already shows, so it does not fully earn its place, but the rest is dense and waste-free.

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?

A single-parameter mutation tool with rich annotations and an output schema needs exactly this: recoverability, an alternative for the adjacent intent, and a stated permission constraint. Nothing an agent needs in order to choose and call it correctly is missing.

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 coverage is 100% and the message_id parameter is already documented as a `msg_…` id from a list or search. The description's inline example restates the same key and format rather than adding syntax, constraints, or edge cases beyond the schema. Baseline 3 is appropriate.

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 ("Moves a message to Trash") plus the scope constraint that the message remains recoverable. It also names the sibling it is not (mail_archive) and the related mail_move domain, so an agent can distinguish it 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 when ("only when the user wants mail deleted") and an explicit alternative ("to tidy the Inbox use mail_archive"). It also flags a precondition — the account policy can forbid the operation — so the agent knows a failure mode up front.

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