How to connect: MCP server.
The order an agent follows
1
Find the channel
integrationList gives the channel’s id and its network (platform). If the channel is not connected yet, integrationConnectTool gives you a link to connect it.2
Read the network's rules
integrationSchema returns the rules, the character limit and the settings a post needs. If a setting needs a value only the network knows, such as a WordPress post type, triggerTool looks it up.3
Bring in media, if the post has any
A file already in your media library is found with
mediaListTool. uploadFromUrlTool, the upload panel (uploadWidgetTool), the upload link (uploadLinkTool) or generateImageTool puts a new file there and returns its path. A video from a link or the API is converted first, and mediaStatusTool says when it is ready. A video made with generateVideoTool takes minutes: videoStatusTool returns its url when it is done.4
Create the post
integrationSchedulePostTool saves a draft, schedules the post or publishes it now, and returns the new post’s ID.Channels
integrationList
Lists the channels the agent can post to. Channels that are turned off, need to be reconnected or were not finished connecting are left out.
Returns
output, a list of channels: id, name (the name you gave the channel in PostQueen, or the account’s name on the network), platform (the network, such as bluesky or x), picture, display (the account handle), type and customer (id and name, when the channel belongs to one).
groupList
Lists your customers, the groups your channels are sorted into. Takes no input.
Returns output, a list of id and name.
integrationConnectTool
Gives you a link to connect a new channel. The link opens a PostQueen page that says what connecting the channel means, then sends whoever opens it to the network to sign in and approve. The agent cannot connect a channel on its own: a person clicks through the network’s consent screen. You can also pass the link to a client or a teammate, who needs no PostQueen account.
Returns
output.url, or output.errors with the reason, such as This platform cannot be connected with a link, add it from the PostQueen app instead or, during the free trial, X unlocks when your free trial ends. End the trial to connect it now.
- The link works for one hour and for one channel. A sign-in that was cancelled can be tried again with the same link.
- It cannot reconnect a channel you already have. Reconnect it in the app.
- It is for the networks that sign in on their own consent page, listed under Create a connect link. The others connect with a handle, key, password, server address, bot code, wallet or the browser extension, from Add Channel in the app.
- The plan’s channel limit is checked when the person continues from the page. When the plan has no channel left, the page says so and nothing is connected.
- Once the sign-in is done, the new channel is listed by
integrationList.
integrationSchema
Returns a network’s rules and the settings a post to it needs. The agent calls it before it writes a post for a network.
Returns
output with:
triggerTool
Runs one of a network’s helpers to look up a value a setting needs, such as a list of WordPress post types or DEV tags.
Returns
output, whatever the network answered: usually a list of id and name pairs. If the channel’s sign-in has expired, the tool tries to renew it. When that fails, the channel is marked to be reconnected and the tool says so. A channel that was deleted answers Integration not found, use integrationList to get a valid integration id.
Posts
integrationSchedulePostTool
Creates posts: a draft, a post scheduled for a time, or a post that goes out now. PostQueen checks each post the way the app does before it saves anything.
Returns
output, a list of postId and integration for each post it created. When a post fails the checks, output is errors with the reason, and nothing is created. The agent fixes the post and calls the tool again. An integrationId that is not a channel of your workspace, or a channel that was deleted, returns errors: Integration not found. A channel that is turned off or needs a reconnect returns errors with the channel’s name and “This channel needs to be reconnected before you can schedule posts. Please reconnect it from Channels.” A channel that was never finished connecting returns the channel’s name and “The connection of this channel was not finished. Please finish connecting it from Channels and select the page or account to post to, then try again.”
- Settings and length are checked for scheduled posts and posts that go out now. Over MCP, a draft is saved even when a required setting is missing, so add it before the draft is scheduled. The CLI and the API check a draft’s settings too.
- The
contentof each item is at most 1,000,000 characters. - Attachments must be media paths that end in
.png,.jpg,.jpeg,.gif,.webpor.mp4. Bring a file in with an upload tool first. - An attachment is either the
pathas a string, or{ path, alt, thumbnail, thumbnailTimestamp }with onlypathrequired.altis the alt text, up to 1000 characters.thumbnailis thepathof an uploaded.jpg,.jpegor.png, used as a video’s cover.thumbnailTimestampis the frame to use as the cover, in milliseconds. Networks that take no alt text or cover leave them out. - On WordPress, Listmonk and an X Article, pictures go inside the content as
<img src="..." alt="...">where they should appear. Thesrcis thepathof a picture in your media library.integrationSchemasays so in the network’srules. - What extra items in
postsAndCommentsbecome depends on the network: see comments and threads.
postsListTool
Lists your posts between two dates, whatever their state.
Returns
output.posts, each with id, publishDate (UTC), state (QUEUE, DRAFT, PUBLISHED or ERROR), error (why a post with the ERROR state failed, null otherwise), content, settings, group, integrationId, platform and integrationName.
postReadTool
Reads one post in full.
Returns
output with the post’s id, group, integrationId, platform, integrationName, state, publishDate and settings, and posts: the post and each comment or thread item, with its id, content, delay and attachments. An unknown ID returns error.
postSettingsTool
Changes the network settings of a post that has not gone out. The text and the publish time stay as they are.
Returns
output with postId and publishDate, or errors. It works on drafts and on scheduled posts whose time has not passed.
- A repeating post keeps repeating.
- The tool tells MCP clients that it changes data that is already saved, so a client that asks before such changes asks you to approve it.
postAttachmentsTool
Replaces the media of a post that has not gone out. The text, the settings and the publish time stay as they are.
Returns
output with postId and publishDate, or errors. It works on drafts and on scheduled posts whose time has not passed.
- Only the post’s own media change. The media of its comments or thread items stay.
- A new file must be in your media library: bring it in with an upload tool or find it with
mediaListTool, and pass itspath. The post’s current files can be passed back as they are. Any other file is refused withMedia not found: ... Upload it to the media library first. - A scheduled post is checked again with its new media, the way the app checks it. A draft is only checked for being empty.
- A repeating post keeps repeating.
- The tool tells MCP clients that it changes data that is already saved, so a client that asks before such changes asks you to approve it.
deletePostTool
Deletes a post: scheduled, draft, published or failed. The tool’s description tells the agent to show you which post it will delete (channel, date and text) and ask first. PostQueen does not check that it did.
Returns
output with postId, or errors: Post not found for an ID that is not a post of your workspace, or This id belongs to a comment, pass the id of the main post.
- It deletes the post on that one channel, with its comments. A post made for several channels has an ID on each channel, so each one is deleted on its own.
- A repeating post is listed once for each repetition, with the same ID. Deleting it deletes every repetition.
- A scheduled post that is deleted is not published. A published post is only removed from PostQueen: it stays live on the network, and you delete it there.
- Deleting cannot be undone. The tool tells MCP clients that it is destructive, so a client that asks before such actions asks you to approve it.
- The AI Copilot in the PostQueen app does not use it: there you delete a post yourself, from its card.
Analytics
Three of the analytics tools read your published posts, andintegrationAnalyticsTool reads a channel as a whole. The post tools work on the networks that report numbers: X, Facebook Page, Instagram, LinkedIn Page, YouTube, Threads, Pinterest, TikTok and Google Business Profile. Analytics lists what each one reports.
- The window (7, 30 or 90 days) picks which posts count, by publish date. The numbers are each post’s totals so far, not only what happened inside the window.
nullmeans the network does not report that number. Facebook gives no comment counts, Pinterest gives impressions only, and Google Business Profile gives no numbers per post.syncingistruewhile PostQueen is still fetching the latest numbers.
analyticsSummaryTool
Totals for the posts you published in the window.
Returns
output with syncing, date, posts (how many), reactions, comments, impressions and notes.
analyticsPostsTool
Ranks your posts, or searches them, by how they did.
Returns
output with total, page, limit, posts, and topReactions and topComments (the five strongest in the window, whatever the sort). Each post has id, content, publishDate, releaseURL, integrationId, platform, channelName, impressions, reactions, comments, shares and engagementRate.
analyticsPostTool
The numbers for one published post.
Returns
output.post with the same fields as a post in analyticsPostsTool, or output.error: not_found, not_published, unsupported, or missing_release when PostQueen does not know the post’s ID on the network yet. Connect the post to its published copy in the app, or with postqueen posts:connect.
integrationAnalyticsTool
A channel’s own numbers, one value a day, such as followers, impressions and engagement: the numbers the channel shows under Analytics in the app, and the same as Get channel analytics in the API. For the numbers of your posts, use the three tools above.
Returns
output.analytics, one entry per metric, each with a label, a percentageChange and data, a list of total and date. The metrics depend on the network, and reading the numbers explains them. An empty list means the network has no channel numbers in PostQueen or returned none for the window. A channel that is not found or needs to be reconnected returns output.errors.
- The numbers are read from the network and kept for up to an hour, so asking again within the hour returns the same numbers.
- The tool never reads X itself, since X charges for every read. It returns what the last Refresh under Analytics loaded, and an empty list until someone chooses it.
Uploads
A post takes media from your PostQueen media library. These tools put a file there and return itspath for attachments.
uploadFromUrlTool
Brings an image or video in from a public http or https link.
Returns the file’s
id, path and status, or error. An image is ready at once. An MP4 comes back as processing while PostQueen prepares it, and its path can change when it is done: mediaStatusTool with the id says when it is ready. A MOV is converted to MP4 first, and the tool waits for that, up to about four minutes.
The tool cannot reach a file on your computer or on a private address. Upload those with the CLI (postqueen upload) or the API (Upload a file), then find them with mediaListTool.
mediaListTool
Lists what is already in your media library, newest first, 18 to a page. The agent uses it to reuse a file instead of uploading it again, and to find files you uploaded on the Media page by their names. Videos that are still being converted are left out.
Returns
pages, the number of pages, and output, each file with id, name, originalName, path and createdAt. The id and path go into a post as they are.
mediaStatusTool
Says whether a file uploaded with uploadFromUrlTool or through the API is ready. A video is converted for the networks after the upload, which takes from a few seconds to a few minutes. An image is ready at once. For files added through the upload panel, use uploadWidgetStatusTool instead.
Returns the file’s
id, path and status:
processing: still being converted. The agent waits about 10 seconds and asks again. An MP4 can already go into a post by itspath, and the converted file is the one published. Any other video has to bereadyfirst.ready: it can go into a post with itsidandpath. With awarning, converting it failed and the original file is kept and published as it is.failed: the file cannot be used, anderrorsays why.
error: Media status lookup failed: Media not found.
uploadWidgetTool
Opens an Upload Media panel in the chat, where you add photos or videos from your device. It works in apps that can show MCP panels, such as Claude, Claude Cowork and ChatGPT. Elsewhere no panel appears. An agent that runs commands on your computer uploads the file itself with uploadLinkTool, or with the CLI. Any other agent gives you the link to PostQueen’s Media page: upload the files there, and the agent finds them by name with mediaListTool. uploadFromUrlTool is only for public links. Takes no input.
Returns a sessionId and mediaPageUrl, the link to the Media page. What you upload through the panel is reported in the chat, and uploadWidgetStatusTool lists it.
uploadWidgetTicketTool
Used by the upload panel itself, not by your agent. It gets a short-lived upload ticket for the panel, so the credential never appears in the chat.
Returns a
ticket, or error.
uploadWidgetStatusTool
Lists what you uploaded through the panel in that session, not the whole media library.
Returns
media, each with id, path and status. An empty list means nothing was uploaded yet. A file that is processing is still being prepared: the agent waits about 10 seconds and asks again. A ready file can go into a post. A ready file with a warning could not be converted, and its original is published as it is. A failed one has an error and cannot be used.
uploadLinkTool
Gives an agent that runs commands on your computer, such as Codex or Claude Code, a short-lived link to upload your files with curl. It needs no panel and no CLI sign-in. Takes no input.
Returns uploadUrl and sessionId. The agent sends each file with curl -F "file=@picture.png" "<uploadUrl>", and the answer is the stored file with its id, path and status. One link takes any number of files for about 10 minutes. A video that answers processing is followed with uploadWidgetStatusTool until it is ready. Anyone holding the link can upload to your workspace until it expires, so the agent never puts it in a post.
Images and video
Creating an image or a video is paid from your workspace’s credits. What it costs depends on the settings you choose. When the balance is too low, the tool answersNot enough credits: this costs N and the balance is N. and nothing is made.
generateImageTool
Creates an image and puts it in your media library.
Returns the image’s
id, path, alt and thumbnail, or error. An image that could not be made reads Image generation failed:, the reason, and No credits were used.
generateVideoOptions
Lists the video generators your agent can use. The agent calls it before it starts a video. An empty list means none is available.
Returns
video, one entry per generator:
The two generators take these inputs:
videoFunctionTool
Looks up a value a video generator needs, with one of the helpers generateVideoOptions listed under tools. The only one today is loadVoices on image-text-slides.
Returns the helper’s answer.
loadVoices returns voices, each with an id (the voice input), a name and a preview_url with a sample. A wrong call names what you can use instead:
generateVideoTool
Starts a video and puts it in your media library when it is done. It takes minutes, so the tool returns a job ID at once. The price depends on the generator and its inputs, and a video that fails gives its credits back.
Returns a
jobId, or error when the video could not start. No credits are used then.
An identifier that is not a generator is refused before anything else, with There is no video generator "<identifier>". Use one of these identifiers: ... No credits were used. Use one of the identifiers it lists.
A balance that is too low answers Not enough credits: ... as above. Every other error reads Video generation failed:, the reason, and No credits were used. The reasons you are most likely to see:
videoStatusTool
Checks a video job.
Returns
status:
pending: the video is still being made. The agent waits about 30 seconds and asks again.completed, with the media’sidand the video’surl. Theurlgoes intoattachmentsas it is.failed, with theerror, such asAI generation failed, please try again later.The credits are given back.
error: Video job lookup failed: Video job not found. A video that finished is in your media library even when its job is gone.
Clipping
Clipping turns a long YouTube video into short vertical clips with captions, saves them in your media library and can add them to your channels as drafts. It uses your plan’s clipping minutes: one for each started minute of the video. How it works: Clipping.clippingTool
Starts a clipping. Before it calls the tool, the agent asks you how the horizontal video should fill the vertical clip, and waits for your answer.
Returns a
clippingId, or error. A clipping takes several minutes, so the tool only starts it. In apps that can show MCP panels, a Video Clipping panel follows its steps, shows each clip with Open and Copy link, and tells the chat when the clips are ready.
clippingStatusTool
Checks a clipping. While the clipping runs, the tool waits up to 25 seconds for something to change before it answers, so the agent can ask again straight away.
Returns
status: pending while it runs, completed, or failed. With it come step (analysing, transcribing, picking or rendering while it runs), title (the video’s title), error, and clips, each with id, title, content (the post text), status, url (the clip’s video, ready to attach to a post), thumbnail and error. A completed clipping can still carry failed clips. A failed one made no clip, and its minutes were given back.
clippingWidgetTicketTool
Used by the Video Clipping panel itself, not by your agent. It gets a short-lived ticket to read one clipping’s progress, so the credential never appears in the chat.
Returns a
ticket, or error.
Agent
ask_postqueen
Sends a request in plain words to PostQueen’s own agent, which picks and runs the other tools itself. Before it schedules a new post, it writes out the draft and waits for a yes. It is on the key address and the Bearer header only.
Returns the agent’s answer as text. If the agent stops before it finishes, for example when the credits run out partway, the answer ends with “The agent stopped before it finished its answer”, and says that actions it took may already have run, so check them before you ask again. An error comes back as its message.
The agent’s work is paid from your workspace’s credits by the tokens it uses, and any image or video it makes at its own price. With a balance of zero or less, the tool is refused with
Not enough credits: ....
What the tools cannot do
Next steps
Every agent
Which agents can post to PostQueen, and how each one connects.
The MCP tools
What each of the 28 tools does, and what an agent cannot do.
Prompts and tool calls
The order an agent calls the tools in, with prompts that work.
Troubleshooting agents
What to do when a connection or a command fails.