PlanPost
v0.4.1Let 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.
| Parameter | Type | Description |
|---|---|---|
campaign | string | Filter by campaign tag, e.g. 'garmin-cirqa-2026' (matches utm.campaign; slugified automatically) |
label | string | Filter by internal label (case-insensitive substring), e.g. 'Garmin CIRQA' |
limit | number | Posts per page (default: 20, max: 100) |
page | number | Page number (default: 1) |
platform | string | Filter by platform (instagram, twitter, linkedin, etc.) |
postType | string | Filter by post type |
search | string | Free-text search across content, thread segments and label |
sort | string | Sort order: newest (default), oldest, or scheduled (soonest scheduled first) |
status | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Post 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.
| Parameter | Type | Description |
|---|---|---|
connectionIds * | array | Array of social connection IDs to post to. Use list_connections or list_account_groups to find IDs. |
content * | string | Post text content |
campaign | string | Campaign 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… |
label | string | Internal 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… |
media | array | Media attachments shared across every platform (use upload_media first to get URLs). Override per-platform via platformMedia. |
platformContent | object | Per-platform content overrides, e.g. { twitter: 'shorter version', linkedin: 'longer version' } |
platformMedia | object | Per-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… |
platformSettings | object | Per-platform settings, e.g. { instagram: { isReel: true }, youtube: { title: '...', visibility: 'public' } }. TikTok: a scheduled or published post MUST carry { tiktok: { privacyLevel } } with one of… |
postType | string | Explicit 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… |
schedule | string | Natural-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… |
scheduledFor | string | ISO 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. |
threadSegments | array | Ordered tweet segments for a thread (only used when postType='thread', X/Twitter-only). 2–25 segments, each 1–280 characters. |
timezone | string | Timezone for scheduling (default: UTC) |
utm | object | Per-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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Post 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…
| Parameter | Type | Description |
|---|---|---|
posts * | array | Array of post payloads. Each accepts every create_post field: content, connectionIds, platformContent, platformSettings, postType, threadSegments, label, campaign, schedule/scheduledFor, media, platfo… |
defaults | object | Fields 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.
| Parameter | Type | Description |
|---|---|---|
campaign | string | Delete posts tagged with this campaign, e.g. 'garmin-cirqa-2026' |
confirm | boolean | false/omitted = dry run listing what WOULD be deleted. true = actually delete. Always dry-run first. |
ids | array | Explicit post IDs to delete |
label | string | Delete posts whose internal label matches (case-insensitive substring) |
status | string | Restrict 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.
| Parameter | Type | Description |
|---|---|---|
limit | number | Items per page (default: 20, max: 100) |
page | number | Page number (default: 1) |
search | string | Filter by filename (case-insensitive substring), e.g. 'cirqa' |
type | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Post ID to update |
campaign | string | null | Re-tag this post's campaign (sets utm.campaign). Pass null to clear. |
connectionIds | array | New connection IDs |
content | string | New post text content |
label | string | null | Internal working name shown in the dashboard. Pass null to clear. Never published. |
media | array | Replace the shared media array. Omit to leave existing media alone. |
platformContent | object | Per-platform content overrides |
platformMedia | Per-platform media overrides. Pass `null` to clear all overrides (every platform uses the shared `media` array). Omit to leave overrides unchanged. | |
platformSettings | object | Per-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… |
postType | string | Explicit 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 —… |
schedule | string | Natural-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… |
scheduledFor | string | New schedule time (ISO 8601), or empty string to unschedule |
threadSegments | array | Ordered tweet segments for a thread (postType='thread'). 2–25 segments, each 1–280 characters. |
timezone | string | Timezone |
utm | Per-post UTM overrides. Pass `null` to clear all overrides (use user defaults). Omit to leave alone. |
delete_post
Delete a post.
| Parameter | Type | Description |
|---|---|---|
id * | string | Post 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Post 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`…
| Parameter | Type | Description |
|---|---|---|
days | integer | Look-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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Post 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.
| Parameter | Type | Description |
|---|---|---|
default | boolean | When true, fetch the team's default group and ignore idOrName. |
idOrName | string | Mongo 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Group name |
color | string | Display color (hex) |
connectionIds | array | Social connection IDs to include (see list_connections) |
description | string | |
isDefault | boolean | Make 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Group ID |
color | string | |
connectionIds | array | REPLACES the group's connections when provided |
description | string | |
isDefault | boolean | |
name | string |
delete_account_group
Delete an account group (does not disconnect the underlying social accounts).
| Parameter | Type | Description |
|---|---|---|
id * | string | Group ID |
add_connections_to_group
Add social connections to an existing account group.
| Parameter | Type | Description |
|---|---|---|
connectionIds * | array | Connection IDs to add |
id * | string | Group ID |
remove_connections_from_group
Remove social connections from an account group.
| Parameter | Type | Description |
|---|---|---|
connectionIds * | array | Connection IDs to remove |
id * | string | Group ID |
get_connection_link
Generate a link the user can open in their browser to connect a new social account (OAuth needs a human — send them this link).
| Parameter | Type | Description |
|---|---|---|
provider * | string | Platform to connect |
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.
| Parameter | Type | Description |
|---|---|---|
postId * | string | Post ID to submit (create it first with create_post) |
expiresInDays | number | Auto-expire the approval link after N days |
reviewerEmail | string | E-mail the approve link to a specific reviewer (e.g. the client). Omit to notify the team's approvers in-app. |
supersede | boolean | If 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.
| Parameter | Type | Description |
|---|---|---|
status | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
approvalId * | string | Approval ID from submit_for_approval |
get_analytics
Get post performance analytics — impressions, likes, comments, shares.
| Parameter | Type | Description |
|---|---|---|
endDate | string | End date (ISO 8601) |
limit | number | Results per page |
page | number | Page number |
platform | string | Filter by platform |
startDate | string | Start date (ISO 8601) |
upload_media
Get a presigned URL to upload an image or video for use in posts.
| Parameter | Type | Description |
|---|---|---|
contentType * | string | MIME type (e.g. 'image/jpeg', 'video/mp4') |
filename * | string | File name (e.g. 'photo.jpg') |
size * | number | File size in bytes |
repurpose_content
Save AI-repurposed content as draft posts. Provide an array of posts with content and target connections.
| Parameter | Type | Description |
|---|---|---|
posts * | array | Array 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.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Field values for the template, e.g. { quoteText: '...', backgroundColor: '#111' }. Field names come from the template definition. |
templateId * | string | Template ID from list_video_templates |
aspectRatio | string | Override 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).
| Parameter | Type | Description |
|---|---|---|
id * | string | Render ID from create_video |
generate_carousel
Generate carousel slide TEXT (title/content/quote/CTA) from long-form content. Then call render_carousel to turn the slides into branded PNG images in the media library.
| Parameter | Type | Description |
|---|---|---|
content * | string | Source content to decompose into slides (20–10,000 chars) |
brandColors | object | Brand colors as hex strings |
maxSlides | number | Max slides, 3–10 (default 5) |
platform | string | Platform hint for tone/length (default instagram) |
style | string | Copywriting tone hint |
list_carousel_styles
List the carousel design system: template families (with content-variant layouts), the 40-palette library (with resolved colors), output formats, font pairings, and slide caps. Use the ids with render_carousel.
render_carousel
Render carousel slides into branded PNG images (server-side, pixel-perfect) saved to the media library. Returns a render ID — poll get_carousel_render until 'completed'. Slide 1 uses the family's cover layout, the last slide its CTA layout, middle slides cycle content variants.
| Parameter | Type | Description |
|---|---|---|
family * | string | Template family id from list_carousel_styles (e.g. 'bold-announcement', 'tips-listicle', 'photo-story') |
slides * | array | 2–10 slides, in order (from generate_carousel or hand-written) |
brandKitId | string | Brand kit id from list_brand_kits — applies its palette, fonts, logo, and handle (explicit values below still win; narrow with brandParts) |
brandParts | object | With brandKitId: which kit parts to apply. Omitted object/keys default to true (apply everything) — set a key to false to skip that part |
defaultImageUrl | string | Fallback https image for photo layouts when a slide has none |
fontPairingId | string | Font pairing (defaults to the family's) |
fontSize | string | Type scale (default medium) |
format | string | Output size: portrait 1080×1350 (default, IG/FB), square 1080×1080, square-lg 1200×1200 (LinkedIn), story 1080×1920 (TikTok photo mode) |
handle | string | '@handle' meta text worked into covers and CTAs |
logoUrl | string | https logo placed bottom-left on every slide |
numbering | boolean | Add an 'i/N' position chip to each slide |
paletteId | string | Palette id from list_carousel_styles (defaults to the family's suggested palette) |
seamless | boolean | One wide mesh background sliced across all slides — swiping reveals a continuous panorama |
seamlessSeed | number | Seed for the seamless mesh (same seed = same background) |
get_carousel_render
Check a carousel render job. When completed, `assets` are full media attachments (id/type/url/key/filename/mimeType/size, in slide order) — pass them straight into create_post's `media` array to draft or schedule the carousel post.
| Parameter | Type | Description |
|---|---|---|
id * | string | Render ID from render_carousel |
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Display name for the source |
type * | string | Source type |
url * | string | Site URL (WordPress base URL or RSS feed URL) |
apiKey | string | Optional API key for protected WordPress sites |
autoImport | boolean | Automatically import new content on the sync schedule |
importFrequency | string | Auto-import frequency (default weekly) |
delete_content_source
Remove a content source.
| Parameter | Type | Description |
|---|---|---|
id * | string | Content 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Content source ID |
list_imported_content
List content already imported from a source — useful as input for repurpose_content or create_post.
| Parameter | Type | Description |
|---|---|---|
id * | string | Content 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.
| Parameter | Type | Description |
|---|---|---|
appId | string | Scope to a specific app's revenue connections |
days | number | Lookback window in days (default 30) |
includeMrr | boolean | Also fetch Stripe/RevenueCat MRR metrics (default false) |
includeTransactions | boolean | Also 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.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | What to generate (≤4000 chars) |
height | number | |
style | string | Style hint (e.g. 'photorealistic', 'illustration') |
width | number |
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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Brand 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.
| Parameter | Type | Description |
|---|---|---|
platform | string | Limit 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.
| Parameter | Type | Description |
|---|---|---|
endDate * | string | Range end (ISO 8601) |
numberOfPosts * | number | How many posts to schedule |
platforms * | array | Target platforms (e.g. ['instagram','linkedin']) |
startDate * | string | Range 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.
| Parameter | Type | Description |
|---|---|---|
slots * | array | The complete weekly slot list to store |
groupId | string | Account group id (from list_account_groups); omit for the global schedule |