prepare_junk_email
Initiates marking an email as junk by moving it to the Junk folder. Returns a preview and an approval token for confirmation.
Instructions
Prepare to mark an email as junk (move to Junk folder). Returns a preview of the email and an approval token. Call confirm_junk_email with the token to execute. Returns an error if the email ID does not exist. The token expires after 5 minutes.
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_id": "<email_id>"
},
"name": "prepare_junk_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | The email ID to mark as junk (e.g., from list_emails or search_emails) |