Skip to main content
Glama

Mark emails as unread

mark_unread
Idempotent

Mark messages as unread, restoring the state they were in before something marked them read. This is the undo for mark_read, and it is the one to reach for when a triage pass marked more than the person meant. Pass the whole set in ONE call. Verified the same way mark_read is: the flags are read back off the server, so a message that could not be changed is named rather than assumed done. A uid only means something in the folder it came from, so pass mailbox when the uids did not come from INBOX. Marking a message that is already unread changes nothing and is not an error. It does not touch anything else - a message stays flagged, answered and where it was.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidsYesThe UIDs to act on, from list_emails, search_emails or select_emails. Pass EVERY message you want changed in ONE call - this tool acts on the whole set in a single operation, and doing it that way costs the user one call instead of one per message. Up to 500 at a time. A single message is simply a one-element array.
mailboxNoIMAP folder name. Defaults to INBOX.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / uids / description
      Previous value: -"The UIDs to act on, from list_emails or search_emails. Pass EVERY message you want changed in ONE call - this tool acts on the whole set in a single operation, and doing it that way costs the user one call instead of one per message. Up to 500 at a time. A single message is simply a one-element array."New value: +"The UIDs to act on, from list_emails, search_emails or select_emails. Pass EVERY message you want changed in ONE call - this tool acts on the whole set in a single operation, and doing it that way costs the user one call instead of one per message. Up to 500 at a time. A single message is simply a one-element array."
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations cover the safety profile, but the description adds substantive behavior: verification by reading flags back off the server so failed changes are named rather than assumed, the no-op-is-not-an-error idempotency semantics, and the non-interference guarantee (stays flagged, answered, in place). This is exactly the extra context beyond structured fields that earns a high score.

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?

Six dense sentences, each load-bearing: purpose, relationship to mark_read, batching instruction, verification behavior, mailbox rule, idempotency, non-interference. The single-call directive is front-loaded and no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description carries return behavior, and it does: the server verifies flags and names any message it could not change. Combined with the idempotency and scope statements, an agent has everything needed to invoke this correctly.

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 coverage is 100% so the baseline is 3, and the schema already explains batching and UID sourcing. The description adds genuine meaning by explaining *why* `mailbox` matters (a uid is only meaningful in its originating folder), which the schema's 'IMAP folder name. Defaults to INBOX.' does not convey.

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 and resource (mark messages unread) plus the exact semantic scope: restoring the pre-read state, and explicitly the inverse of mark_read. An agent can distinguish this from mark_read, flag_email and unflag_email without opening any schema.

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

Usage Guidelines5/5

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

Explicit when-to-use ('the undo for mark_read', 'when a triage pass marked more than the person meant'), how to batch ('pass the whole set in ONE call'), and a conditional routing rule: pass `mailbox` when the uids did not come from INBOX. Alternatives and the exclusion condition are both named.

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