Workflows
These workflows combine small, typed tools into reviewable operations. Read first, keep mutations explicit, and treat permanent deletion as a separate decision.
The five-stage pattern
Section titled “The five-stage pattern”Apply the same sequence to each workflow:
-
Discover. Find the exact alias, contact, mailbox, domain, or setting with a bounded list or lookup call. Do not guess an identifier from a display name.
-
Inspect. Read the current SimpleLogin state needed for the decision before proposing a change. Keep list and activity requests bounded.
-
Propose. State the exact tool, target, inputs, expected effect, and whether the change is reversible.
-
Approve. Let the user review the proposed write in the MCP client. Client approval is separate from server validation; permanent deletion also requires the tool’s explicit confirmation input.
-
Verify. Read the affected resource again after a write. SimpleLogin remains the source of truth for account state and email routing.
Create and tune an alias
Section titled “Create and tune an alias”-
Find existing aliases. Use
alias_listwith bounded pages and optional filters. -
Create only when needed. Choose
alias_create_randomor inspectalias_options_getbeforealias_create_custom. -
Update supported fields.
alias_updatechanges note, name, mailboxes, PGP, or pinned state. -
Set enabled state explicitly. Use
alias_set_enabled;alias_updatedoes not toggle it.
Review recent alias activity
Section titled “Review recent alias activity”-
Read the alias.
alias_getreturns details for one known alias id. -
Inspect bounded activity-metadata pages.
alias_activity_listcovers forwards, replies, blocks, and bounces. It does not read message bodies. -
Decide separately. Activity inspection is read-only; any routing or state change uses a dedicated write tool.
Create a reverse alias for sending
Section titled “Create a reverse alias for sending”-
List existing reverse aliases.
contact_listchecks recipients already attached to an alias. -
Create or reuse one.
contact_createreturns an existing contact when appropriate. -
Send from the owning mailbox. Address the actual message to the returned reverse-alias address from a real mailbox that owns the alias. simplelogin-mcp creates the routing address; it does not compose or send the email.
-
Block before deleting.
contact_set_blockedis reversible;contact_deleteis permanent and requiresconfirm=true.
Maintain routing and settings
Section titled “Maintain routing and settings”-
Inspect mailbox destinations.
mailbox_listreports verification and default state. -
Inspect custom domains.
custom_domain_listreports existing domains; the server does not claim domain creation or DNS management. -
Review account settings. Read with
settings_getbefore applying supported changes throughsettings_update.