get_post_context
The drafting bundle for one account, or several: workspace, account, and the account's recent posts.
Also where the posting limits are, so do not count posts yourself: the daily cap
and today's count are account.dailyPostCap (limit, publishedLast24h,
scheduledNext24h, remaining; a rolling 24 hours, not the calendar day;
on each accounts entry with several),
and X's plan allowance this billing cycle is xUsage. The account's recent
published history is list_posts(platform=..., status="published").
workspace: name, website, logoUrl (the brand logo, for visuals), brandVersion, timezone, preferredTimes, tagOutboundLinks.account: id, name, handle, token health,postsLeftTodayandnextFreeAt(room left and the earliest time a post fits: no need to count recent posts; they hold the owner's own per-account limit when lower,limitSource: "owner"),dailyPostCap(posts per rolling 24h on the owner's plan, scheduled ones included), with posting slots itsqueue(slots, taken, how many more posts fit in the next 7 days,nextFree), for Pinterest itsboards, for Slack itsslackChannelsanddefaultSlackChannel, for InstagramrecentTags(handles it tagged) and, when reading other creators needs a reconnect first,creatorReads(note,reauthUrl).xUsage(X accounts only): this billing cycle's X posts against the X posts the plan includes, link posts against those included, and the owner's prepaidpostCreditsandlinkCredits.warning(with itsmessage) is set from 80% of the included X posts; past them each X post uses one X post credit, a link post one X link credit. schedule_post and publish_post carry the samexUsagewhen it has a warning.recentPosts: up to 15 of the account's published posts with their metrics. They are the account's voice. Empty means no history.performance: what performed, from Antwork's measured metrics over 90 days:topPosts(posts published through Antwork, best first byrankedBy, the signal that platform's ranking rewards, each with itsscore;rankedByMeansis the formula, e.g. shares per person reached on Instagram, weighted replies and reposts per impression on X, watch time on YouTube; a rate leaves out posts seen by under 30% of the account's median) andfollowers(count, change). Lean on what the top posts share (topic, hook, format) when choosing what to write. Absent when nothing is measured yet, and never ranked on Telegram, Discord, Slack or Google Business Profile.
Args:
platform: "linkedin", "x", "facebook", "instagram", "threads",
"tiktok", "youtube", "pinterest", "bluesky", "discord", "mastodon",
"telegram", "google_business" or "slack". Implied by account_id.
With neither, the error lists the connected platforms and accounts.
account_ids: Several accounts at once (one post per account): an accounts
list, each with its own recent posts (fewer per account).
Overrides platform / account_id.
account_id: One account. Needed when the platform has several:
otherwise error: "account_ambiguous" lists them.
workspace_id: Workspace ID or name. Optional if user has only one
workspace.
routine_id: Run an Autopilot routine the user saved in Antwork (a scheduled
task's prompt names it). Adds routine: its brief, mode, post
limit, what is already queued and instructions to follow. With no
account named, reads the routine's accounts.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_post_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | The user's underlying goal for this call, in one sentence without personal details. Used for product analytics only. | |
| platform | No | ||
| llm_model | No | The model identifier of the calling assistant, or "unknown". Used for product analytics only. | |
| account_id | No | ||
| routine_id | No | ||
| account_ids | No | ||
| workspace_id | No | ||
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _mcp_instructions | No | Server-issued metadata for this conversation. |