Skip to main content
Glama

Sync one inbox now

sync_inbox
DestructiveIdempotent

Fetches the newest ~300 messages per selected folder for iCloud/IMAP/Microsoft (Gmail's stored window grows to 300 over its first syncs, 40 newest per sync; default: INBOX + Sent + Drafts) and replaces the local window for each. Pass folders to override (and persist) the inbox's selected folder scope for this and future syncs (on iCloud and IMAP the account's Sent and Drafts folders always stay in it). Use list_folders first to get the canonical folder ids/names for this account. The spam check runs during the sync: obvious spam and scams go straight to the mailbox's Spam folder, and mail that only looks like junk or a scam gets a junkHint on its row (nothing is moved). Returns demo data marked isDemo:true if no credential is stored yet.

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": {
      "inboxId": "<inboxId>"
    },
    "name": "sync_inbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
foldersNoOverrides (and persists) the inbox's selected folders for this sync, e.g. from list_folders output. At most 25 folders.
inboxIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the local window is replaced, that folder scope is persisted for future syncs, that obvious spam is moved to the Spam folder while borderline mail only gets a junkHint, and that demo data with isDemo:true is returned when no credential exists.

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?

Front-loads the core action and scope, then layers side effects and prerequisites. The single long sentence with nested parentheticals is dense but every clause carries information; slightly better paragraphing would help.

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?

Covers side effects, persistence, spam handling, and the no-credential demo path for a mutating, open-world tool with no output schema. It is close to complete, with only the shape of the sync result (counts, errors, partial failures) left implicit.

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 covers only 50% of parameters, but the description compensates for `folders` with override/persistence semantics and the iCloud/IMAP constraint that Sent and Drafts always stay in scope. `inboxId` is left unexplained, though its meaning is largely self-evident.

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?

States a specific verb and resource ('Fetches the newest ~300 messages per selected folder ... and replaces the local window for each') with concrete scope, provider nuances, and default folder set, which distinguishes it from a plain read such as list_messages.

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?

Explicitly instructs to call list_folders first for canonical ids, and explains the default folder scope plus how passing `folders` overrides and persists it. It gives clear context but no explicit when-not-to-use or named alternative for viewing versus syncing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources