set_email_flag
Set or update the follow-up flag on an email by providing the email ID and status (0 to clear, 1 to flag, 2 for completed).
Instructions
Set the follow-up flag status on an email. Use flag_status 1 for flagged, 2 for completed, or 0 to clear. Returns a success confirmation. For a simpler clear-only operation, use clear_email_flag instead. Returns an error if the email ID does not exist.
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>",
"flag_status": "<flag_status>"
},
"name": "set_email_flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | The email ID to flag (e.g., from list_emails or search_emails) | |
| flag_status | Yes | Flag status: 0 = not flagged, 1 = flagged, 2 = completed (e.g., 1 to flag for follow-up) |