Skip to main content
Glama
julioc-barros

imap-mail-mcp

set_flags

Set or remove email flags (seen, flagged, answered) for specific messages in a folder. Pass true to add, false to remove, or omit to leave unchanged.

Instructions

Marca/desmarca flags em um ou mais UIDs: seen (lido), flagged (estrela/importante), answered. Passe True para adicionar, False para remover, omita para não alterar.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seenNo
uidsYes
folderYes
flaggedNo
answeredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It clearly explains the effect of each boolean value and that multiple UIDs can be processed, but it omits any mention of side effects, error conditions, response format, or reversibility. Additionally, it does not describe how the folder parameter influences behavior beyond being required.

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?

The description is two concise sentences with no redundant words. The actions and parameters are front-loaded, and the critical usage pattern (True/False/omit) is stated immediately. Every sentence contributes to understanding.

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?

While the description adequately covers the flag semantics and the ability to handle multiple UIDs, it is incomplete for an agent that must call the tool correctly. It does not mention failure modes, the meaning of 'folder', or what response to expect. Given there is no output schema and no annotations, a more comprehensive description that covers these aspects would be expected.

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?

Schema coverage is 0%, so the description must compensate. It explains the semantic meaning of the three boolean flags (True/False/omit) and explicitly states the tool operates on multiple UIDs. This adds value beyond the bare schema. However, it does not elaborate on the 'folder' parameter, which is a required string but its role in selecting the mailbox is left implicit.

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?

The description states a precise action: marking/unmarking flags on UIDs, and explicitly enumerates the three flags (seen, flagged, answered). This clearly differentiates it from sibling tools that handle reading, moving, or deleting messages, leaving no ambiguity about its purpose.

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?

The description explains how to use the tool (True to add, False to remove, omit to not change) but provides no explicit guidance on when to choose this tool over alternatives, such as read_email which may implicitly mark messages as seen. The context implies it's for flag manipulation, but there is no explicit exclusion or alternative mention.

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