Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

mark_unread

Destructive

Marks an email as unread by removing its Seen flag over IMAP, working with Gmail, Outlook, and custom domains. Use it as a simpler alternative to label modification.

Instructions

Mark an email as unread (removes the \Seen flag) via IMAP — works with Gmail, Outlook, and custom domains. Simpler alternative to modify_labels.

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": {
      "accountId": "<accountId>",
      "uid": "<uid>"
    },
    "name": "mark_unread"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesThe UID of the email to mark as unread
folderNoThe folder containing the email (default: INBOX)
accountIdYesThe ID of the account to use
confirmationIdNoConfirmation token from a prior confirmation-required response. Required to execute write operations when server is in --confirm mode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare a non-read-only, destructive write, and the description adds useful context: the IMAP \Seen flag mechanism and broad provider support. It does not disclose edge-case behavior such as what happens if the email is already unread, whether the change is idempotent, or the confirmation-mode flow beyond what the schema already states.

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?

A single, front-loaded sentence with no filler: the action, the mechanism, the provider scope, and the alternative are all stated in order of importance.

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 simple flag-toggle write with a fully documented four-parameter schema and annotations covering the safety profile, the description supplies enough context to call it correctly. Only minor behavioral details (idempotency, confirmation-mode expectations) are absent, and the latter is covered by the schema.

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%, so uid, folder, accountId, and even the confirmationId token are fully documented in the schema itself. The description adds no parameter-level meaning beyond that; 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?

The description names a specific verb and resource ("Mark an email as unread") and even the underlying mechanism ("removes the \Seen flag"), plus provider compatibility. It explicitly contrasts itself with the sibling modify_labels, so an agent can distinguish it without opening a schema.

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?

It gives a clear routing hint by calling itself a "simpler alternative to modify_labels," which tells the agent to prefer this tool over label manipulation for this purpose. It stops short of explicit when-not guidance or prerequisites, leaving the inverse tool (mark_read) unaddressed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.