Skip to main content
Glama
mail-mcp

mail-mcp

by spencer-fs

set_flags

Update message status by marking emails read or unread and flagging or unflagging them using folder, UID validity, and message UIDs.

Instructions

Mark messages read or unread, and/or flag or unflag them.

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": {
      "folder": "<folder>",
      "uidvalidity": "<uidvalidity>",
      "uids": "<uids>"
    },
    "name": "set_flags"
  }
}

Input Schema

NameRequiredDescriptionDefault
seenNotrue = mark read, false = mark unread, omit to leave as is.
uidsYesuids from search_messages, all from this one folder.
folderYesFolder name exactly as list_folders or search_messages returned it.
flaggedNotrue = flag, false = unflag, omit to leave as is.
uidvalidityYesThe uidvalidity that search_messages returned for this folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive mutation, so the safety profile is covered structurally. The description adds the useful behavioral point that the two flag operations can be combined in one call, but says nothing about partial failures, no-op behavior when both fields are omitted, or why idempotentHint is false for a set-style operation.

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 front-loaded sentence with no filler, immediately stating the two dimensions of the operation. Nothing is redundant or buried.

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 five-parameter mutation with fully documented schema fields, complete annotations, and no output schema, the definition plus structured data is largely sufficient. The main gap is guidance on combining flags and on omitting both fields, which the schema only partially implies.

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 the schema already explains seen, flagged, folder, uids, and uidvalidity in detail. The description only restates the overall flag semantics and adds no format or coupling details beyond the schema, which matches the baseline of 3.

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?

The description names specific verbs (mark read/unread, flag/unflag) on a specific resource (messages), so the operation is unambiguous and clearly distinct from siblings like delete_messages or move_messages. It stops short of naming an alternative, but the purpose itself is precise.

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?

There is no when-to-use guidance, no exclusions, and no mention of prerequisites such as needing uids/uidvalidity from search_messages. The 'and/or' phrasing implies the two flagging modes can be combined, but that is the only usage hint.

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