Skip to main content
Glama

update-email

Idempotent

Update email state: mark read/unread, flag with due dates, complete or remove flags. Supports batch flagging.

Instructions

Update message state without modifying content (idempotent — safe to retry). action=mark-read/mark-unread toggles the isRead flag on a single message by id. action=flag sets a follow-up flag with optional dueDateTime/startDateTime (ISO 8601). action=unflag clears the flag. action=complete marks the flag as done. Flag/unflag/complete accept either id (single) or ids (batch array) — batch operations use Graph $batch for efficiency. Returns status confirmation per message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform (required)
idNoSingle message ID (required for mark-read/mark-unread, or use instead of ids for flag actions)
idsNoArray of message IDs for batch flag/unflag/complete operations
dueDateTimeNoDue date/time for follow-up, ISO 8601 (action=flag)
startDateTimeNoStart date/time for follow-up, ISO 8601 (action=flag)
Behavior5/5

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

Annotations declare idempotentHint=true, and description explicitly states 'idempotent — safe to retry', adding context. It details the effect of each action (toggles isRead, sets/clears flag, marks complete). No contradiction with annotations.

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?

Description is a single paragraph of about 5 sentences, informative but could be more structured with bullet points or shorter sentences. However, no unnecessary information is present.

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

Completeness5/5

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

Given no output schema, the description mentions 'Returns status confirmation per message', which is sufficient. It covers all actions and parameters completely.

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

Parameters5/5

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

The description adds significant meaning beyond the input schema: it explains which actions use which parameters (e.g., dueDateTime only for flag, ids for batch flag/unflag/complete) and clarifies that id is required for mark-read/mark-unread. Schema coverage is 100% but description still adds value.

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?

Description clearly states it updates message state without modifying content. The verb 'Update' along with specific actions (mark-read, unflag, etc.) precisely indicates what the tool does. It distinguishes from sibling tools like 'read-email' or 'send-email'.

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?

Description provides specific guidance on when to use each action and which parameters are required (e.g., id for mark-read/mark-unread, ids for batch flag operations). It mentions batch efficiency but lacks explicit when-not-to-use or references to alternative tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/littlebearapps/outlook-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server