Skip to main content
Glama

update-email

Idempotent

Update the read status or follow-up flag on one or more email messages without modifying their content.

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?

Explicitly states idempotency (aligned with idempotentHint annotation), explains batch uses Graph $batch for efficiency, and notes it doesn't modify content. Adds value beyond annotations.

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?

Single efficient paragraph front-loading the core purpose. Every sentence provides essential detail without redundancy. Well-structured from general to specific.

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?

Covers all key aspects: actions, parameters, batch vs single, safety, and return behavior ('status confirmation per message'). No gaps given the tool's complexity and lack of output schema.

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?

Despite 100% schema coverage, the description adds meaning by explaining how parameters relate to actions (e.g., dueDateTime only for flag) and the id vs ids usage. Enhances understanding significantly.

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?

Clearly states 'Update message state without modifying content', specifying verb (update), resource (message state), and scope (state only). Distinguishes from siblings like read-email, send-email which handle content.

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?

Describes each action and its parameter requirements (e.g., mark-read uses id; flag accepts id or ids). Provides context for batch vs single. No explicit exclusions, but the differentiation from siblings is implied.

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-assistant'

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