Skip to main content
Glama
adamzaidi

icloud-mcp

by adamzaidi

update_digest_state

Updates email digest state by merging processed UIDs, tracking pending actions, and accumulating sender skip counts for automated inbox management.

Instructions

Update the digest state after a run. Merges new processed UIDs into the existing list, updates lastRun, replaces pendingActions, and accumulates per-sender skip counts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lastRunNoISO timestamp of this run
processedUidsNoEmail UIDs processed in this run — merged with existing and capped at 5000
pendingActionsNoFull replacement list of pending action items to track across runs (deadlines, waiting-for-reply, etc.). Each item: { type, subject, to/from, dueDate?, notes? }
skipCountsNoMap of sender address to skip count increment for this run, e.g. { "bestbuy@email.bestbuy.com": 3 }. Accumulated across runs for smart unsubscribe.
Behavior4/5

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

No annotations provided, so description carries full burden. It excellently discloses merge-vs-replace semantics for each parameter (merges UIDs, replaces pendingActions, accumulates skip counts), but omits broader behavioral context like idempotency guarantees, error states, or what constitutes a 'run'.

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, dense sentence with zero waste. Front-loaded with the main action ('Update the digest state'), followed by parallel clauses mapping each parameter to its specific behavioral mode. Every phrase earns its place.

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?

Given this is a state-management tool for what appears to be an email digest system (evidenced by 'smart unsubscribe' in schema), the description adequately covers the four parameters but fails to explain the domain concept—what a 'digest' is, what 'processed UIDs' refer to (email IDs?), or the overall lifecycle of the digest state machine.

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?

While schema has 100% coverage, the description adds crucial semantic meaning by specifying operation types (merge vs replace vs accumulate) that aren't fully explicit in the schema alone, helping the agent understand how each parameter transforms the existing state.

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 clearly states the specific action (update) and resource (digest state), and explicitly distinguishes from sibling 'get_digest_state' by specifying this is a write operation that modifies state rather than retrieving it.

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?

Provides temporal context ('after a run') suggesting when to invoke, but lacks explicit guidance on when NOT to use this versus alternatives, and doesn't clarify the relationship with 'get_digest_state' (likely a read-before-write pattern).

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/adamzaidi/icloud-mcp'

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