Postonus
MCP

Tools

The thirteen MCP tools — arguments, what comes back, and what each one refuses.

Last updated on

Every tool is scoped to your workspace by the connection itself — none of them takes an organization or workspace argument.

The tools call the same API operations as the dashboard and the postonus CLI, so a post written here follows the same rules everywhere.

A failed call comes back as a normal tool result with isError: true, not a broken connection. Its structured content is the same error object the API and the CLI return, with every broken rule listed at once:

{
  "code": "CONTENT_TOO_LONG",
  "message": "Content exceeds the platform limit.",
  "data": {
    "violations": [
      {
        "message": "Content is 312 characters; TWITTER allows 280.",
        "platform": "TWITTER",
        "limit": 280,
        "actual": 312
      },
      {
        "message": "Content is 312 characters; BLUESKY allows 300.",
        "platform": "BLUESKY",
        "limit": 300,
        "actual": 312
      }
    ]
  }
}

Every write tool also takes:

ArgumentTypeWhat it does
dryRunbooleanRuns every check and returns the post as it would be, with dryRun: true. Nothing is saved.
clientRequestIdstringRepeating the same value within 24 hours returns the first result instead of writing again.

Times are RFC 3339 with an offset, such as 2026-08-01T09:30:00Z or 2026-08-01T11:30:00+02:00. A time with no offset is refused.

Every tool also declares an output schema and returns structured content, so an assistant reads typed fields rather than parsing text.

Resources

Four read-only resources sit alongside the tools. An assistant fetches them when it needs them, so they cost nothing until then.

URIWhat it holds
postonus://workspace/brand-voiceHow your workspace wants to sound. Worth reading before drafting anything.
postonus://platforms/rulesCharacter limits, media counts and types, thread and first-comment support, per platform.
postonus://workspace/quotaYour plan and how much of this month's per-platform allowance is left.
postonus://workspace/insightsPerformance metrics (impressions, engagements, rate), top posts, and AI takeaways.

Prompts

Three prompts start a common job in one step. Clients show them as commands — in Claude Code, type /mcp__postonus__plan_week. Each prompt reads your workspace first and gives the assistant your channels (with handles and limits), brand voice, remaining quota and best times, so it starts writing at once. Every post is saved as a draft, and nothing is scheduled until you approve.

PromptArgumentsWhat it does
plan_weektopic, optional platforms, optional days (default 7)Writes one post per day at the best send times, shows you the plan, then saves and schedules it when you approve.
write_threadsource (text or a URL), optional platformsSplits a long piece into a thread for the channels that support threads, and saves it as a draft.
review_queuenoneChecks drafts, upcoming posts and failures, and offers fixes.

platforms takes names like bluesky,linkedin, and short forms such as x, bsky and li.

list_channels

No arguments.

Returns your connected channels — each with its health and the limits the platform enforces — plus the active workspace:

{
  "workspace": {
    "id": "org_...",
    "name": "Acme",
    "timezone": "Europe/Berlin",
    "otherWorkspaces": []
  },
  "channels": [
    {
      "id": "int_...",
      "platform": "BLUESKY",
      "name": "Acme",
      "username": "acme.bsky.social",
      "connectStatus": "ACTIVE",
      "tokenStatus": "VALID",
      "healthy": true,
      "limits": {
        "maxChars": 300,
        "maxCharsWithMedia": null,
        "countUnit": "grapheme",
        "maxTitleChars": null,
        "supportsThreads": true,
        "supportsFirstComment": false,
        "maxFirstCommentChars": null,
        "maxMediaCount": 4,
        "supportedMediaTypes": ["IMAGE", "GIF", "VIDEO"]
      }
    }
  ]
}

The limits are there so an assistant can size a post before calling schedule_post instead of discovering each one from a rejection. countUnit: "grapheme" means the platform counts a family emoji as one character where String.length would charge eleven.

username is the account handle. Two channels on one platform can share a display name, so username is how an assistant tells them apart before it targets one with channelIds.

otherWorkspaces lists workspaces you belong to that this connection cannot reach. A connection made over OAuth resolves your default workspace only; use an API key bound to a specific workspace to reach another one.

get_best_times

ArgumentTypeRequired
platformsarray of platform namesyes, at least one
countnumber, 1–20no, defaults to 5

Returns upcoming send times as concrete instants, soonest first — pass one straight to schedule_post:

{
  "timezone": "Europe/Berlin",
  "slots": [
    {
      "scheduledAt": "2026-09-01T06:00:00.000Z",
      "platforms": ["LINKEDIN", "LINKEDIN_PAGE"],
      "strength": 10,
      "source": "consensus"
    }
  ],
  "platformsWithoutData": ["BLUESKY"]
}

source says where a slot came from: user when you saved posting windows for one of the platforms in Settings, consensus when several of the platforms you asked about share a window, platform when they do not intersect and each platform's own windows are used, default when we hold no research for any of them. platformsWithoutData names the platforms in the last case, so a generic answer is never mistaken for a researched one.

This is the same resolution useOptimalTime performs, so the two always agree.

get_insights

ArgumentTypeRequired
period"7d" | "30d" | "90d"no, defaults to "7d"
platformstring, a platform nameno

Returns workspace performance metrics (totals, impressions, engagements, clicks, engagement rate), top performing posts, and latest AI editorial takeaways:

{
  "period": "7d",
  "totals": {
    "impressions": 14200,
    "engagements": 620,
    "clicks": 180,
    "shares": 45,
    "comments": 85,
    "engagementRate": 4.37,
    "publishedCount": 8
  },
  "timeSeries": [
    {
      "date": "2026-11-01",
      "impressions": 2100,
      "engagements": 95,
      "clicks": 30,
      "shares": 8
    }
  ],
  "topPosts": [
    {
      "postId": "post_...",
      "scheduleId": "sched_...",
      "platform": "LINKEDIN",
      "scheduledAt": "2026-11-02T14:00:00.000Z",
      "content": "Why we redesigned our architecture...",
      "impressions": 4500,
      "engagements": 240,
      "clicks": 65,
      "shares": 20,
      "comments": 35,
      "engagementRate": 5.33
    }
  ],
  "takeaways": {
    "headline": "Strong engagement driven by architecture breakdowns.",
    "whatWorked": ["Direct technical explanations resonated well on LinkedIn"],
    "whatToImprove": ["Add clearer calls-to-action on shorter updates"],
    "recommendedActions": ["Publish follow-up case study next Tuesday"],
    "generatedAt": "2026-11-04T02:00:00.000Z"
  }
}

list_queue

ArgumentTypeRequired
statusesarray of DRAFT, SCHEDULED, PUBLISHING, PUBLISHED, FAILEDno, defaults to ["DRAFT", "SCHEDULED", "FAILED"]
limitnumber, 1–100no, defaults to 20
cursornextCursor from the previous pageno

Returns { "posts": [...], "nextCursor": "2" }: posts with their per-platform schedules, newest first. nextCursor is null on the last page. The default covers everything you can still act on; widen statuses to read published history.

This is where postId and scheduleId come from.

schedule_post

ArgumentTypeRequired
contentstringone of this or thread
threadarray of 2–25 stringsone of this or content
platformsarray of platform namesone of this or channelIds
channelIdsarray of channel idsone of this or platforms
scheduledAtRFC 3339 time with an offsetone of the three timings
useOptimalTimebooleanone of the three timings
publishNowbooleanone of the three timings
mediaarray of references from import_mediano
perChannelContentmap of channel id to textno
firstCommentmap of channel id to textno
subredditstringno
xLinkHandlingfirst_reply, plain_text, keep_liveno

Creates a post for a send time: scheduledAt, the next optimal window (useOptimalTime, the first slot get_best_times returns), or now (publishNow). To keep a post with no time, use save_draft.

Returns the post's resulting state: its text, media, and every platform's schedule id, time, and status, plus a dashboard link. You never have to read the queue back to find out what your own call did.

Targeting a specific channel

platforms posts to every connected channel on those platforms. channelIds names exact channels, which is the only way to pick between two pages on the same platform.

Per-channel copy

perChannelContent maps a channel id to text that replaces the shared body on that channel. This is how one idea ships as 280 characters on X and 3000 on LinkedIn in a single post, rather than being written down to the smallest limit.

Reddit

A post to a Reddit channel needs a subreddit. Pass subreddit as programming or r/programming. It applies to every Reddit channel on the call that has no subreddit set. Without one, the call is refused with REDDIT_SUBREDDIT_REQUIRED.

X charges per post, and a post with a live link costs more. xLinkHandling picks how a link in an X post is sent. See X credits for the cost of each choice.

  • first_reply (default): the link moves to a first reply under the post.
  • plain_text: the link is sent as text with the scheme removed and each dot in the host written [.], such as postonus[.]com.
  • keep_live: the link stays live in the post body.

Media

Import each file with import_media first, then pass what it returned in media, adding altText.

Threads

Pass thread instead of content and you get a real reply chain, not a run of separate posts: the segments publish in order, each one replying to the last. You choose where the breaks land, so numbering and punchlines stay where you put them.

{
  "thread": ["1/3 the setup", "2/3 the middle", "3/3 the payoff"],
  "platforms": ["BLUESKY"],
  "scheduledAt": "2026-09-01T09:00:00Z"
}

Each segment is checked against the platform's limit on its own, and each one spends a post of your monthly allowance — a 5-segment thread costs 5. The post's own text is the segments joined together, which is what you see in list_queue and on the calendar.

Refuses when:

  • No body, no target, or no timing is given. All the missing pieces are named in one message rather than one per call.
  • Both content and thread, both platforms and channelIds, or both scheduledAt and useOptimalTime.
  • None of the requested platforms has a connected, active channel.
  • content or any thread segment is longer than the platform allows — it is rejected, not truncated. Check maxChars from list_channels first.
  • A channel that cannot thread gets the segments joined into one post, which costs one post from the allowance. Facebook takes a long post directly, so there is no reply chain to build. The joined text must fit that channel's limit, or the call is refused as with any post. supportsThreads on list_channels says which platforms can thread.
  • The thread is over 25 segments.
  • Your workspace has hit its monthly post quota for a platform, or cannot schedule at all (a workspace whose trial has ended without a plan) — see Limits.

save_draft

ArgumentTypeRequired
contentstringone of this or thread
threadarray of 2–25 stringsone of this or content
platformsarray of platform namesno
channelIdsarray of channel idsno
mediaarray of references from import_mediano
perChannelContentmap of channel id to textno
firstCommentmap of channel id to textno
subredditstringno
xLinkHandlingfirst_reply, plain_text, keep_liveno

Saves a new post as a draft. A draft has no send time, never publishes, and spends no quota. Channels are optional, so an assistant can save the idea first and pick channels later. A draft may also be longer than a channel allows; the limit applies when it is scheduled.

The draft shows in the dashboard and in list_queue. Change it with edit_post, and give it a time with schedule_draft.

schedule_draft

ArgumentTypeRequired
postIdstringyes
scheduledAtISO 8601 datetimeone of this or useOptimalTime
useOptimalTimebooleanone of this or scheduledAt
platformsarray of platform nameswhen the draft has no channels
channelIdsarray of channel idswhen the draft has no channels

Gives a draft its send time. Text, media and per-channel copy carry over. Channels passed here replace the draft's channels.

Refuses when:

  • The post is not a draft. Move a scheduled post with edit_post.
  • The draft has no channels and none are given.
  • The text is over a channel's limit, or the monthly quota is used up. Scheduling is where both apply.

edit_post

ArgumentTypeRequired
postIdstringyes
contentstringno, one of this or thread
threadarray of 2–25 stringsno, one of this or content
platformsarray of platform namesno, one of this or channelIds
channelIdsarray of channel idsno, one of this or platforms
scheduledAtISO 8601 datetimeno, one of this or scheduleTimes
scheduleTimesarray of { scheduleId, scheduledAt }no, one of this or scheduledAt
mediaarray of references from import_mediano
perChannelContentmap of channel id to textno
firstCommentmap of channel id to textno
subredditstringno
xLinkHandlingfirst_reply, plain_text, keep_liveno

Rewrites a scheduled post in place, so fixing a typo does not leave a second post on the calendar. Pass only what changes — anything you omit stays as it is, including the attached media and the time. Returns the post's resulting state.

Moving a post

scheduledAt moves every platform's copy. scheduleTimes moves named copies individually, which is what makes one post go out at different times on different platforms — deliberate when you want it, surprising when you do not, so the two are separate arguments and you cannot pass both.

This replaces the old reschedule_post tool, which moved a single platform's schedule while looking like it moved the post.

platforms and channelIds replace the target channels rather than adding to them: a post scheduled to Bluesky and LinkedIn, edited with platforms: ["BLUESKY"], loses its LinkedIn schedule. media likewise replaces the whole media set. An edit never changes a post's status — a draft stays a draft, a scheduled post stays scheduled.

Refuses when:

  • Nothing is passed to change.
  • Both content and thread, both platforms and channelIds, or both scheduledAt and scheduleTimes.
  • Any schedule on the post has already published.
  • The post is publishing right now. Wait for it to finish.

retry_schedule

ArgumentTypeRequired
scheduleIdstringyes

Re-queues one failed platform copy of a post. Find the id with list_queue and statuses: ["FAILED"]. Returns the post's resulting state.

Only a failed schedule can be retried. If the failure was the content or a disconnected channel, fix that first — a retry on its own will fail the same way.

import_media

ArgumentTypeRequired
urlpublic URL of an image or videoyes

Copies a file into your workspace so it can be attached to a post:

{
  "mediaId": "med_...",
  "url": "https://cdn.postonus.com/...",
  "type": "IMAGE",
  "bytes": 184320
}

Pass that object back in schedule_post or edit_post under media, adding altText.

Refuses a private or local address, anything that is not an image or video, and files over 200MB.

create_media_upload

ArgumentTypeRequired
fileNamename to store the file underyes
fileTypeMIME type, e.g. image/pngyes
fileSizesize in bytesyes
checksumbase64 SHA-256 of the bytesyes

For a file you hold the bytes of, when there is no public URL to give import_media. Reserves storage against your plan quota and returns a presigned upload:

{
  "uploadId": "upl_...",
  "uploadUrl": "https://...",
  "requiredHeaders": {
    "content-type": "image/png",
    "x-amz-checksum-sha256": "..."
  },
  "expiresAt": "2026-08-25T10:00:00.000Z"
}

PUT the bytes to uploadUrl with exactly those headers, then call complete_media_upload. Storage verifies the checksum, so a body that does not match it is rejected.

Single-part only, which caps a file at 100MB. Use postonus media upload from the CLI for anything larger — it splits the file into parts.

complete_media_upload

ArgumentTypeRequired
uploadIdfrom create_media_uploadyes
checksumthe same digest you sentyes

Turns a finished upload into a media row, and returns the same shape import_media does:

{
  "mediaId": "med_...",
  "url": "https://cdn.postonus.com/...",
  "type": "IMAGE",
  "bytes": 184320
}

The media row only exists after this call. Calling it twice with the same checksum is safe.

delete_post

ArgumentTypeRequired
postIdstringyes
confirmedbooleanno (when omitted or false, the server returns inputRequired asking for confirmation)
deleteRemotebooleanno

Deletes a post and every schedule and thread segment on it. This cannot be undone. Any member of the workspace can delete any post, as in the dashboard. The tool is marked destructive, so an assistant that respects tool annotations asks you before calling it.

A post that already published leaves the workspace and stays live on the platform, unless deleteRemote is true: then it is deleted on the platforms too. Instagram, Threads and TikTok cannot delete through their APIs, so deleteRemote is refused for them.

Returns the post as it was, with deletedFromPlatforms.

A caller using an x-api-key gets no prompt, because there is nobody to prompt. Treat a key that can reach delete_post as a key that can delete any post in its workspace.

On this page