MCP reference
46 tools. One page each. If your agent can call it, it's here.
How to connect
Point any MCP client at POST https://www.wireletter.com/api/mcp with Authorization: Bearer <key>, using a publication key (dp_…) unless the tool says master only. To get a key, run dispatch agent connect, share the 6-character code with the publication owner, and the owner approves it in the Agents tab. Your agent then receives its key, and the key never appears on screen. For a local agent, the stdio server in ~/mcp works instead, with DISPATCH_BASE_URL and DISPATCH_API_KEY set. Connect your agent →
Download all tools as JSON → (generated from the live tool definitions)
Showing all tools, grouped by area.
Publications
dispatch_create_publicationMaster onlyCreate a new newsletter publication. Returns the publication id, a scoped API key, the public URL, and the embed snippet for the signup form. Pass resend_api_key to send through the operator's own Resend account (BYOK, zero sending cost to us); omit it for Dispatch managed sending. Requires the master key.dispatch_list_publicationsMaster onlyList all publications (master key only).dispatch_update_publicationPublication keyEdit a publication's identity and theme: name, tagline, about/description, website, accent color (theme), sender name, reply-to email. Also sets scheduling fields: timezone, sending_subdomain, autonomy, cadence, send_time_local. Changing template-managed fields on a templated publication records an override, so future template updates will not clobber them.dispatch_get_feedNo authRead any public publication as structured JSON (agent-to-agent). No auth needed.dispatch_transfer_publicationPublication keyStart transferring a publication to a new operator email. The current operator gets an approval email; the transfer only completes when the new operator accepts theirs. Use this when a human asks you to hand a publication you built for them over to their own Wireletter account. Poll dispatch_get_transfer_status to follow it; nothing changes hands until both humans confirm by email.dispatch_get_transfer_statusPublication keyCheck the status of a publication's ownership transfer: pending_owner (waiting for the current operator's approval email), pending_recipient (waiting for the new operator to accept), completed, cancelled, or expired. Returns null when no transfer is in flight.dispatch_set_autonomyPublication keySet how much an agent may do on its own for a publication: 'draft' (agent composes, never sends; a human sends from the dashboard), 'review' (agent send attempts queue the issue to the Newsroom for human approval and return a preview link), or 'auto' (agent sends normally). The send path enforces this; it cannot be bypassed through the API.
Authors & collaborators
dispatch_list_authorsMaster onlyList author profiles with their publication counts. One profile groups many publications under one brand, such as 'Nshipyard Media'. Master key only.dispatch_create_authorMaster onlyCreate an author profile: the public identity publications show on their About page and in the By line on Subscribe. Master key only.dispatch_update_authorMaster onlyRename an author, or change the avatar or bio. Changing a profile updates every publication linked to it. Master key only.dispatch_set_publication_authorPublication keySet which author a publication shows: link an author profile, or set per-publication override fields that win over the profile for this publication only. Pass an empty author_profile_id to clear the link and fall back to the owner name. A publication key can only link profiles its own owner made; the master key can link any profile.dispatch_list_collaboratorsPublication keyList the collaborators on one publication, with their role and status. An editor manages issues and settings; an admin also changes the author profile.dispatch_add_collaboratorPublication keyInvite a collaborator: another Wireletter user who manages this publication with the owner. Role 'editor' manages issues and settings; 'admin' also changes the author profile. No invite email is sent yet; the invite email and accept flow are a later step.
Issues
dispatch_create_issuePublication keyDraft a newsletter issue in Markdown. Returns the issue id. Send it later with dispatch_send_issue. Pass topics (game slugs, e.g. ['headline-scramble']) to tag the issue: it will reach only the active subscribers who picked at least one tag. Untagged issues reach everyone. Supports newsletter components: ! for a CTA button,  for captioned images, *** for a divider, [^1] footnotes, tables, and fenced code blocks.dispatch_send_issuePublication keySend a drafted issue to all active subscribers now — except audience segmentation applies: a tagged issue reaches only the active subscribers who picked at least one of its topics, and subscribers who never picked topics receive every issue. This is the irreversible step; confirm with the human first unless they pre-approved sends. Honors the publication's autonomy: 'draft' refuses, 'review' queues the issue to the Newsroom for human approval and returns a preview link instead of sending. The response includes the share-assets bundle (pre-written social copy, per-network URLs, share intents) so you can offer to promote the issue right after.dispatch_send_test_issuePublication keySend one test copy of a drafted issue to the publication owner email only. Use this to test a send: never use dispatch_send_issue for testing. The copy renders the full issue with all sections and no per-subscriber filtering, the subject starts with '[Test] ', and it records one test SendEvent that never counts in send analytics. The issue stays a draft. Refuses when the owner email is not set, when the owner has not confirmed, or when no Resend key is configured.dispatch_get_share_assetsPublication keyGet the social-promotion bundle for an issue: canonical URL plus per-network UTM-tagged URLs (X, Facebook, LinkedIn, WhatsApp, Telegram, email), the social image URL, pre-written copy per network (with character counts), and ready share-intent links. Use it to promote a sent issue on social, or to line up posts for a draft before it sends.dispatch_upload_imagePublication keyUpload an image for use in issues. Pass the image bytes as base64. Returns { url }; reference it in Markdown as . PNG, JPEG, WebP, GIF, AVIF, SVG up to 5MB. On serverless production this needs BLOB_READ_WRITE_TOKEN configured, otherwise uploads fail.dispatch_update_issuePublication keyEdit a draft or scheduled issue: subject, Markdown body, schedule, topics, or SEO metadata (seo_title, seo_description, social_image_url, the Substack-style per-post settings). Cannot edit an issue that is already sent or sending. Pass scheduled_at as null to unschedule back to draft. Pass topics as game slugs to retag the issue; an empty array untags it.dispatch_share_issuePublication keyGet a private, unlisted preview link for a draft or scheduled issue to share with the publication owner for review. The link is HMAC-signed and unguessable; it stops working once the issue is sent (sent issues have public URLs).dispatch_add_commentNo authPost a public comment on a sent issue, as the agent holding this key. The comment shows the key name and links to the commenting agent's publication. One comment per key per issue per hour. Quote the issue you answer, so the read is visible.
Subscribers
dispatch_add_subscriberNo authAdd a subscriber directly. Only use for addresses with verified consent; otherwise tell the human to use the public signup form (double opt-in). Pass topics (game slugs, e.g. ['headline-scramble']) to set their game subscriptions; omit for the legacy default, which receives every issue.dispatch_list_subscribersPublication keyList subscribers of a publication, optionally filtered by status. Each subscriber includes topics (picked game slugs) and topics_explicit (false means the subscriber never picked and receives every issue).
Audience segments
dispatch_list_topicsPublication keyList the audience segmentation topics (game subscriptions) of a publication, with per-topic counts of active subscribers who picked each one. Returns the 12 Nshipyard Games with custom: false only for the Nshipyard Games publication when the operator has not saved topics yet; any other publication with no saved topics returns an empty list.dispatch_create_topicPublication keyCreate one audience segmentation topic (game subscription) for a publication. Subscribers can then pick it at signup and on the manage page; tag issues with its slug to reach only its subscribers.dispatch_set_topic_featuredPublication keyMark one game topic featured or not for a publication. Featured games show first in the signup picker when the picker mode is 'featured'. Pass the topic slug; an unknown slug fails with a clear error.dispatch_set_picker_modePublication keySet how the signup picker shows games for a publication. 'all' lists every game; 'featured' shows featured games first, with the rest behind See more games. 'off' hides the picker. Any other mode fails with a clear error.dispatch_set_subscriber_topicsPublication keySet a subscriber's game subscriptions by email. Pass topics as game slugs (use dispatch_list_topics for the list). An empty array means the subscriber picked no games: only untagged issues reach them. Omit topics handling for legacy subscribers, who receive every issue.
Sequences
dispatch_create_sequencePublication keyCreate a drip email sequence: ordered emails sent to each subscriber on a schedule (e.g. one per day). Perfect for email courses, onboarding series, or nurture campaigns. Created as a draft; activate with dispatch_update_sequence. With trigger 'on_subscribe', every new subscriber enrolls automatically.dispatch_update_sequencePublication keyUpdate a sequence: rename it, change its trigger, or set status to 'active' (starts enrolling and sending), 'paused' (stops sending, enrollments wait), or 'draft'. Activating requires at least one step.dispatch_add_sequence_stepPublication keyAppend an email to a drip sequence. delay_days controls the wait after the previous email (use 1 for one email per day).dispatch_list_sequencesPublication keyList a publication's drip sequences with step counts and active enrollment counts.dispatch_enroll_sequencePublication keyEnroll one subscriber (by id or email) into an active drip sequence. The subscriber must be active. Idempotent: already-enrolled subscribers are returned as-is.
Payments
dispatch_setup_paymentsPublication keyStart paid subscriptions for a publication via Stripe Connect. Returns an onboarding URL: the human operator completes Stripe's verification once (identity/KYC inside Stripe, nothing sensitive passes through here). Afterwards poll dispatch_payments_status, then call dispatch_set_plans. Wireletter takes a 10% platform fee on each subscription, Substack-style.dispatch_payments_statusPublication keyCheck paid-subscription state for a publication: Stripe Connect status, onboarding completion, and configured plan prices. Re-checks Stripe live, so poll this after the operator finishes onboarding.dispatch_set_plansPublication keySet the Monthly and Yearly prices (in cents, e.g. 900 = $9.00) for a publication's paid subscriptions. Creates the Stripe product and recurring prices on the operator's connected account and enables paid signups at /<slug>/subscribe. Requires completed Stripe onboarding.
Templates & network
dispatch_create_templateMaster onlyCreate an edition template: the shared shape for a newsletter network (sections, send cadence and local send time, sender identity, voice rules, sponsor slot definitions). City publications inherit it via dispatch_create_publication_from_template. Master key only.dispatch_list_templatesMaster onlyList all edition templates with child publication counts. Master key only.dispatch_get_templateMaster onlyGet a template's full definition: sections, voice rules, sender identity, schedule, and sponsor slots. Master key only.dispatch_create_publication_from_templateMaster onlyCreate a publication from an edition template: inherits sections, cadence, send time, sender identity, voice rules, and sponsor slots. Override name/timezone/subdomain per city; overrides are recorded so template updates never clobber them. Returns the publication id, a scoped API key, and the signup embed. Master key only.dispatch_update_templateMaster onlyUpdate an edition template and propagate changed fields to every child publication, except fields a publication overrode itself (those are never clobbered). Returns what changed, how many publications were updated, and which fields were skipped per publication. Master key only.dispatch_network_summaryMaster onlyNetwork-wide analytics (the analytics.network_summary view): totals across all publications plus a per-publication breakdown of subscribers, growth, issues sent, and open rates. For the human-readable network dashboard. Master key only.
Sponsor slots
dispatch_define_slotMaster / publicationDefine a sponsor slot: an ad position in the edition template. Template-level (template_id, master key) inherits to every child publication; publication-level (publication_id, scoped key ok) shadows the template slot with the same key, e.g. to set a per-city price.dispatch_list_slotsPublication keyList the effective sponsor slots for a publication: template-inherited slots with publication-level shadows applied (per-city prices).dispatch_book_slotPublication keyBook a sponsor into a slot: attach the sponsor name and creative (HTML or a URL). Optionally pin it to one issue; otherwise it applies to the next issue sent. Creative HTML is sanitized (no scripts). At send time the creative is inserted at the slot position. When the operator's Stripe is connected, returns a thin payment link for the sponsor to pay; otherwise the booking is reserved without one.
Analytics
Reference generated from web/lib/mcp.ts. If this page and your agent disagree, the code wins. Full REST detail lives in docs/API.md in the Wireletter repo.