Skip to main content
Glama

Cherami

Restore outgoing email

restore_sent_message
Idempotent

Restore a sent email's copy from Trash to its sent mail, conversation and search results, with its labels.

Input Schema

NameRequiredDescriptionDefault
message_idYesID of a sent entry from list_trash.

Output Schema

NameRequiredDescriptionDefault
idYes
statusYesalready_live: the message was not in Trash and nothing changed.
messageYes
inbox_idYes
thread_idYesConversation the message is in now; null while a received message is unparsed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and readOnlyHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the restore repopulates sent mail, the conversation, search results, and preserves labels, which tells the agent what state is reconstructed.

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?

One front-loaded sentence with no filler; the action and its effects are packed efficiently with nothing redundant.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. The description covers what is restored and where; only edge cases (e.g., failure if the message is not in Trash, permission requirements) remain unstated.

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 single parameter already documents its UUID format and that the value comes from list_trash. The description adds no parameter-level detail, so the baseline 3 applies.

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 (restore) and resource (a sent email's copy) plus the source (Trash) and destination (sent mail, conversation, search results). This clearly separates it from the generic sibling restore_message by scoping it to sent-mail entries.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The phrase 'from Trash' implies the usage condition (the message must already be in Trash), but the description never explicitly states when to use this versus restore_message, nor does it mention prerequisites or exclusions.

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