PlanPost

v0.4.1
io.github.lukBB/planpost Checked 4 days ago Published 21 days ago

Let your AI agent draft, schedule and publish posts to 7 social networks and read the results.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_posts

List your scheduled and published social media posts. Filter by status, platform, campaign, label, post type, or free text.

ParameterTypeDescription
campaignstringFilter by campaign tag, e.g. 'garmin-cirqa-2026' (matches utm.campaign; slugified automatically)
labelstringFilter by internal label (case-insensitive substring), e.g. 'Garmin CIRQA'
limitnumberPosts per page (default: 20, max: 100)
pagenumberPage number (default: 1)
platformstringFilter by platform (instagram, twitter, linkedin, etc.)
postTypestringFilter by post type
searchstringFree-text search across content, thread segments and label
sortstringSort order: newest (default), oldest, or scheduled (soonest scheduled first)
statusstringFilter by post status ('needs_approval' = waiting on human sign-off; 'partially_published' = some platforms live, at least one failed — see platformResults[].error and .fix)

get_post

Get details of a specific post by ID.

ParameterTypeDescription
id *stringPost ID

create_post

Create a new social media post. Saves as draft or schedules it for a specific time. X (Twitter): nothing sent to X may contain a link (URL, bare domain or t.co) — not the post, any thread segment, or a first comment (posted to X as a reply). The X API bills each link post at $0.20 vs $0.015, so the API rejects them; put a link-free version in platformContent.twitter.

ParameterTypeDescription
connectionIds *arrayArray of social connection IDs to post to. Use list_connections or list_account_groups to find IDs.
content *stringPost text content
campaignstringCampaign tag, e.g. 'garmin-cirqa-2026' (slugified automatically). Sets utm.campaign and derives a utm.content token from the format (e.g. 'ig-carousel', 'fb-static'). Group/filter/bulk-delete by this…
labelstringInternal working name shown in the PlanPost dashboard list, e.g. 'Garmin CIRQA - IG Carousel'. Never published to any platform — it just makes a campaign's drafts tellable apart. Highly recommended…
mediaarrayMedia attachments shared across every platform (use upload_media first to get URLs). Override per-platform via platformMedia.
platformContentobjectPer-platform content overrides, e.g. { twitter: 'shorter version', linkedin: 'longer version' }
platformMediaobjectPer-platform media overrides, e.g. { instagram: [<image>], twitter: [] } — instagram gets the image, twitter publishes with no media. Absent keys fall back to the shared `media` array. Empty `[]` is…
platformSettingsobjectPer-platform settings, e.g. { instagram: { isReel: true }, youtube: { title: '...', visibility: 'public' } }. TikTok: a scheduled or published post MUST carry { tiktok: { privacyLevel } } with one of…
postTypestringExplicit post type (clearer than platformSettings flags, and takes precedence over them). 'reel' needs Instagram/Facebook; 'short' needs YouTube/Instagram/TikTok/Facebook; 'story' needs Instagram (Fac…
schedulestringNatural-language schedule, easier and safer than hand-building ISO: 'now', 'draft', 'today 20:30 Europe/Warsaw', 'tomorrow 07:00', 'in 2 hours', 'next week'. Takes precedence over scheduledFor. A time…
scheduledForstringISO 8601 datetime to schedule the post (e.g. '2026-04-10T14:00:00Z'). Omit for draft. Prefer `schedule` for anything other than an exact instant.
threadSegmentsarrayOrdered tweet segments for a thread (only used when postType='thread', X/Twitter-only). 2–25 segments, each 1–280 characters.
timezonestringTimezone for scheduling (default: UTC)
utmobjectPer-post UTM tag overrides applied when attribution mode is utm. Each field can include the `{platform}` placeholder (substituted per platform at publish time). Letters, digits, `-`, `_`, `.` only. An…

preview_post

Show exactly what each platform will receive for a post: the body after platformContent overrides, the attachments after platformMedia overrides, character count vs the platform limit, whether links are clickable, and the warnings for that platform. Use this to check a post (especially carousels, videos and multi-platform posts) BEFORE scheduling or publishing. Returns structured data plus a dashboard link for the visual preview — it does not return screenshots.

ParameterTypeDescription
id *stringPost ID to preview

bulk_create_posts

Create a whole campaign of posts from one manifest. Each entry accepts the same fields as create_post; `defaults` supplies values shared by every entry (campaign, connectionIds, timezone, ...) so you don't repeat them. Rows are independent — one bad row fails alone and the rest still get created. Max 50 per call. Returns a per-row result with ids, warnings and edit links. X (Twitter): nothing sent to X may contain a link (URL, bare domain or t.co) — not the post, any thread segment, or a first comment (posted to X as a reply). The X API bills each link post at $0.20 vs $0.015, so the API r…

ParameterTypeDescription
posts *arrayArray of post payloads. Each accepts every create_post field: content, connectionIds, platformContent, platformSettings, postType, threadSegments, label, campaign, schedule/scheduledFor, media, platfo…
defaultsobjectFields merged into every entry before its own values (which always win). Ideal for campaign, connectionIds and timezone.

list_campaigns

List campaign bundles — every campaign tag in use, with post counts by status, the platforms involved and the next scheduled time. Use this to see what a campaign contains before editing or deleting it.

delete_posts

Bulk-delete posts matching a filter — e.g. every draft in a campaign. SAFETY: a filter is required (it will never delete everything), published and processing posts are always excluded, and it runs as a DRY RUN unless confirm:true. Always call once without confirm to see what matches, show the user, then confirm.

ParameterTypeDescription
campaignstringDelete posts tagged with this campaign, e.g. 'garmin-cirqa-2026'
confirmbooleanfalse/omitted = dry run listing what WOULD be deleted. true = actually delete. Always dry-run first.
idsarrayExplicit post IDs to delete
labelstringDelete posts whose internal label matches (case-insensitive substring)
statusstringRestrict to one status, e.g. 'draft'. Defaults to everything except published/processing.

list_media

List media you already uploaded, so you can reuse an asset instead of uploading it again. Each item comes back already shaped for create_post's `media` array — pass it straight through.

ParameterTypeDescription
limitnumberItems per page (default: 20, max: 100)
pagenumberPage number (default: 1)
searchstringFilter by filename (case-insensitive substring), e.g. 'cirqa'
typestringFilter by media type

update_post

Update a draft or scheduled post. X (Twitter): nothing sent to X may contain a link (URL, bare domain or t.co) — not the post, any thread segment, or a first comment (posted to X as a reply). The X API bills each link post at $0.20 vs $0.015, so the API rejects them; put a link-free version in platformContent.twitter.

ParameterTypeDescription
id *stringPost ID to update
campaignstring | nullRe-tag this post's campaign (sets utm.campaign). Pass null to clear.
connectionIdsarrayNew connection IDs
contentstringNew post text content
labelstring | nullInternal working name shown in the dashboard. Pass null to clear. Never published.
mediaarrayReplace the shared media array. Omit to leave existing media alone.
platformContentobjectPer-platform content overrides
platformMediaPer-platform media overrides. Pass `null` to clear all overrides (every platform uses the shared `media` array). Omit to leave overrides unchanged.
platformSettingsobjectPer-platform settings (e.g. { instagram: { isReel: true } }). TikTok posts need { tiktok: { privacyLevel } } (PUBLIC_TO_EVERYONE | MUTUAL_FOLLOW_FRIENDS | FOLLOWER_OF_CREATOR | SELF_ONLY) before they…
postTypestringExplicit post type; takes precedence over platformSettings flags. Same platform rules as create_post ('thread' is X/Twitter-only and needs threadSegments). Omit to leave the current type unchanged —…
schedulestringNatural-language reschedule: 'draft' (unschedule), 'today 20:30 Europe/Warsaw', 'tomorrow 07:00', 'in 2 hours', 'next week same time' (anchors on the post's current scheduled time). Use publish_post t…
scheduledForstringNew schedule time (ISO 8601), or empty string to unschedule
threadSegmentsarrayOrdered tweet segments for a thread (postType='thread'). 2–25 segments, each 1–280 characters.
timezonestringTimezone
utmPer-post UTM overrides. Pass `null` to clear all overrides (use user defaults). Omit to leave alone.

delete_post

Delete a post.

ParameterTypeDescription
id *stringPost ID to delete

retry_failed

Retry the platforms that failed on a failed or partially_published post. Only failures classified transient (platform outage, rate limit, network) are re-queued; failures that need the user — reconnect an account, top up X API credits, choose TikTok visibility — or that the payload caused are refused and returned with their fix. Platforms that already went out are never re-posted. Check get_post → platformResults[].errorClass / .fix first.

ParameterTypeDescription
id *stringPost ID with status failed or partially_published

get_delivery_report

The morning check: everything that needs the user's attention about delivery. Posts that failed or partially failed in the last `days` days with each platform's error and fix, connections whose health went dead or degraded, pending approvals whose slot is within 48 h or already passed, approvals that expired (their posts are drafts again), scheduled posts in the next 7 days that would fail preflight if dispatched now, auto-import content sources that stopped fetching, and posting queues with free slots this week while drafts wait. Same data as the 08:00 digest e-mail. Empty `hasIssues: false`…

ParameterTypeDescription
daysintegerLook-back window in days for failures and connection changes (default 1)

publish_post

Publish a draft or scheduled post immediately to all connected platforms. X (Twitter): nothing sent to X may contain a link (URL, bare domain or t.co) — not the post, any thread segment, or a first comment (posted to X as a reply). The X API bills each link post at $0.20 vs $0.015, so the API rejects them; put a link-free version in platformContent.twitter.

ParameterTypeDescription
id *stringPost ID to publish now

list_connections

List all connected social media accounts (Instagram, Twitter, LinkedIn, etc.).

list_account_groups

List account groups the user has set up in PlanPost (e.g. 'Polish Pages', 'English Pages'). Each group bundles social connections so you can target multiple accounts in one create_post call. Returns id, name, connectionCount, isDefault, and the underlying connections.

get_account_group

Fetch one account group by id, name, or default flag. Returns the group's connectionIds[] so they can be passed straight to create_post. Name matching is case-insensitive (exact match preferred, substring fallback). If the name is ambiguous the server returns 300 with the candidates.

ParameterTypeDescription
defaultbooleanWhen true, fetch the team's default group and ignore idOrName.
idOrNamestringMongo ObjectId or group name (e.g. 'Polish Pages'). Omit when using default=true.

create_account_group

Create a named account group (e.g. 'Polish Pages') bundling social connections, so future posts can target the whole set at once.

ParameterTypeDescription
name *stringGroup name
colorstringDisplay color (hex)
connectionIdsarraySocial connection IDs to include (see list_connections)
descriptionstring
isDefaultbooleanMake this the team's default group

update_account_group

Update an account group's name, description, color, default flag, or replace its full connection list.

ParameterTypeDescription
id *stringGroup ID
colorstring
connectionIdsarrayREPLACES the group's connections when provided
descriptionstring
isDefaultboolean
namestring

delete_account_group

Delete an account group (does not disconnect the underlying social accounts).

ParameterTypeDescription
id *stringGroup ID

add_connections_to_group

Add social connections to an existing account group.

ParameterTypeDescription
connectionIds *arrayConnection IDs to add
id *stringGroup ID

remove_connections_from_group

Remove social connections from an account group.

ParameterTypeDescription
connectionIds *arrayConnection IDs to remove
id *stringGroup ID

submit_for_approval

Submit a post for human approval. Use this when your API key requires approval (or whenever you want a human to sign off before publishing). Returns an approve link and an approval ID to poll. On approval the post auto-schedules if it has a scheduledFor time.

ParameterTypeDescription
postId *stringPost ID to submit (create it first with create_post)
expiresInDaysnumberAuto-expire the approval link after N days
reviewerEmailstringE-mail the approve link to a specific reviewer (e.g. the client). Omit to notify the team's approvers in-app.
supersedebooleanIf the post already has a pending approval, replace it (default false → returns 409)

list_pending_approvals

List posts waiting for approval (and their outcomes). Filter by status to build a review queue.

ParameterTypeDescription
statusstringComma-separated: pending, approved, rejected, changes_requested, expired, revoked. Default: all.

get_approval_status

Check whether a human has decided on a submitted approval yet (pending / approved / rejected / changes_requested). Poll this after submit_for_approval.

ParameterTypeDescription
approvalId *stringApproval ID from submit_for_approval

get_analytics

Get post performance analytics — impressions, likes, comments, shares.

ParameterTypeDescription
endDatestringEnd date (ISO 8601)
limitnumberResults per page
pagenumberPage number
platformstringFilter by platform
startDatestringStart date (ISO 8601)

upload_media

Get a presigned URL to upload an image or video for use in posts.

ParameterTypeDescription
contentType *stringMIME type (e.g. 'image/jpeg', 'video/mp4')
filename *stringFile name (e.g. 'photo.jpg')
size *numberFile size in bytes

repurpose_content

Save AI-repurposed content as draft posts. Provide an array of posts with content and target connections.

ParameterTypeDescription
posts *arrayArray of repurposed posts to save as drafts

list_video_templates

List available video templates (quotes, hooks, listicles, stories, product showcases, testimonials, promos). Each template describes its editable fields — use them with create_video.

ParameterTypeDescription
categorystringFilter by template category

create_video

Submit a video render job from a template. Returns a render ID — poll get_video_status until status is 'completed', then use the returned video URL as post media.

ParameterTypeDescription
fields *objectField values for the template, e.g. { quoteText: '...', backgroundColor: '#111' }. Field names come from the template definition.
templateId *stringTemplate ID from list_video_templates
aspectRatiostringOverride aspect ratio (e.g. '9:16', '1:1'). Defaults to the template's ratio.

get_video_status

Check the status of a video render job. Completed renders include presigned download URLs for the video and thumbnail (valid ~1 hour).

ParameterTypeDescription
id *stringRender ID from create_video

list_brand_kits

List saved brand kits (palette, font pairing, logo, handle). Use a kit's id as render_carousel's brandKitId for one-call branded output.

list_content_sources

List connected content sources (WordPress sites, RSS feeds) used to import content for repurposing.

add_content_source

Connect a WordPress site or RSS feed as a content source. Imported posts can then be repurposed into social content.

ParameterTypeDescription
name *stringDisplay name for the source
type *stringSource type
url *stringSite URL (WordPress base URL or RSS feed URL)
apiKeystringOptional API key for protected WordPress sites
autoImportbooleanAutomatically import new content on the sync schedule
importFrequencystringAuto-import frequency (default weekly)

delete_content_source

Remove a content source.

ParameterTypeDescription
id *stringContent source ID

fetch_source_content

Import the latest content from a source (e.g. new WordPress posts) right now, then list it with list_imported_content.

ParameterTypeDescription
id *stringContent source ID

list_imported_content

List content already imported from a source — useful as input for repurpose_content or create_post.

ParameterTypeDescription
id *stringContent source ID

get_revenue_overview

Get revenue analytics: totals and trend vs the previous period, recent transactions, and MRR metrics from connected providers (Stripe / RevenueCat / Shopify). Read-only.

ParameterTypeDescription
appIdstringScope to a specific app's revenue connections
daysnumberLookback window in days (default 30)
includeMrrbooleanAlso fetch Stripe/RevenueCat MRR metrics (default false)
includeTransactionsbooleanAlso fetch recent Stripe charges (default false)

generate_image

Generate an image with AI (DALL-E) for use in posts. Costs 1 AI credit. Returns the image URL — pass it through upload_media/create_post media flow.

ParameterTypeDescription
prompt *stringWhat to generate (≤4000 chars)
heightnumber
stylestringStyle hint (e.g. 'photorealistic', 'illustration')
widthnumber

get_brand_voices

List the user's brand voices (tone-of-voice profiles analyzed from their content).

get_brand_voice_prompt

Get the ready-to-use system prompt for a brand voice — apply it when writing posts so the content matches the user's tone.

ParameterTypeDescription
id *stringBrand voice ID (see get_brand_voices)

get_best_times

Get the best times to post per platform, based on the user's engagement history. Use before picking scheduledFor in create_post.

ParameterTypeDescription
platformstringLimit to one platform (e.g. 'instagram')

suggest_schedule

Ask the smart scheduler to spread N posts across a date range at optimal times. Returns concrete timestamps for create_post.

ParameterTypeDescription
endDate *stringRange end (ISO 8601)
numberOfPosts *numberHow many posts to schedule
platforms *arrayTarget platforms (e.g. ['instagram','linkedin'])
startDate *stringRange start (ISO 8601)

get_posting_schedule

Read the weekly posting queue schedule: the global schedule plus any per-group overrides. Slots are {day: 1-7 (Mon=1..Sun=7), time: 'HH:MM' 24h} in the user's timezone. Groups without an override inherit the global schedule. Needs the schedule:read permission.

set_posting_schedule

Replace the weekly posting queue slots for the global schedule or one account group (Pro feature; needs the schedule:write permission). Pass the FULL desired slot list — it replaces the existing one. An empty array on a group removes its override so it inherits the global schedule again.

ParameterTypeDescription
slots *arrayThe complete weekly slot list to store
groupIdstringAccount group id (from list_account_groups); omit for the global schedule