Skip to main content
Glama

Trigger email sync

trigger_email_sync

Start an on-demand sync that fetches and processes a mailbox's email, matching it to jobs. Marks the account SYNCING and returns the account once the sync is launched; the sync runs in the background — poll get_email_sync_status to follow it and stop_email_sync to cancel. Without days it resumes from the last sync; with days it re-reads that window, and mail already ingested is not duplicated. Mail the mailbox sent is stored as SENT and logged as MESSAGE_OUT on the contacts it went to — never matched to a job, classified or reviewed. Anyone who can access the mailbox's profile may run it.

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": {
      "id": "<id>"
    },
    "name": "trigger_email_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesEmail account id (UUID from list_email_accounts).
daysNoSync the last N days (1-3650), e.g. to pull older mail; omit to resume from the last sync.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the account is marked SYNCING, that it returns immediately with the account while the sync runs in the background, that already-ingested mail is not duplicated, that sent mail is stored as SENT and logged as MESSAGE_OUT and never job-matched, and it states the access requirement ('Anyone who can access the mailbox's profile may run it').

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-loaded with purpose and background-execution model, then the days semantics, then the side effects, then permissions. Dense but each clause earns its place; the sent-mail paragraph is detailed though relevant.

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?

Though there is no output schema, the description explains what is returned (the account after launch) and that the sync continues in the background, so the agent knows not to expect results synchronously. For a two-parameter mutation with clear side effects and access rules, nothing essential is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents both id and days. The description's account of the days behavior (resume vs re-read window) largely mirrors the schema text; only the non-duplication guarantee adds real meaning, so the baseline of 3 is appropriate.

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+resource: 'Start an on-demand sync that fetches and processes a mailbox's email, matching it to jobs.' It is clearly distinguished from its siblings get_email_sync_status and stop_email_sync, which are named as the follow-up and cancellation paths.

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 routes the agent: poll get_email_sync_status to follow the sync and use stop_email_sync to cancel it, and explains the days-parameter branch (omit to resume, set to re-read a window). It does not state explicit exclusions or when not to trigger a sync, so a slight gap remains.

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