Skip to main content
Glama
psdgator

Multi Gmail Account MCP

by psdgator

Label / mark / archive emails

modify_emails

Change up to 1,000 messages in one Gmail or IMAP account: mark read/unread, star/unstar, archive, move to Inbox, and add/remove labels without deleting mail.

Instructions

Change messages in one account: mark read/unread, star/unstar, archive (remove from Inbox), move back to Inbox, or add/remove labels (by label name or id; for IMAP accounts labels are folders). Accepts up to 1000 message ids at once. Never deletes anything.

Input Schema

NameRequiredDescriptionDefault
starNo
unstarNo
accountNoAccount alias or email address. Omit to use the default account. No accounts connected yet.
archiveNoRemove from Inbox (the mail stays in All Mail / Archive).
markReadNo
addLabelsNoLabel names or ids to add.
markUnreadNo
messageIdsYes
moveToInboxNo
removeLabelsNoLabel names or ids to remove.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly=false, destructive=false, openWorld=true), and the description reinforces this with 'Never deletes anything' plus a concrete definition of archive ('remove from Inbox; mail stays in All Mail'). It also discloses the 1000-id batch ceiling and the IMAP labels-as-folders caveat, which annotations do not. Missing is failure behavior on partial/invalid ids and whether conflicting flags (star+unstar) error.

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?

A single front-loaded sentence with the verb and resource first, and every clause carries information (operations, label syntax, batch limit, non-destructive guarantee). It is dense — one long multi-clause sentence — but nothing is redundant.

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

Completeness3/5

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

For a 10-parameter bulk mutation with no output schema, the definition covers what it changes and what it won't destroy, but omits anything about return values (e.g., count of messages changed) and error/partial-failure semantics, which matter when up to 1000 ids are submitted at once.

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?

With only 40% schema description coverage across 10 parameters, the description does real work: it explains archive semantics, that labels may be given by name or id and are folders on IMAP, and the maxItems of 1000 for messageIds. It does not address the mutual exclusivity of star/unstar or markRead/markUnread, nor the account fallback, so it improves on the schema rather than fully compensating.

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 messages in one account') and then enumerates every mutation it performs: mark read/unread, star/unstar, archive, move to Inbox, add/remove labels. That enumeration clearly separates it from read-side siblings (search_emails, read_email) and from delete_draft or bulk_cleanup.

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

Usage Guidelines3/5

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

Usage is implied by the operation list and the 'up to 1000 message ids' batching note, but there is no explicit when-to-use guidance or named alternative (e.g., 'get ids from search_emails first, use bulk_cleanup for rule-based cleanup'). The IMAP aside does clarify one context where behavior differs, which lifts it above a bare 2.

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