Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

modify_labels

Destructive

Add or remove IMAP flags like Seen or Flagged on an email to organize messages across Gmail, Outlook, and custom domains.

Instructions

Add or remove IMAP flags (e.g. \\Seen, \\Flagged) on an email — works with Gmail, Outlook, and custom domains.

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>",
      "folder": "<folder>"
    },
    "name": "modify_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesThe UID of the email
folderYesThe folder containing the email
accountIdYesThe ID of the account to use
addLabelsNoLabels to add (e.g. \Seen, \Flagged)
removeLabelsNoLabels to remove
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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is carried by structured data. The description adds useful scope information (arbitrary IMAP flags, cross-provider support) but says nothing about what removal destroys, whether add/remove can be combined in one call, or how the confirmation flow affects execution.

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 action and resource first and the provider note as a trailing qualifier. Nothing is bloated, though the provider list is the least load-bearing part given the rest of the definition.

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 6-parameter destructive mutation with no output schema, the description covers what it changes but not the outcome: no word on return values, partial failure when one flag in a list is invalid, or how the confirmation token gates execution. Adequate but leaves real gaps an agent would need.

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 description coverage is 100%, so every parameter including confirmationId is documented in the schema itself; baseline is 3. The description's flag examples merely restate the addLabels schema description rather than adding syntax rules, mutual exclusivity, or format constraints beyond what is already structured.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb pair and resource: add or remove IMAP flags on an email, with examples (\Seen, \Flagged). This is far more specific than the tool name 'modify_labels', though it never explains how it relates to siblings like mark_read, star, unstar, or mark_unread, which plausibly do the same thing for single flags.

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

Usage Guidelines2/5

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

The only context given is provider compatibility ('works with Gmail, Outlook, and custom domains'), which is not when-to-use guidance. There is no statement about when to prefer this over mark_read/star versus a dedicated tool, and no mention of prerequisites such as the confirmation flow that the schema hints at.

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