Skip to main content
Glama
mcp-icloud
by ak1tnk

mail_set_flags

Set or clear the read and flagged status of specific messages by mailbox and UID list. Use it to mark emails as seen or unflagged during inbox triage.

Instructions

Set or clear the read and flagged status of messages.

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": {
      "mailbox": "<mailbox>",
      "uids": "<uids>"
    },
    "name": "mail_set_flags"
  }
}

Input Schema

NameRequiredDescriptionDefault
seenNo
uidsYes
flaggedNo
mailboxYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it discloses almost nothing beyond the mutation itself. Critically, both boolean parameters are nullable with a null default, and the description never says whether null means "leave unchanged" or "clear the flag" — a serious ambiguity for a state-changing tool. Error behavior for invalid mailbox names or unknown UIDs is also unaddressed.

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 zero padding and no redundancy. Brevity is appropriate, though it crosses into under-specification given the unresolved null semantics.

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

Completeness2/5

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

An output schema exists, so return values need not be described, but for a four-parameter mutation tool with no annotations and no schema documentation, the description omits null semantics, required-vs-optional behavior, and any failure modes. An agent could easily send `seen: null` expecting a no-op and instead wipe state.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, but it only alludes to the two boolean flags (read/flagged → seen/flagged) without naming them. Neither `mailbox` nor `uids` is explained, and the crucial null-vs-false distinction for `seen` and `flagged` is left entirely undefined.

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?

"Set or clear the read and flagged status of messages" gives a specific verb pair plus the resource being modified, which separates it from read-only siblings such as mail_read or mail_search. It stops short of naming any sibling explicitly, so an agent must infer that this is the mutation counterpart.

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 only implied: the tool clearly applies to changing read/flagged state, but there is no statement of when to prefer it, no prerequisites (e.g., mailbox must be selectable), and no mention of related operations like moving or archiving.

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