Skip to main content

Tool reference

The server exposes 31 focused tools. You don't call these yourself — the agent picks them — but knowing what exists helps you phrase requests.

Agents work at two levels: rough ideas live on the post, publishable copy lives on its per-platform variants. If that distinction is new, read Core concepts first.

Discover​

ToolWhat it does
list_workspacesYour workspaces, slugs, roles, and timezones, plus your own user_timezone and now (the current time in that zone). Agents call this first
list_workspace_membersSearchable, pageable members in a workspace — useful when asking for peer review by teammate
list_states / list_labelsWorkflow states and labels (with ids) in a workspace
list_social_profilesConnected accounts you can use or reference — platform, profile type, display name, @username, active state, company/managed flags, and approval implications

Read​

ToolWhat it does
list_postsBrowse posts; filter by state group (idea/drafting/review/scheduled/published/…), campaign, or title search
get_postOne post in full: description + every variant's content, status, schedule, published URL, and engagement_rules; Twitter follow-ups include stable ids
list_post_activityA post's activity log: what changed, who changed it, and approval/schedule events
list_post_commentsPageable comments and replies on a post
list_post_attachmentsPageable attachment metadata and usable read URLs for a post, variant, or tweet
get_analytics_summaryCompact performance summary for visible published LinkedIn and X variants

Write​

ToolWhat it does
create_post / update_postThe container: title, description, state, campaign, labels
create_variantAdd platform content (one variant per platform per post); pass social_profile_id to choose the posting account, and set a future scheduled_at to schedule it
update_variantRewrite content, change the posting account, schedule/unschedule (scheduled_at: null returns it to draft). Published variants are locked
replace_twitter_threadStrictly replace X/Twitter follow-ups: ids from get_post preserve rows/media, id-less items create rows, and omitted ids delete rows/media
swap_twitter_thread_openingSwap the opening tweet with the first follow-up tweet, including media

Engagement automation​

Rules attach to a specific variant (each platform/channel has its own) — a LinkedIn like does not run on the Twitter variant. Delays (trigger_delay_minutes) are minutes relative to that variant's publish time (0 = as soon as eligible). Actors are workspace social profiles, addressable by social_profile_id or @username (case-insensitive on the variant's platform).

On X, a comment/reply rule and a repost rule carrying a comment_template (which makes it a quote post) are accepted only when the actor published the variant or is @mentioned in the variant's content — X refuses the rest. Creating or updating one that isn't allowed comes back as a 400 with code x_requires_author_or_mention rather than failing hours later at run time. A repost with no comment_template is a plain retweet and is always allowed, as is like. See Who may reply or quote on X.

ToolWhat it does
list_engagement_rulesRules on a post, grouped by variant. Optional variant_id or platform filter. Does not include the REST health envelope
create_engagement_ruleCreate one rule: required action (like/comment/reply/repost), actor via exactly one of social_profile_id or username, optional comment_template and trigger_delay_minutes
update_engagement_rulePartial update of action, delay, template, actor, or is_active (pause). Colliding (profile, action, delay) on the same variant returns a friendly error
delete_engagement_rulePermanently remove one rule (prefer is_active=false to pause)
set_auto_likesDeclarative auto-like set: spread_window_minutes (1–10080) plus social_profile_ids and/or usernames. The set is authoritative for accounts you may engage as: their pending likes are removed when omitted, and an empty list clears pending likes only on accounts you may engage as. Executed/in-flight likes stay. Likes on accounts you may not engage as are left as scheduled (not deleted, re-spread, or re-stamped) and still occupy slots. Pending likes are re-spread cap-aware inside the window with anti-pod spacing. Repeating the same set is safe

Collaboration​

ToolWhat it does
create_post_commentAdd a comment or reply to a post; activity and notifications behave like the app
update_post_commentEdit or resolve one of your own comments

Campaigns​

ToolWhat it does
list_campaignsCampaigns in a workspace, with ids, date ranges, colors, and statuses
create_campaignNew campaign: name (max 50 chars, unique per workspace), start_date/end_date (ISO YYYY-MM-DD, end on or after start), optional description, hex color (defaults #6B7280), and status (draft/scheduled/running/completed/cancelled, default draft). Any member can create
update_campaignChange any of those fields — only the fields you pass change. Restricted to workspace admins/owners and the campaign's creator

Posts join a campaign via create_post/update_post (campaign_id), not through the campaign tools.

Pagination and attachment URLs​

list_workspace_members, list_post_activity, list_post_comments, and list_post_attachments accept limit and offset while still returning a bare array. Member listing also accepts a case-insensitive search across email and name. Increase offset until a page contains fewer rows than limit.

Attachment file_url values are absolute WriteMars API URLs and require the same token as other API calls. preview_url may instead be a short-lived signed URL that can be opened without an auth header. Storage bucket keys are never exposed through MCP.

Publish​

ToolWhat it does
publish_variantPosts to the social platform immediately and returns the live URL. Agents are instructed to use it only when you explicitly say to publish. On a channel that requires sign-off it doesn't post — it returns the variant as needs_approval with an approval_note

Approvals​

ToolWhat it does
request_approvalAsk a teammate to peer-review a post — pass their email address or user id (must be a workspace member). They're notified and the post lands in their approval queue. Each reviewer can have at most one pending request per post
list_approvalsWithout post_id: your personal queue — peer reviews assigned to you plus channel approvals you can resolve (pending by default; filter with status). With post_id: every approval on that post, all statuses. Each item carries post_title and can_resolve; channel approvals carry a social_profile, peer reviews a reviewer
resolve_approvalDecide a request: approved, rejected, or changes_requested, with an optional comment. Resolutions are final

Not exposed through MCP​

MCP intentionally does not mirror every REST endpoint. Use the browser app or REST API for OAuth/social account connection, API-token management, workspace administration, label/state CRUD, media upload/presign/reorder/delete, notification mutation, and full analytics dashboards. Engagement-rule automation is available through both REST and the tools above.

Behavioral notes​

  • Scheduled variants don't need publish_variant — WriteMars's scheduler publishes them automatically at the scheduled time.
  • Times are in your time zone. Every list_workspaces row carries user_timezone (your profile's time zone, null until you pick one) and now in that zone, so "9am tomorrow" turns into the right moment. Agents should send scheduled_at with an offset, such as 2026-12-01T09:00:00+09:00. A value without one is read in your zone, or in UTC while you have none.
  • One variant per platform per post. Asking for a second LinkedIn variant on the same post will fail; ask the agent to update the existing one instead.
  • One posting account per variant. Use list_social_profiles first when the prompt names a handle, founder account, company page, or managed account, then pass that id as social_profile_id.
  • Engagement rules are variant-scoped. Automations never cross platforms; list/create/update always name the variant. get_post embeds each variant's engagement_rules ordered by fire delay.
  • Auto-likes are declarative. set_auto_likes is the full desired set for a variant — not an append — on the accounts you may engage as, and spreads their delays inside the window so likes don't fire as a pod. An empty list clears pending likes only on accounts you may engage as; likes on other accounts stay as scheduled.
  • Twitter threads are edited as a full follow-up list. replace_twitter_thread updates the replies after the opening tweet; the opening tweet itself is the variant content. Read stable tweet ids from get_post: including an id preserves that row and media, omitting an existing id deletes it, and an item without an id creates a new row. Legacy id-less positional behavior remains REST-only for old clients.
  • Attachment tools are read-only. Agents can inspect media metadata, but uploads and media reordering stay in the app/API flows.
  • Published variants are locked — they cannot be edited or rescheduled.
  • Peer reviews are feedback only. request_approval asks a teammate for their take — it never unlocks publishing to a gated channel. Channel approvals are filed automatically when a variant is scheduled to a gated channel; you don't create those yourself. See approvals.
  • Who can resolve an approval: a peer review, only the assigned reviewer; a channel approval, the channel's owner, their trusted members, or admins (company channels only). First eligible resolver wins and is stamped as the reviewer.
  • Approving a channel approval releases that channel's held variants back to scheduled. Rejecting or requesting changes returns them to draft and notifies the author.
  • Campaign names are unique per workspace (case-insensitive) — creating a duplicate fails; ask the agent to update or reuse the existing one instead.
  • Results respect post visibility — list_posts skips private posts outside your audience and get_post returns not-found for them, exactly like the app.
  • Errors come back to the agent in plain language (not_found, forbidden, validation_error) and it will usually self-correct — e.g. by calling list_workspaces to fix a wrong slug.

For example prompts that exercise these tools, see the prompt cookbook. For what an agent is and isn't allowed to do, see security and permissions.