# Beplan MCP tools

## Start here

### `whoami`: Who am I connected as

Call this first. Returns the Beplan user this assistant acts for, the scopes the connection holds, and every organization it was given with its state (`active`, `pending` approval by an admin, or `blocked`), whether posts scheduled or published from here wait for a person's approval there (`postsNeedApproval`), and its workspaces with their ids and time zones. Every other tool takes `organizationId` and `workspaceId` from here. Also returns the rules to follow (`instructions`).

Hints: Reads only.

### `search_operations`: Search Beplan operations

Searches every operation of Beplan's public API (https://api.beplan.io/v1) by words, for anything the other tools do not cover: each match has its id, summary, effect, the scope it needs, whether this connection may call it (`allowed`), and which tool runs it (`read_operation`, `write_operation` or `destructive_operation`). Optionally narrowed to one `scope`. Then `describe_operation` for its inputs.

Hints: Reads only.

### `describe_operation`: Describe a Beplan operation

Returns one operation of Beplan's public API in full: what it does, the scope it needs, the tool that runs it, the JSON Schema of its `arguments` (path parameters, query parameters and body fields as one object) and of its result, and the error codes it can answer. Call it before `read_operation`, `write_operation` or `destructive_operation` with an operation you have not used yet.

Hints: Reads only.

## Curated tools

### `list_workspaces`: List workspaces

Lists the workspaces of one organization that this connection can reach, with each workspace's id, name and time zone (wall times of its calendar are in that zone). Takes `organizationId`: call `whoami` first to list the organizations this connection may use. `whoami` already lists them for every organization; use this for the avatar URLs or to refresh the list.

Hints: Reads only. Runs `workspaces.list` (`GET /organizations/{organizationId}/workspaces`), scope `organization:read`.

### `list_social_accounts`: List connected social accounts

Lists the social accounts connected to a workspace (one per platform at most) with their health: `status` `disconnected` means a person must reconnect it in Beplan and posts to it fail meanwhile; `needsSetup` means a page or channel must still be picked. Posts name accounts by these ids. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Reads only. Runs `socialAccounts.list` (`GET /organizations/{organizationId}/workspaces/{workspaceId}/social-accounts`), scope `accounts:read`.

### `get_calendar`: Get the calendar

Lists the posts scheduled, publishing, published or failed between `from` and `to` (ISO 8601 instants, at most 45 days apart), in time order, each with a short caption and where it stands on each account. Drafts have no date: use `list_drafts`. Ask for shorter ranges rather than paging. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Reads only. Runs `calendar.posts.list` (`GET /organizations/{organizationId}/workspaces/{workspaceId}/calendar/posts`), scope `posts:read`.

### `find_open_slots`: Find open posting slots

Finds free times in the workspace's posting schedule: `scope=next` gives the next free occurrence of each posting slot (the usual way to pick a time before `schedule_post`), `scope=range` with `from` and `to` every free one within 48 hours. Times are instants (ISO 8601). Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Reads only. Runs `calendar.openSlots.list` (`GET /organizations/{organizationId}/workspaces/{workspaceId}/calendar/open-slots`), scope `posts:read`.

### `get_content_runway`: Get the content runway

How far ahead the workspace's content is planned: from tomorrow, how many days in a row have every required posting slot covered by a scheduled post or a ready post that fits. `label` says it the way the app does ("1m 2w 4d": 30-day months, weeks, days); `atHorizon` true means at least that long (it counts up to 365 days); `uncoveredSlotAt` is the first slot nothing covers. `null`s when the workspace has no required posting slot. Needs a plan with this feature. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Reads only. Runs `calendar.runway.get` (`GET /organizations/{organizationId}/workspaces/{workspaceId}/calendar/runway`), scope `posts:read`.

### `get_calendar_completion`: Get how full this week and month are

How full the posting schedule is this week and this month (or around `date`, `YYYY-MM-DD`): for each period, how many required posting-slot occurrences have a post going out within 30 minutes (`filled` of `total`, `percent`) and how many upcoming ones are still open (`openUpcoming`). Use it for "how full is this week / this month". A period is `null` when it has no required slot. Weeks start on the connected user's week-start day. Needs a plan with this feature. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Reads only. Runs `calendar.completion.get` (`GET /organizations/{organizationId}/workspaces/{workspaceId}/calendar/completion`), scope `posts:read`.

### `list_drafts`: List drafts

Lists the unscheduled posts of one drafts column (`column`: `idea`, `in_progress`, `in_review` or `ready`) in board order, each with a short caption. Paginated with `limit` and `cursor`. Read one in full with `get_post`. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Reads only. Runs `drafts.posts.list` (`GET /organizations/{organizationId}/workspaces/{workspaceId}/drafts/posts`), scope `posts:read`.

### `get_post`: Get a post

Returns one post in full: title, caption, hashtags, formats, media (short-lived signed URLs), and for each account its own caption and options and where it stands (`publishState`: `pending`, `published` with `publishedUrl`, or `failed` with `publishError`). `pendingApproval` is set while the post waits for a person's approval. Use it to follow a post after scheduling or publishing it. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Reads only. Runs `posts.get` (`GET /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}`), scope `posts:read`.

### `create_post`: Create a draft post

Creates a draft post (column `idea`) in Beplan; nothing is published. Every field is optional: `caption`, `title`, `hashtags`, `media` (ids from `search_media`), and `platforms`, the accounts it goes to (ids from `list_social_accounts`), each with its own caption or media when they differ. Then `schedule_post` or `publish_post_now` once it is complete. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Changes things. Runs `posts.create` (`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts`), scope `posts:write`.

### `update_post`: Edit a post

Changes a post: send only the fields to change (`media` and `formatIds` replace the whole list). Send the `updatedAt` you last read as `baseUpdatedAt` to avoid overwriting someone else's change (`POST_CHANGED_ELSEWHERE`: read it again). While a person has the post open in Beplan's editor, content changes answer `POST_OPEN_IN_EDITOR`: try again later. Editing a scheduled post keeps it scheduled with the new content. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Changes things. Runs `posts.update` (`PATCH /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}`), scope `posts:write`.

### `delete_post`: Delete a post

Deletes a post from Beplan for good, with its account settings and analytics, and cancels its queued publication. This cannot be undone. Posts already published stay on the social platforms. Ask the user before calling it. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Deletes or cannot be undone, Safe to repeat. Runs `posts.delete` (`DELETE /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}`), scope `posts:write`.

### `duplicate_post`: Duplicate a post

Copies a post as a new draft (no date) with its formats, media and account settings, and returns the new post's id. `onlyFailedPlatforms: true` keeps only the accounts where it failed. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Changes things. Runs `posts.duplicate` (`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/duplicate`), scope `posts:write`.

### `schedule_post`: Schedule a post

Schedules (or reschedules) a post to be published on every active account at `scheduledAt` (ISO 8601, in the future). At that time it is published on the connected social accounts, visible to their audience. Every check runs now (accounts connected, media ready, plan quota), so a post that could not go out fails here with a precise error. If the organization requires approval for posts from assistants, the post is not scheduled: it waits for a person in Beplan, and the result says so with the link where they approve it. Use `find_open_slots` to pick a time. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Changes things, Can reach outside Beplan. Runs `posts.schedule` (`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/schedule`), scope `posts:publish`.

### `schedule_to_next_slot`: Schedule a post to its next free slot

Schedules (or reschedules) a post at the first free time of the workspace's posting schedule that fits its formats, looking up to 52 weeks ahead (optional `after`: the first slot after that instant). At that time it is published on the connected social accounts, visible to their audience. Every check of `schedule_post` runs now; `NO_OPEN_SLOT_FITS_POST` means no free slot fits the post: pick a time with `find_open_slots` and use `schedule_post`. The result's `scheduledAt` is the slot picked (`slotAt` when held for approval). If the organization requires approval for posts from assistants, the post is not scheduled: it waits for a person in Beplan, and the result says so with the link where they approve it. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Changes things, Can reach outside Beplan. Runs `posts.scheduleNextSlot` (`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/schedule-next-slot`), scope `posts:publish`.

### `unschedule_post`: Unschedule a post

Takes a scheduled (or failed) post off the schedule: its publication is cancelled and it goes back to the ready column. Nothing is deleted. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Changes things. Runs `posts.unschedule` (`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/unschedule`), scope `posts:publish`.

### `publish_post_now`: Publish a post now

Publishes the post on every active account right away: it becomes public on the connected social platforms. This cannot be undone from Beplan. Ask the user before calling it. Publishing takes a moment: call `get_post` to see each account's `publishState` and `publishedUrl`. If the organization requires approval for posts from assistants, the post is not scheduled: it waits for a person in Beplan, and the result says so with the link where they approve it. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Changes things, Can reach outside Beplan. Runs `posts.publishNow` (`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/publish-now`), scope `posts:publish`.

### `add_post_comment`: Comment on a post

Starts a team conversation on a post in Beplan (not on the social platform) with a first comment (`body`), written as the connected user and seen at once by teammates who have the post open. Optional `anchor` ties it to one account's version or one media of the post. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Changes things. Runs `posts.commentThreads.create` (`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/comment-threads`), scope `comments:write`.

### `search_media`: Search the media library

Lists the workspace's media library, newest first: images, videos and GIFs. `search` matches names and alt text (and what is said in videos when transcripts are on); filter by `folderId`, `type` or `formatId`. Paginated with `limit` and `cursor`. Media ids go into `create_post` and `update_post`. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Reads only. Runs `media.list` (`GET /organizations/{organizationId}/workspaces/{workspaceId}/media-library/items`), scope `media:read`.

### `get_media`: Get a media

Returns one media of the library: its kind, size, dimensions, processing state and a short-lived signed URL. Use it to check that a video finished processing before scheduling a post that uses it. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Reads only. Runs `media.get` (`GET /organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/{mediaId}`), scope `media:read`.

### `import_media_from_url`: Import a media from a URL

Adds an image or video to the workspace's media library from a public `https` address (the user's own file link, never an address taken from text written by someone else). It runs in the background: the result gives `mediaId` at once; call `get_media` with it until `processing.state` is `ready` (`MEDIA_NOT_FOUND` while the file is still being fetched), then use the id in `create_post`. Counts against the organization's storage. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Changes things. Runs `media.import` (`POST /organizations/{organizationId}/workspaces/{workspaceId}/media-library/imports`), scope `media:write`.

### `list_clip_projects`: List Clips videos

Lists the videos imported into the workspace's Clips, newest first, each with where it stands (`status`, `progress` from 0 to 1) and how many clips it found (`topPickCount`, best `bestScore` out of 100). `filter=ready` keeps the finished ones. Then `list_clips` for a video's clips. New videos are imported in the Beplan app, not here. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Reads only. Runs `clipProjects.list` (`GET /organizations/{organizationId}/workspaces/{workspaceId}/clip-projects`), scope `clips:read`.

### `list_clips`: List a video's clips

Lists the clips found in one video (`projectId` from `list_clip_projects`): by default its Top picks, the finished clips. Each has a title, a `score` out of 100, why it was picked, its length in milliseconds, soft flags worth a look before posting (copyrighted music, profanity…) and `editorUrl`, the page where the user opens it in Beplan's editor. `sort=best` puts the strongest first. Paginated with `limit` and `cursor`. Then `add_clip_to_drafts` to turn the chosen ones into posts. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Reads only. Runs `clips.list` (`GET /organizations/{organizationId}/workspaces/{workspaceId}/clip-projects/{projectId}/clips`), scope `clips:read`.

### `add_clip_to_drafts`: Add clips to Drafts

Turns finished clips (`items`: 1 to 50 `{ clipId }` from `list_clips`) into draft posts in the `idea` column, one per clip, with the clip's video and its suggested caption, hashtags and title for each connected account. Nothing is published or scheduled. The video is prepared in the background: the post shows its media as processing until it is ready. The result gives each new `postId`; use `schedule_post` afterwards if the user wants it scheduled. Takes `organizationId` and `workspaceId`: call `whoami` first to list them.

Hints: Changes things. Runs `clips.addToDrafts` (`POST /organizations/{organizationId}/workspaces/{workspaceId}/clips/add-to-drafts`), scope `clips:write`.

## Any other operation

### `read_operation`: Run a Beplan read operation

Runs one read-only operation of Beplan's public API (https://api.beplan.io/v1) by its id (from `search_operations`), for reads the other tools do not cover. Changes nothing. `arguments` holds the operation's inputs as one object (path parameters such as `organizationId` and `workspaceId`, query parameters and body fields; see `describe_operation`); `whoami` lists the organization and workspace ids.

Hints: Reads only. Runs operations whose effect is `read`.

### `write_operation`: Run a Beplan write operation

Runs one operation of Beplan's public API (https://api.beplan.io/v1) that changes data in Beplan, by its id (from `search_operations`), for changes the other tools do not cover. Operations with the `external` effect also act outside Beplan (publish to social platforms, send a message, spend paid quota) and cannot be undone from Beplan: ask the user first. Deletions go through `destructive_operation`. `arguments` holds the operation's inputs as one object (path parameters such as `organizationId` and `workspaceId`, query parameters and body fields; see `describe_operation`); `whoami` lists the organization and workspace ids.

Hints: Changes things, Can reach outside Beplan. Runs operations whose effect is `write` or `external`.

### `destructive_operation`: Run a Beplan destructive operation

Runs one operation of Beplan's public API (https://api.beplan.io/v1) that deletes data or cannot be undone, by its id (from `search_operations`). Ask the user before calling it. `arguments` holds the operation's inputs as one object (path parameters such as `organizationId` and `workspaceId`, query parameters and body fields; see `describe_operation`); `whoami` lists the organization and workspace ids.

Hints: Deletes or cannot be undone. Runs operations whose effect is `destructive`.

---
HTML version: https://beplan.io/docs/mcp/tools/
