Email Agent Workflows (CLI First, MCP Fallback)

This guide defines the default execution pattern for email-focused tasks in Brainforge agent workflows.


1) Default operating model

For email-oriented operations (primarily Gmail and Calendar, with optional Drive/Docs/Sheets context):

  1. Use Google Workspace CLI (gws) first
  2. Use Google Workspace MCP as fallback when:
    • gws is not installed/authenticated
    • The MCP tool is clearly better suited
    • The user explicitly asks to use MCP

References:


2) Task routing

Task typePrimary pathFallback path
Search client email threadsgws gmail users messages list/getGmail MCP tools (if available)
Draft follow-up email from contextgws read context, draft in chat/markdownMCP read tools + chat draft
Create/update calendar eventsgws calendar events insert/updateCalendar MCP tools (if available)
Read client docs/sheetsgws drive/docs/sheetsGoogle Workspace MCP

If Gmail/Calendar MCP tools are unavailable in a given environment, keep the workflow on gws and note the fallback limitation.


3) Standards source of truth

Use these docs when generating content:


4) Guardrails

  • Never invent credentials or API keys; use configured auth only.
  • Never send client email automatically unless the user explicitly confirms.
  • Keep a single canonical meeting link in calendar invites (avoid duplicate Zoom/Meet links).
  • Follow naming conventions exactly for calendar titles and email subject lines.

  • Skill: .cursor/skills/email-client-context/SKILL.md
  • Skill: .cursor/skills/email-client-follow-up/SKILL.md
  • Command: .cursor/commands/client-email-context.md
  • Command: .cursor/commands/draft-client-follow-up-email.md