mcp
v1.8.0MCP server for the Mangos AI desktop app: manage agents, drafts and schedules from Claude Code or Codex.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_agents
List every Mangos AI agent with its platform, purpose, effective targeting and config revision. API keys are never returned. After choosing an agent, call inspect_agent_for_editing before changing it. Agents with setupStatus "draft" are still being created in the app: their configuration is incomplete, they never run, and every edit tool refuses them — do not pick one as the target of a change.
create_agent
Create a complete Mangos AI config for any user-facing social agent. Creation is config-only: the agent is visible and ready but paused, defaults to manual review, inherits the app AI settings, and does not log in, run, research, draft, publish, or send.
| Parameter | Type | Description |
|---|---|---|
personaBio * | string | At least 20 characters describing who the agent represents and its perspective. |
personaName * | string | Founder, brand, or agent display name. |
platform * | string | Exact Mangos AI agent type. |
productDesc * | string | At least 20 characters describing the product, business, or subject. |
agentGoal | string | |
approvalMode | string | Defaults to manual. Review-only platforms remain manual. |
audience | string | At least 20 characters describing the ideal customer. Required for outreach agents. |
brandMentionMode | string | |
cadenceHours | number | Hours between scheduled runs. The new agent is still created paused. |
communities | array | Subreddit names for Reddit or full Facebook Group URLs for Facebook. |
curatedProfiles | array | Instagram handles explicitly chosen for priority research. Never invent handles. |
dailyLimit | number | Platform action or outreach ceiling. |
discoverySources | array | LinkedIn outreach sources: topics, people, connections. |
facebookHandle | string | Optional Facebook Page or profile name. |
generatedPersona | string | Optional complete voice profile. personaBio is used when omitted. |
githubEnabled | boolean | |
githubRepoPath | string | Local repository path. |
githubRepoUrl | string | GitHub repository URL. |
githubSource | string | |
goodExample | string | Optional example message whose style should be followed. |
hashtags | array | Single-word Instagram hashtags without #. At least three are required for Instagram commenting. |
includeReels | boolean | |
includeResearchUrl | boolean | |
inspirationUrls | array | Reddit post URLs used as structural inspiration. |
instagramHandle | string | Instagram handle. platformHandle is preferred for generic creation. |
linkMode | string | Reddit DM link behavior. |
linkedinHandle | string | LinkedIn vanity slug. platformHandle is preferred for generic creation. |
linkedinPremium | boolean | |
mentionPhrase | string | Preferred brand mention wording. |
messageGoal | string | Low-pressure outreach call to action. Required for outreach agents. |
minFitScore | number | Minimum outreach fit score, 0 to 100. |
peopleSearchQueries | array | Bio-oriented X People searches. |
peopleSearchUrls | array | Explicit LinkedIn People search URLs. |
perCycle | number | Actions or prospects handled per run. |
platformHandle | string | Account handle for the selected platform, without @, u/, or a profile URL. Facebook may omit it. |
postUrls | array | Explicit LinkedIn post URLs. |
productUrl | string | Public product URL. Required for outreach agents and optional for Reddit Post. |
redditUsername | string | Reddit username. platformHandle is preferred for generic creation. |
researchGoal | string | Optional live-research focus. |
reviewDraftCap | number | Maximum unreviewed drafts, 1 to 50. |
safeSearch | boolean | |
searchTerms | array | Discovery phrases for reply, comment, and outreach agents. |
signature | string | Optional exact DM sign-off. |
threadUrls | array | Specific Reddit post URLs for Reddit DM prospect discovery. |
threadsHandle | string | Threads handle. platformHandle is preferred for generic creation. |
tone | string | Writing, reply, comment, or DM tone in plain language. |
topics | array | Subjects for original-post agents. Required for Twitter, LinkedIn, and Threads post agents. |
twitterHandle | string | Twitter/X handle. platformHandle is preferred for generic creation. |
twitterPremium | boolean | |
useGlobalSearch | boolean | Reddit Reply only. Allows creation without named communities. |
visionEnabled | boolean | |
webResearchEnabled | boolean |
create_instagram_dm_agent
Create a paused, review-first Instagram DM outreach agent. It inherits the app's default AI provider and never sends or starts a schedule during creation. Supply the founder identity, Instagram handle, product, audience, message goal, and cold-discovery topic phrases. The agent prioritizes people recently engaged by the same Instagram account, then curated profiles, then topic discovery. Cold first messages cannot contain URLs, existing outbound conversations are blocked, and inbound-only conversations become reply drafts.
| Parameter | Type | Description |
|---|---|---|
audience * | string | At least 20 characters describing the ideal customer and useful fit signals. |
instagramHandle * | string | The sending Instagram account handle, without @. A profile URL is also accepted. |
messageGoal * | string | What a DM should achieve, using a low-pressure next step. |
personaBio * | string | At least 20 characters describing the founder or brand and its perspective. |
personaName * | string | Founder, brand, or agent display name. |
productDesc * | string | At least 20 characters describing the product and who it helps. |
productUrl * | string | Public product website. https:// is added when omitted. |
searchTerms * | array | Required human-readable topic phrases for cold prospect discovery, for example "founder led growth". |
cadenceHours | number | Optional hours between research runs, 0.25 to 168. Defaults to 4. |
curatedProfiles | array | Optional Instagram handles the user explicitly wants prioritized, without @. Never invent handles. |
dailyLimit | number | Optional daily send ceiling, 1 to 25. Defaults to 10. |
goodExample | string | Optional sample DM whose writing style should be followed. |
minFitScore | number | Optional minimum prospect fit score, 0 to 100. Defaults to 55. |
perCycle | number | Optional prospects researched per run, 1 to 8. Defaults to 2. |
reviewDraftCap | number | Optional pending-review ceiling, 1 to 50. Defaults to 10. |
signature | string | Optional exact DM sign-off. |
tone | string | Optional DM tone. Defaults to warm and direct. |
create_email_campaign
Create a paused organic email campaign configuration. Pass businessProfileId to use an existing Business Profile. If none exists, omit the id and supply businessProfile to create the profile and first campaign together. Creation never researches, imports prospects, drafts, schedules, or sends email.
| Parameter | Type | Description |
|---|---|---|
campaign * | object | |
businessProfile | object | |
businessProfileId | string | Optional existing email-outreach Business Profile id. |
list_email_accounts
List sanitized SMTP and IMAP settings, connection health, and whether Mangos has a stored credential. Credentials are never returned.
configure_email_account
Update non-secret SMTP and IMAP settings for an existing Mangos email account. This tool never accepts passwords. Set reuseSmtpPasswordForImap to use the SMTP password already encrypted by Mangos. New credentials must be entered locally in the desktop app.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Existing account id from list_email_accounts. |
dailyCap | number | Optional local per-mailbox cap, 1 to 250. |
fromEmail | string | Optional sender email address. |
fromName | string | Optional sender name. |
imapHost | string | Optional IMAP host. |
imapPort | number | Optional IMAP port, 1 to 65535. |
imapSecure | boolean | |
inboxEnabled | boolean | Enable IMAP reply protection. |
inboxFolders | array | Optional receiving folders. An empty list monitors every safe receiving folder. |
inboxUsername | string | Optional IMAP username. Blank uses the SMTP username. |
label | string | Optional mailbox label. |
physicalAddress | string | Optional valid postal address included in outgoing email footers. |
reuseSmtpPasswordForImap | boolean | Use the already encrypted SMTP password for IMAP. |
signatureText | string | Optional sender signature. |
smtpHost | string | Optional SMTP host. |
smtpPort | number | Optional SMTP port, 1 to 65535. |
smtpSecure | boolean | |
unsubscribeText | string | Optional reply-based unsubscribe footer wording. |
username | string | Optional SMTP username. |
test_email_account
Test an existing account using only credentials already encrypted in Mangos. No credential is returned or sent through MCP.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Existing account id. |
services | array |
sync_email_inbox
Run an incremental IMAP sync now and apply reply, unsubscribe, bounce, suppression, and follow-up protections.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Existing account id. |
disconnect_email_inbox
Disconnect IMAP reply protection and erase any separately stored IMAP credential. Historical suppression and reply decisions remain enforced.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Existing account id. |
push_email_list
Push a structured people list into Mangos. Omit campaignId to create and activate a new list campaign from campaign; pass campaignId to append idempotently. Mangos validates, deduplicates across pushes and existing outreach, respects suppression and sent history, then researches accepted people at the saved cadence. This never approves or sends email.
| Parameter | Type | Description |
|---|---|---|
businessProfileId * | string | Existing email-outreach Business Profile id. |
people * | array | |
campaign | object | |
campaignId | string | Optional existing list campaign id to append to. |
list_email_lists
List every imported or MCP-pushed people list for one Business Profile, including processing funnel and campaign status.
| Parameter | Type | Description |
|---|---|---|
businessProfileId * | string | Email-outreach Business Profile id. |
get_email_list
Read a paginated Mangos people list with normalized source data, exclusions, research results, fit scores, and draft ids.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | List campaign id returned by push_email_list or list_email_lists. |
cursor | number | Optional zero-based cursor returned by the previous page. |
limit | number | Optional page size, 1 to 500. Defaults to 100. |
statuses | array | Optional row statuses to include, for example pending, drafted, duplicate, suppressed, or failed. |
get_agent
Full runtime detail for one agent: sanitized config, effective targeting, today's activity, recent actions, pending backlog, scheduled posts and outreach drafts. Use inspect_agent_for_editing before configuration changes.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
get_agent_health
Why an agent is or is not producing anything, over the last 7 days: run outcome counts, posts/replies/drafts produced, the consecutive empty-run streak (and how much the schedule has been slowed because of it), the dominant failure reason in plain language, and whether it needs a login. Use this before suggesting targeting changes.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
inspect_agent_for_editing
Required first step before editing an agent. Returns the full sanitized configuration, what this platform does, definitions for keywords and other fields, the targeting values actually used at runtime, semantic edit mappings, and a revision token that prevents stale overwrites.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
update_agent_identity
Edit who the agent represents and what it promotes. personaBio or productDesc changes regenerate the voice profile. platformHandle maps to the correct Twitter, Instagram, Facebook, LinkedIn, Threads, or Reddit handle field.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
changes * | object | |
expectedRevision * | string | Exact revision returned by inspect_agent_for_editing. Re-inspect after any successful edit or stale revision error. |
update_agent_targeting
Platform-aware targeting edit. searchTerms automatically maps to the active topics, keywords, DM discovery terms, hashtags, or localSearchQueries field for this platform. Use effectiveBehavior in the response to verify what discovery will actually use. For Reddit, communities means subreddit names. For Facebook, communities means group URLs.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
changes * | object | |
expectedRevision * | string | Exact revision returned by inspect_agent_for_editing. Re-inspect after any successful edit or stale revision error. |
update_agent_style
Platform-aware writing and outreach style edit. tone maps to replyTone, dmTone, or emailTone. For outreach, messageGoal is the CTA. agentGoal and brandMentionMode control normal social engagement strategy.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
changes * | object | |
expectedRevision * | string | Exact revision returned by inspect_agent_for_editing. Re-inspect after any successful edit or stale revision error. |
update_agent_limits
Platform-aware limits and cadence edit. dailyLimit maps to the correct post, reply, comment, prospect, outreach, or email-draft limit for this platform. perCycle maps to commentsPerCycle or prospectsPerCycle where supported.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
changes * | object | |
expectedRevision * | string | Exact revision returned by inspect_agent_for_editing. Re-inspect after any successful edit or stale revision error. |
update_agent
Advanced raw configuration patch. Prefer the semantic update tools. You must inspect first, then pass the returned revision. Unknown fields and credentials are rejected. topics and internal keyword fields must use update_agent_targeting.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
expectedRevision * | string | Exact revision returned by inspect_agent_for_editing. Re-inspect after any successful edit or stale revision error. |
patch * | object | Partial raw config using only advancedRawFields returned by inspect_agent_for_editing. |
set_agent_voice
Legacy targeting editor retained for compatibility. Prefer inspect_agent_for_editing plus update_agent_targeting, which explains and maps platform fields. keywords means active search terms here and maps to dmKeywords for Twitter DM and Instagram DM.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
expectedRevision * | string | Exact revision returned by inspect_agent_for_editing. Re-inspect after any successful edit or stale revision error. |
keywords | array | Replaces the full keywords list. |
topics | array | Replaces the full topics list. |
set_agent_scheduler
Turn an agent's schedule on or off. Off means it stops running on its own; drafts already scheduled still post.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
expectedRevision * | string | Exact revision returned by inspect_agent_for_editing. Re-inspect after any successful edit or stale revision error. |
on * | boolean | true to start the schedule, false to pause it. |
run_agent
Trigger one run of any configured agent, matching Run now in the app. Auto social agents may publish posts, replies, or comments immediately. Manual social agents create review drafts; outreach agents research prospects and queue drafts, without sending. Uses existing per-cycle settings and leaves schedules unchanged. Returns admission status (accepted, already_queued, already_running, or blocked), not completion. An accepted run may wait for the shared browser and remains subject to runtime limits and login requirements. Use get_agent to inspect activity and drafts afterward.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
run_reddit_post_draft_cycle
Run one Reddit Post research and draft-generation cycle now, then return any newly created drafts. This tool only accepts a Reddit Post agent. It does NOT approve, schedule, or publish anything. The run can still create no draft when research, subreddit rules, account access, or the review-draft cap blocks generation.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
generate_post_drafts
Generate a review-only batch for a Twitter Post, LinkedIn Post, Threads Post, or Reddit Post agent. Returns the newly persisted drafts. This never approves, schedules, publishes, or turns on the agent. GitHub-enabled agents use their configured repository as the source.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
count | number | Number of drafts to request, from 1 to 5. Defaults to 3. |
save_post_drafts
Save up to five post drafts written by the MCP client into an original-post agent review queue. Use this when the client has useful context, such as repository changes or release notes. This never approves, schedules, publishes, or turns on the agent.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
drafts * | array |
list_instagram_profiles
List the curated profiles for one Instagram agent. Includes fit score, status, last check, next scheduled check, checkedRecently, and isNextUp.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
add_instagram_profile
Add one Instagram handle to the agent curated list. The profile is pinned and prioritized for research. Pass the handle without @.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
handle * | string | Instagram handle without @. |
update_instagram_profile
Change one curated Instagram profile. pin and unpin affect retention priority. pause and resume control research. remove deletes the profile.
| Parameter | Type | Description |
|---|---|---|
action * | string | Exact profile action. |
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
handle * | string | Instagram handle without @. |
delete_instagram_profiles
Delete the explicitly named handles from one Instagram agent curated list. This does not affect the Instagram accounts or delete posts. Always list profiles first and only pass handles the user selected.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
handles * | array | Exact Instagram handles to delete, without @. |
get_own_post_replies
For an X Reply or Threads Reply agent: whether it is answering replies on the user's own posts, why not if it is off (disabled, paused, no_handle, not_set_up), the posts it is watching (each until 72 hours old), per-post counts, and replies "waiting for you" that the user should answer personally. Turn watching on or off with update_agent {watchOwnPostReplies}. Drafted answers appear in list_pending_drafts with context.sourceType "owned-post-reply".
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
stop_watching_own_post
Stop answering replies on one of the user's posts. Only for a postId returned by get_own_post_replies. The post is not revived by later profile checks.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
postId * | string | Post id from get_own_post_replies. |
dismiss_waiting_reply
Mark a "waiting for you" reply as handled (the user answered it or chose not to). Only for an id from get_own_post_replies needsYou. This never posts anything.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
replyId * | string | Reply id from get_own_post_replies needsYou. |
list_pending_drafts
Drafts an agent has generated that are waiting for review. These have NOT been scheduled yet.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
update_pending_draft
Edit a pending draft and return the exact persisted item. Pass any combination of content, title, or flairName. title and flairName apply to Reddit original posts. flairName must match one of the allowedFlairs returned by list_pending_drafts. External edits do not teach the agent.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
itemId * | string | Item id, from the matching list_* tool. |
content | string | Optional new draft body. |
flairName | string | Optional allowed Reddit flair name. Use an empty string to clear optional flair. |
title | string | Optional new title for a Reddit original post. |
delete_pending_draft
Discard a pending draft.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
itemId * | string | Item id, from the matching list_* tool. |
approve_draft
Approve a pending draft and put it on the schedule. Omit scheduledAt to let the app pick the next sensible slot for that agent.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
itemId * | string | Item id, from the matching list_* tool. |
scheduledAt | number | Optional. Unix epoch milliseconds. |
publish_draft_now
PUBLISH one named pending social draft immediately. This is a real external action that cannot be recalled. Only call it after the user explicitly asks to publish that exact draft. The app rechecks login and daily limits before posting, and removes the pending draft only after success.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
itemId * | string | Item id, from the matching list_* tool. |
list_scheduled_posts
Everything queued to go out for an agent, with its scheduled time and status.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
update_scheduled_post
Rewrite the text of an already-scheduled post without changing when it goes out.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
content * | string | The new post text. |
itemId * | string | Item id, from the matching list_* tool. |
reschedule_post
Move a scheduled post to a different time.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
itemId * | string | Item id, from the matching list_* tool. |
scheduledAt * | number | Unix epoch milliseconds. |
retry_scheduled_post
Re-queue a scheduled post that failed to go out.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
itemId * | string | Item id, from the matching list_* tool. |
cancel_scheduled_post
Take a post off the schedule.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
itemId * | string | Item id, from the matching list_* tool. |
list_dm_drafts
The DM outreach review queue for Twitter, Instagram, Reddit, and LinkedIn. Returns every draft plus open, pending, approved, inbound-reply, first-touch, and bulk-sendable counts. dailyByAgent reports sentToday, sendCap, and remainingSendsToday, including the account-scoped Instagram allowance. Instagram rows include actionType and relationshipState. Omit agentId for every DM agent at once.
| Parameter | Type | Description |
|---|---|---|
agentId | string | Optional. Limit to one DM agent. |
update_dm_draft
Rewrite one queued DM. Editing never sends it. If it was approved, the edit returns it to pending review so the changed text must be approved again.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
draft * | string | The new DM text. |
messageId * | number | Message id, from the matching list_* tool. |
bulk_update_dm_drafts
Rewrite many queued DMs in one call. Use this instead of calling update_dm_draft in a loop. Editing never sends anything, and changed approved drafts return to pending review. Returns which ids updated and which failed.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
edits * | array | One entry per draft: { messageId, draft }. |
approve_dm_drafts
Mark DM drafts as approved, meaning the user has signed off and they are ready to send. THIS DOES NOT SEND THEM. Approving is safe and reversible with unapprove_dm_drafts. Approved drafts are the only ones send_dm_drafts can queue. Instagram inbound replies can be approved, but they remain explicit named sends and are never included in bulk Send approved. If a draft has a crossAgentWarning, tell the user another agent already messaged that person before approving it.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageIds * | array | The draft ids to approve. |
unapprove_dm_drafts
Take DM drafts back to pending review, so bulk send will no longer include them. Always safe.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageIds * | array | The draft ids to unapprove. |
send_dm_drafts
ACTUALLY SEND the named, approved DM drafts: real messages to real people, which cannot be recalled. Only call this when the user has explicitly asked to send. "Approve these" is NOT a request to send. Confirm first, naming every recipient. Exact messageIds are required and pending drafts are refused. Instagram inbound replies are supported only through this explicit named-send path. The app rechecks the live conversation, applies daily caps, and sends one at a time with human-like pauses.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageIds * | array | The exact draft ids to send. |
skip_dm_draft
Drop a prospect from the DM queue.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageId * | number | Message id, from the matching list_* tool. |
list_email_drafts
The email outreach queue: recipient, subject, body and send status. Omit agentId for every email agent at once.
| Parameter | Type | Description |
|---|---|---|
agentId | string | Optional. Limit to one email agent. |
update_email_draft
Edit one queued email: subject, body, and/or the recipient address. Pass only what you want to change. Editing does not approve or send it.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageId * | string | Email message id (a uuid string), from list_email_drafts. |
bodyText | string | New plain-text body. |
recipientEmail | string | Correct or fill in the recipient address. |
subject | string | New subject line. |
bulk_update_email_drafts
Rewrite many queued emails in one call. Use this instead of calling update_email_draft in a loop. Editing does not approve or send anything. Returns which ids updated and which failed.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
edits * | array | One entry per draft: { messageId, subject?, bodyText? }. |
approve_email_drafts
Mark email drafts as approved, meaning the user has signed off and they are ready to send. THIS DOES NOT SEND THEM. Approving is safe and reversible with unapprove_email_drafts, and it never sets a send time. Approved drafts are the only ones the app's "Send approved" button will send, and the only ones send_email_drafts can queue. Already-scheduled drafts are skipped; they have their own committed send time.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageIds * | array | The draft ids to approve. |
unapprove_email_drafts
Take email drafts back to pending review, so bulk send will no longer include them. Always safe. To undo a SCHEDULED email use cancel_email_schedule instead.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageIds * | array | The draft ids to unapprove. |
send_email_drafts
ACTUALLY SEND the named email drafts: real email to real people, which cannot be recalled. Only call this when the user has explicitly asked to send; "approve these" is NOT a request to send. Confirm with the user first, naming who will receive them. You must list the exact messageIds; there is no send-everything option. The app sends them one at a time with pauses, from the user's connected mailbox, and stops at their send allowance.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageIds * | array | The exact draft ids to send. |
schedule_email
Queue a drafted email to send at a given time. Optionally save subject/body edits in the same step.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageId * | string | Email message id (a uuid string), from list_email_drafts. |
whenMs * | number | Unix epoch milliseconds to send at. |
bodyText | string | Optional. Save this body before scheduling. |
subject | string | Optional. Save this subject before scheduling. |
reschedule_email
Move an already-scheduled email to a different send time.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageId * | string | Email message id (a uuid string), from list_email_drafts. |
whenMs * | number | Unix epoch milliseconds. |
cancel_email_schedule
Unschedule an email. It stays in the queue as an unsent draft.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageId * | string | Email message id (a uuid string), from list_email_drafts. |
skip_email_draft
Drop an email from the outreach queue.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent id, e.g. agent-1738... Get it from list_agents. |
messageId * | string | Email message id (a uuid string), from list_email_drafts. |