Skip to main content
Glama

update_email_flags

Destructive

Change an email's flags in the user's connected Gmail, Outlook or IMAP mailbox as well as in FuseAI: read/unread, favorite, archive, spam, or delete/restore (setting archive, spam or delete to false moves the email back to the inbox). Send any subset of the booleans for one emailId. isDeleted=true moves the email to trash — confirm with the user before using it.

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": {
      "emailId": "<emailId>"
    },
    "name": "update_email_flags"
  }
}

Input Schema

NameRequiredDescriptionDefault
isReadNo
isSpamNo
emailIdYes
isDeletedNo
isArchivedNo
isFavoriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark this as non-readonly, destructive and open-world; the description adds material context beyond that: changes propagate to the real Gmail/Outlook/IMAP mailbox as well as FuseAI, false values are restorative rather than no-ops, and deletion requires user confirmation. That dual-store side effect and the non-obvious inverse semantics are exactly what an agent needs before mutating.

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?

Three sentences, front-loaded with the action and scope, then batch semantics, then the destructive-action warning at the end where it stands out. The long parenthetical about restoring to the inbox is dense but earns its place because that behavior is counterintuitive.

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, open-world mutation with no output schema, the description covers side effects, inverse semantics and the confirmation requirement. It stops short of describing failure modes such as a missing emailId or a mailbox that refuses the change, but nothing essential to invoking it correctly is missing.

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 description coverage is 0%, so the description carries the full burden and largely does: each boolean is mapped to its user-facing flag (isRead, isFavorite, isArchived, isSpam, isDeleted) and the false-value restore behavior is spelled out. The only gap is emailId — its format/source is not described, though 'for one emailId' establishes cardinality.

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?

Names a specific verb and resource ('Change an email's flags') and enumerates the exact flag set: read/unread, favorite, archive, spam, delete/restore. It also states the scope of the mutation spans both the connected external mailbox (Gmail/Outlook/IMAP) and FuseAI, which separates it from account-level siblings like bulk_update_email_accounts.

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 concrete operating guidance: send any subset of the booleans for a single emailId, and setting archive/spam/delete to false restores the email to the inbox. It also adds an explicit caution to confirm with the user before isDeleted=true. No explicit statement of when to prefer a bulk variant, but the single-email scoping is implied clearly.

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.