Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

unstar

Destructive

Remove the flagged or starred status from an email over IMAP, including Gmail, Outlook, and custom domains. Clear the flag without changing labels.

Instructions

Unstar (unflag) an email (removes the \Flagged 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": "unstar"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesThe UID of the email to unstar
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.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=true, which alone could make an agent fear data loss; the description corrects that impression by specifying the only effect is removing the \Flagged flag. It also discloses cross-provider support (Gmail, Outlook, custom domains), which is real context beyond the annotations, but says nothing about the --confirm mode requirement covered only by the schema.

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 dense sentence: operation, exact effect, transport, provider scope, and the alternative are all front-loaded with no filler. Nothing could be cut without losing routing information.

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 with a fully documented schema and no output schema, this covers what an agent needs: what changes, on what, and which sibling to prefer. The only gap is that the confirmation-token write path is implied only by the schema, not reinforced in prose.

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% and all four parameters carry descriptions, including the default folder and the confirmationId token semantics, so the schema does the heavy lifting. The description adds no parameter-level meaning beyond that, which is the baseline case for full coverage.

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 (unstar/unflag) plus the exact underlying effect (removes the \Flagged flag) and the transport (IMAP), which lets an agent distinguish it from star and from the label-manipulation siblings 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 Guidelines4/5

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

Explicitly positions itself against modify_labels as the simpler choice for this operation, which is the key routing decision. It stops short of stating exclusions (e.g. when modify_labels is still required, such as multi-account or multi-message operations), so it falls just short of a 5.

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