Sign in

MCP tools

The tools the Linkpost MCP server gives an assistant, with their arguments, example calls and results, the errors they return, and prompts you can type to use them.

An assistant connected to Linkpost decides which tool to call from what you ask. You do not need to name the tools. This page helps you know what an assistant can do, check what it is about to do, and build your own client.

Every tool works on your own accounts and posts only, or on an account you manage in agency mode (see Agency mode). Another user's account or post answers as if it did not exist.

How tool calls work

A client calls a tool with a tools/call request that names the tool and passes its arguments:

JSON
{
  "jsonrpc": "2.0",
  "id": 7,
  "method": "tools/call",
  "params": {
    "name": "get_post_status",
    "arguments": { "post_id": "01m6xardvrc76m2h9pfm7as4wr" }
  }
}

A successful result has "isError": false. The data comes twice: as an object in structuredContent, and as the same JSON written out as text in content, for clients that only read text. The examples on this page show structuredContent.

When a tool cannot do what was asked, the result has "isError": true and a message the assistant can read and act on, such as asking you for a missing detail:

JSON
{
  "jsonrpc": "2.0",
  "id": 8,
  "result": {
    "content": [{ "type": "text", "text": "Only scheduled posts can be canceled. This one is published." }],
    "isError": true
  }
}

A failure inside Linkpost comes back the same way, as a result with "isError": true, so the assistant can tell you instead of the client showing a connection error. Its message starts with Something failed on the Linkpost side and this request was not completed. and ends with an error reference to quote to support.

The objects the tools return are the same as in the REST API: an account is described in Accounts, and a post in Posts.

list_accounts

Lists your connected accounts, oldest first, with their health, post_options and formats. Read-only. It takes no arguments.

Assistants call it first, to find the id of the account you mean and to learn which formats and limits apply to it.

Each format that takes a video also carries video_limits when the network sets them: the size, shape, frame rate, codec and file size its API takes, which publish_post checks before uploading. See video_limits.

X accounts post through your own X app, which X bills directly: Linkpost charges nothing for X. See Your X app.

JSON
{}

The result:

JSON
{
  "accounts": [
    {
      "id": 7,
      "platform": "tiktok",
      "name": "Mara Costa",
      "avatar_url": "https://p16-sign.tiktokcdn.com/tos-maliva-avt/maracosta.jpeg",
      "health": "ok",
      "health_label": "Connected",
      "post_options": { "mode": ["direct", "inbox"] },
      "formats": [
        { "format": "video", "label": "Video", "takes": ["video"], "min_files": 1, "max_files": 1, "max_text": 2200, "video_limits": { "min_side": 360, "max_side": 4096, "min_fps": 23, "max_fps": 60, "codecs": ["h264", "hevc", "vp8", "vp9"] }, "hint": "One video." }
      ],
      "connected_at": "2026-09-14T08:02:51Z"
    },
    {
      "id": 12,
      "platform": "instagram",
      "name": "maracosta",
      "avatar_url": "https://scontent.cdninstagram.com/v/t51/maracosta.jpg",
      "health": "reconnect",
      "health_label": "Reconnect needed",
      "post_options": { "format": ["reel", "story"] },
      "formats": [
        { "format": "reel", "label": "Reel", "takes": ["video"], "min_files": 1, "max_files": 1, "max_text": 2200, "video_limits": { "max_width": 1920, "ratio": ["1:100", "10:1"], "min_fps": 23, "max_fps": 60, "codecs": ["h264", "hevc"] }, "hint": "One video." },
        { "format": "story", "label": "Story", "takes": ["video", "image"], "min_files": 1, "max_files": 1, "max_text": 0, "video_limits": { "max_width": 1920, "ratio": ["1:10", "10:1"], "min_fps": 23, "max_fps": 60, "codecs": ["h264", "hevc"], "max_mb": 100 }, "hint": "One photo or video for 24 hours, no caption." }
      ],
      "connected_at": "2026-10-02T10:15:00Z"
    }
  ]
}

Prompts to try:

  • "Which accounts do I have in Linkpost?"
  • "Do any of my accounts need reconnecting?"
  • "What can I post to my LinkedIn from here?"

get_tiktok_creator_info

Reads a TikTok account's current settings, live from TikTok: the creator's nickname, the visibility options, which interactions the creator turned off, the longest video allowed, and whether the account can take a post to its profile. Read-only.

Assistants are told to call it right before every TikTok post, to tell you the nickname, and to let you choose the visibility. When direct_post_available is false, as with a public account until TikTok approves Linkpost, they are told to tell you direct_post_problem and offer to send the video to your TikTok inbox instead. Why it matters.

Argument Type Required What it is
account_id integer Yes A TikTok account id from list_accounts.
JSON
{ "account_id": 7 }
JSON
{
  "creator": {
    "nickname": "Mara Costa",
    "username": "maracosta",
    "avatar_url": "https://p16-sign.tiktokcdn.com/tos-maliva-avt/maracosta.jpeg",
    "privacy_level_options": ["PUBLIC_TO_EVERYONE", "MUTUAL_FOLLOW_FRIENDS", "SELF_ONLY"],
    "comment_disabled": false,
    "duet_disabled": true,
    "stitch_disabled": false,
    "max_video_duration_seconds": 600,
    "is_private": false,
    "direct_post_available": true,
    "direct_post_problem": null
  }
}

Errors:

  • Only TikTok accounts have creator info.
  • That account is not connected. Call list_accounts to see the ones that are.
  • TikTok access expired or was revoked. Connect the account again.
  • TikTok limits how often this account can be queried. Wait a minute and try again.

Prompts to try:

  • "Who can see my TikTok posts? What are my options?"
  • "How long can my TikTok videos be?"

Gives the link that connects a network, or reconnects an account whose health says it needs it. Only you can accept a network's sign-in screen, in your browser, so the assistant sends you the link. Once you accepted, list_accounts shows the account. Read-only.

Argument Type Required What it is
network string No tiktok, instagram, facebook, youtube, linkedin, linkedin_pages (LinkedIn Company Pages), x, bluesky, telegram, or whatsapp for a number of the WhatsApp inbox. Without it, the tool lists every network you can connect.
JSON
{ "network": "youtube" }
JSON
{
  "links": [
    {
      "network": "youtube",
      "name": "YouTube",
      "publishes": "Shorts and videos on your channel.",
      "url": "https://linkpost.app/connect/youtube",
      "how_to": "Open the link in a browser signed in to Linkpost (it asks to sign in first otherwise) and accept YouTube's screen. Then list the accounts: the new one appears there. The same link reconnects an account that needs it."
    }
  ]
}

A link also has limit when your plan or your billing would refuse a new account. Reconnecting an account you already have always works. The fields are the same as in the REST API: see Connect or reconnect an account.

For X, the link works once the keys of your own X app are saved. Until then, its how_to says to save them first. See Your X app.

Errors:

  • Unknown network. Use one of: tiktok, instagram, facebook, youtube, linkedin, linkedin_pages, x, bluesky, telegram, whatsapp.
  • x cannot be connected on this account right now. Ask without a network to see the ones that can.

Prompts to try:

  • "Give me the link to connect my YouTube channel."
  • "My Instagram needs reconnecting. How do I do it?"

disconnect_account

Disconnects an account, as in the app. Linkpost deletes its tokens and revokes its access where the network allows it. Posts still waiting for it fail, and published ones stay in your list. You can connect it again with get_connect_link.

Argument Type Required What it is
account_id integer Yes The account, from list_accounts.
consent boolean Yes true only after you confirmed this account should be disconnected.
JSON
{ "account_id": 12, "consent": true }
JSON
{ "account": { "id": 12, "platform": "instagram", "disconnected": true, "posts_failed": 1 } }

posts_failed counts the posts that were waiting for the account and failed. Without consent, the tool answers Disconnecting deletes the tokens of maracosta on Instagram, and its posts still waiting fail. Ask the user to confirm, then call again with consent set to true.

Prompts to try:

  • "Disconnect the Facebook Page of the old shop."

Your X app

X works with your own X app. Since February 2026, X charges for every post made through its API, so you create an app in the X Developer Console, buy credits there and give Linkpost its OAuth 2.0 Client ID and Client Secret. X bills you directly, and Linkpost charges nothing for X. These tools read, save and remove those keys. Their results are the same as in Your X app of the REST API, as x_app.

Tool What it does
get_x_app Reads whether your keys are saved, your Client ID, the callback_url and website_url your app must list, and how many X accounts use it. The secret is never shown. Read-only.
set_x_app Saves the Client ID and Client Secret of your X app (client_id, and client_secret, which you can leave out to keep the saved one while client_id does not change).
remove_x_app Removes the keys, after you confirm (consent).
  • Before connecting X. Assistants are told to check get_x_app before they give you the link from get_connect_link. When configured is false, they walk you through creating the app (type Web App, Automated App or Bot, permissions Read and write, and the callback_url), then save its keys with set_x_app. See Create your X app.
  • Your keys, not made-up ones. Assistants are told to use only the keys you give. The secret is stored encrypted and never shown back.
  • Changing apps asks to reconnect. A different client_id makes every X account of yours need reconnecting, because its access belongs to the old app. Assistants are told to tell you before they do it.
  • Removing needs your confirmation. remove_x_app stops your X accounts from posting, so it refuses to run unless consent is true, after you confirmed: Removing the keys of the X app stops every X account of this user from posting until new keys are added and the accounts are reconnected. Ask the user to confirm, then call again with consent set to true. Clients see it as a tool that cannot be undone.

set_x_app:

JSON
{ "client_id": "M1M5R3BMVy13QmpScXkzTUt5OE46MTpjaQ", "client_secret": "your-client-secret" }
JSON
{
  "x_app": {
    "configured": true,
    "client_id": "M1M5R3BMVy13QmpScXkzTUt5OE46MTpjaQ",
    "updated_at": "2026-11-28T12:00:00Z",
    "callback_url": "https://linkpost.app/connect/x/callback",
    "website_url": "https://linkpost.app",
    "console_url": "https://console.x.com",
    "x_accounts": 0
  }
}

remove_x_app answers with removed and x_app. removed is false when there were no keys. Keys that do not look right come back as an error with the same messages as in the REST API, such as That does not look like an OAuth 2.0 Client ID. Copy it from Keys and tokens in the X Developer Console.

Prompts to try:

  • "Help me connect my X account."
  • "Here are the keys of my X app. Save them in Linkpost."
  • "I regenerated the Client Secret of my X app. Update it in Linkpost."
  • "Which X app is Linkpost using?"

list_posts

Lists your posts, newest first by the time they were created, with their status and scheduled time. With from or to, it lists the posts of a window of time, as the calendar does. It includes posts made in the app, through the API and through MCP. Read-only.

Argument Type Required What it is
status string No scheduled, queued, uploading, processing, inbox_delivered, published, failed or canceled.
platform string No tiktok, instagram, facebook, youtube, linkedin, x, bluesky or telegram.
account_id integer No Only posts to this account.
from string No A date, like 2026-11-16, or a date and time in ISO 8601. Without an offset it is read in your timezone in Linkpost.
to string No A date, which counts whole, or a date and time.
limit integer No How many posts, from 1 to 50. The default is 20.
page integer No The page, from 1. The default is 1.

The result has page and has_more: when has_more is true, the assistant calls again with the next page. With from or to, the time of a post is its scheduled time, or when it was created if it went out at once, and the latest time comes first. Without to, the window runs into the future, so it includes scheduled posts. An unknown status returns Unknown status. Use one of: scheduled, queued, uploading, processing, inbox_delivered, published, failed, canceled., and a from that is not a date returns from has to be a date like 2030-01-31 or a date and time like 2030-01-31T09:30:00+01:00.

JSON
{ "status": "scheduled", "platform": "instagram", "limit": 5 }
JSON
{
  "posts": [
    {
      "id": "01m6xag75ghras1sek74sdmft8",
      "status": "scheduled",
      "status_label": "Scheduled",
      "status_detail": "It goes out at the scheduled time. The file stays on our private storage until then.",
      "is_final": false,
      "platform": "instagram",
      "type": "Instagram reel",
      "mode": "direct",
      "format": "reel",
      "account_id": 12,
      "account_name": "maracosta",
      "title": "Three ways to wear one scarf",
      "privacy_level": null,
      "scheduled_at": "2026-11-20T08:30:00Z",
      "timezone": "Europe/Madrid",
      "created_at": "2026-11-08T10:15:42Z",
      "finished_at": null,
      "provider_post_id": null,
      "fail_reason": null,
      "source": "mcp",
      "batch_id": null
    }
  ],
  "page": 1,
  "has_more": false
}

Prompts to try:

  • "What do I have scheduled for next week?"
  • "Did anything fail this week? Tell me why."
  • "Show my last five LinkedIn posts and whether they went out."
  • "What did I publish between 16 and 22 November?"

get_post_status

Reads one post: its status, when it finished, its id on the network and, if it failed, why. Read-only.

Argument Type Required What it is
post_id string Yes The post id, from publish_post or list_posts.
JSON
{ "post_id": "01m6xardvrc76m2h9pfm7as4wr" }
JSON
{
  "post": {
    "id": "01m6xardvrc76m2h9pfm7as4wr",
    "status": "failed",
    "status_label": "Failed",
    "status_detail": "LinkedIn refused Linkpost's access. Connect the account again.",
    "is_final": true,
    "platform": "linkedin",
    "type": "LinkedIn post",
    "mode": "direct",
    "format": "video",
    "account_id": 21,
    "account_name": "Mara Costa",
    "title": "Our autumn collection is out today. Here is how we made it.",
    "privacy_level": "PUBLIC",
    "scheduled_at": null,
    "timezone": null,
    "created_at": "2026-11-08T10:20:11Z",
    "finished_at": "2026-11-08T10:20:39Z",
    "provider_post_id": null,
    "fail_reason": "LinkedIn refused Linkpost's access. Connect the account again.",
    "source": "mcp"
  }
}

An id that does not exist returns No post with that id. Post statuses explains each status and the usual reasons a post fails.

Prompts to try:

  • "Did the reel I just scheduled go out?"
  • "Why did my last TikTok post fail?"

get_post_stats

Reads the numbers of a post Linkpost published: its public link, its latest likes, comments, shares, saves, views, reach and impressions, and days, one reading per day of its life. Day 1 is the first 24 hours after publishing. Read-only.

A number the network does not give is null, never 0. Compare posts by the same day to compare them at the same age; age_hours says how old each post was at that reading. Numbers and links lists what each network gives.

Argument Type Required What it is
post_id string Yes The post id, from publish_post or list_posts.
JSON
{ "post_id": "01m6xardvrc76m2h9pfm7as4wr" }
JSON
{
  "post": {
    "post_id": "01m6xardvrc76m2h9pfm7as4wr",
    "account_id": 21,
    "platform": "linkedin",
    "url": "https://www.linkedin.com/feed/update/urn:li:share:7262618447195271168/",
    "published_at": "2026-11-13T09:00:00Z",
    "stats": { "likes": 95, "comments": 12, "shares": 4, "saves": 7, "views": null, "reach": 1800, "impressions": 4200, "interactions": 118, "read_at": "2026-11-20T08:12:40Z" },
    "days": [
      { "day": 1, "age_hours": 23.2, "likes": 41, "comments": 5, "shares": 1, "saves": 2, "views": null, "reach": 900, "impressions": 2100, "interactions": 49, "read_at": "2026-11-14T08:12:02Z" },
      { "day": 7, "age_hours": 167.2, "likes": 95, "comments": 12, "shares": 4, "saves": 7, "views": null, "reach": 1800, "impressions": 4200, "interactions": 118, "read_at": "2026-11-20T08:12:40Z" }
    ]
  }
}

get_post_status and list_posts also carry url and stats, the latest numbers, without the days.

Prompts to try:

  • "How did my last three LinkedIn posts do on day 2?"
  • "Compare the views of my last two reels after 7 days."

get_account_stats

Reads an account's followers, one reading per day with the newest first, and the numbers of its recent content, including posts published outside Linkpost. post_id links the ones Linkpost published. Read-only.

Argument Type Required What it is
account_id integer Yes An account id from list_accounts.
days integer No How many days back, from 1 to 365. The default is 30.
limit integer No At most this many pieces of content, from 1 to 100. The default is 30.

The result is account, with the same fields as the REST API's account numbers. list_accounts also has stats on each account: its latest follower reading.

Prompts to try:

  • "How many followers did my Instagram gain this month?"
  • "Which of my TikTok videos from last week got the most views?"

create_upload

Gives one-time links where the assistant sends files from your computer, for publish_post, publish_posts or a WhatsApp message or template. Sending a file publishes nothing. See From your computer.

Argument Type Required What it is
count integer No How many links, from 1 to 35: one per file, such as one per photo of a carousel. The default is 1.
for string No whatsapp, for a file that goes in a WhatsApp message (send_whatsapp_message takes its upload_id). The link then refuses a file WhatsApp would not take, with 422 and the reason. See WhatsApp.
JSON
{ "count": 1 }
JSON
{
  "uploads": [
    {
      "upload_id": "01m7q4c9w2e8r5t6y3u1i0o9pa",
      "upload_url": "https://linkpost.app/api/v1/uploads/01m7q4c9w2e8r5t6y3u1i0o9pa?expires=1795000000&signature=5f0c…",
      "link_expires_at": "2026-11-18T11:30:00Z",
      "expires_at": "2026-11-19T10:30:00Z"
    }
  ],
  "how_to_send": "Send one file to each upload_url, for example: curl -sS -F \"file=@/path/to/video.mp4\" \"<upload_url>\". …"
}

The assistant then sends each file to its upload_url, as a form field named file in a POST, or as the bare bytes in a PUT:

cURL
curl -sS -F "file=@/Users/mara/Videos/scarf.mp4" "https://linkpost.app/api/v1/uploads/01m7q4c9w2e8r5t6y3u1i0o9pa?expires=1795000000&signature=5f0c…"
JSON
{
  "upload_id": "01m7q4c9w2e8r5t6y3u1i0o9pa",
  "name": "scarf.mp4",
  "mime": "video/mp4",
  "size": 48210944,
  "expires_at": "2026-11-19T10:30:00Z"
}
  • The link takes one file of up to 512 MB, for 60 minutes after create_upload. Then the assistant asks for a new one.
  • The upload can be used for several posts until expires_at, 24 hours after create_upload, when Linkpost deletes it. Each post keeps its own copy.
  • You can have up to 50 uploads at a time, and 5 GB in all.

The link answers with an HTTP status and a message:

Status Message What it means
201 The file arrived.
403 This upload link is not valid or has expired. Call create_upload for a new one. The link was changed, or its 60 minutes are over.
409 This link already took its file. Call create_upload for another one. Each link takes one file.
410 This upload has expired. Call create_upload for a new one. The upload is over 24 hours old.
413 The file is larger than 512 MB, the most this link takes. The file is too large, or with it your uploads would go over 5 GB.
415 Linkpost takes MP4, MOV or WebM videos, JPEG, PNG or WebP photos, PDF, PowerPoint or Word documents, and for WhatsApp also audio, Excel and text files. No format takes this kind of file.
422 WhatsApp takes a file of this kind (image) of up to 5 MB. The link was asked for with for set to whatsapp, and the file is not one WhatsApp takes.
422 Send the file in a form field named file, … The POST had no file.

Errors from the tool:

  • count goes from 1 to 35.
  • You can have up to 50 uploads at a time, and you have 50. Use them, or wait until they expire.

Prompts to try:

  • "Post ~/Videos/scarf.mp4 as a reel on my Instagram now, with the caption 'Three ways to wear one scarf'."
  • "Make a carousel on my Instagram with the photos in ~/Pictures/autumn, in name order."

publish_post

Publishes a post now, or at scheduled_at. It takes every format the REST API takes: videos, stories, and, where the account's formats allow them, text posts, photos, carousels, documents, polls and threads. The rules are the same as in Posts.

Files come from public HTTPS links, which Linkpost downloads, or from your computer through create_upload. See Where files come from.

Argument Type When What it is
account_id integer Always The account, from list_accounts.
consent boolean Always true only after you confirmed this exact post. Anything else is refused.
media_url string Videos and stories, without upload_id A public https:// link to an MP4 or MOV video (WebM too for TikTok), or to a JPEG for a story.
media_urls list Photos, carousels, documents, without upload_ids Public https:// links to the files, in order. Up to 35. Photos can be JPEG, PNG or WebP, carousel videos MP4 or MOV, documents PDF, PowerPoint or Word.
upload_id string Instead of media_url The id of a file sent through create_upload.
upload_ids list Instead of media_urls The ids of files sent through create_upload, in order. Up to 35.
format string Instagram and Facebook videos, and every format that is not a video reel, story or video for a video on Instagram and Facebook. short on YouTube, to refuse a video that YouTube would not show as a Short. text, image, carousel, document or poll where the account's formats include them.
title string Usually The text of the post. The question of a poll. Not used for stories and TikTok inbox uploads. Up to the max_text of the account's format.
scheduled_at string No When to publish, like 2026-11-13T09:00:00+01:00. Without an offset it is read in timezone. Without it, the post goes out now.
timezone string No An IANA timezone like Europe/Madrid. The default is the timezone in your Linkpost settings.
mode string TikTok direct publishes to the profile. inbox sends a draft to finish in the TikTok app.
privacy_level string TikTok direct, YouTube, LinkedIn TikTok: one of the creator's privacy_level_options, chosen by you. YouTube: public, unlisted or private. LinkedIn: PUBLIC or CONNECTIONS, required for a video; any other LinkedIn post is PUBLIC without it.
allow_comment boolean TikTok direct true to allow comments. Off unless set.
allow_duet, allow_stitch boolean TikTok direct videos true to allow duets or stitches. Off unless set.
commercial_toggle boolean TikTok direct true when the post promotes a brand, product or service. Needs brand_organic, brand_content or both.
brand_organic boolean TikTok direct You promote yourself or your own business. Labeled "Promotional content".
brand_content boolean TikTok direct You promote a third party. Labeled "Paid partnership". Cannot be private.
video_title string YouTube The video title, up to 100 characters. title becomes the description.
made_for_kids string YouTube yes or no, as you say.
alt list Photos Alt text for each photo, in the order of media_urls or upload_ids.
poll_options list Polls The answers, 2 to 10 of up to 100 characters. Each network takes fewer: see the account's formats.
poll_hours integer LinkedIn and X polls 24, 72 or 168. Telegram polls need none: they stay open until stopped.
thread list X and Bluesky Up to 24 more posts, each a reply to the one before.
collaborators list Instagram reels, photos and carousels Up to 3 Instagram usernames, with or without the @, invited as collaborators. Once one accepts, the post also shows on their profile. Stories take none: use tagged_users.
tagged_users list Instagram reels, stories and photos Up to 20 Instagram usernames, with or without the @, tagged in the post. Carousels take none.

The tool tells clients that title has at most 10000 characters, the most any form takes. Linkpost then checks the text against the limit of the account's format, as the REST API does: up to 5000 characters on YouTube and Facebook, 3000 on LinkedIn, 280 on X. See max_text in the account's formats.

Example: schedule a TikTok video

You type: "Schedule this video on my TikTok for Friday at 9:00: https://cdn.costastudio.example/videos/friday-drop.mp4. Caption: Friday drop: the new scarf collection #design."

What a careful assistant does:

  1. Calls list_accounts and finds your TikTok account.
  2. Calls get_tiktok_creator_info for it.
  3. Asks you: "This goes to Mara Costa on TikTok, on Friday 13 November at 9:00 Madrid time. Who should see it: Everyone, Friends, or Only me? Should comments be allowed? Duets are turned off for your account. Does the video promote a brand, product or service? Confirming also accepts TikTok's Music Usage Confirmation."
  4. Waits for your answers and your confirmation.
  5. Calls publish_post:
JSON
{
  "account_id": 7,
  "media_url": "https://cdn.costastudio.example/videos/friday-drop.mp4",
  "title": "Friday drop: the new scarf collection #design",
  "mode": "direct",
  "privacy_level": "PUBLIC_TO_EVERYONE",
  "allow_comment": true,
  "scheduled_at": "2026-11-13T09:00",
  "timezone": "Europe/Madrid",
  "consent": true
}
JSON
{
  "post": {
    "id": "01m6xagxm8ngfnaq3ps9ke35e5",
    "status": "scheduled",
    "status_label": "Scheduled",
    "status_detail": "It goes out at the scheduled time. The file stays on our private storage until then.",
    "is_final": false,
    "platform": "tiktok",
    "type": "TikTok post",
    "mode": "direct",
    "format": "video",
    "account_id": 7,
    "account_name": "Mara Costa",
    "title": "Friday drop: the new scarf collection #design",
    "privacy_level": "PUBLIC_TO_EVERYONE",
    "scheduled_at": "2026-11-13T08:00:00Z",
    "timezone": "Europe/Madrid",
    "created_at": "2026-11-08T10:16:05Z",
    "finished_at": null,
    "provider_post_id": null,
    "fail_reason": null,
    "source": "mcp"
  }
}

Example: a poll on LinkedIn

You type: "Ask my LinkedIn network which colour our next scarf should come in: rust, forest green or navy. Keep it open for three days."

After you confirm, the assistant calls:

JSON
{
  "account_id": 21,
  "format": "poll",
  "title": "Which colour should our next scarf come in?",
  "poll_options": ["Rust", "Forest green", "Navy"],
  "poll_hours": 72,
  "consent": true
}

The result is the new post, with "type": "LinkedIn poll" and "status": "queued".

JSON
{
  "account_id": 12,
  "format": "carousel",
  "media_urls": [
    "https://cdn.costastudio.example/carousel/01-cover.jpg",
    "https://cdn.costastudio.example/carousel/02-detail.jpg",
    "https://cdn.costastudio.example/carousel/03-making-of.mp4"
  ],
  "title": "The autumn scarf, from sketch to shop.",
  "consent": true
}

Example: an Instagram reel with a collaborator and a tagged person

You type: "Post this reel on my Instagram now with @ana.gomez as a collaborator, and tag @lucia.mz: https://cdn.costastudio.example/videos/scarf.mp4. Caption: Three ways to wear one scarf."

collaborators invites up to 3 accounts to a reel, a photo or a carousel. Each one gets an invite in Instagram, and once they accept, the post also shows on their profile. tagged_users tags up to 20 people in a reel, a story or a photo. Stories take no collaborators and carousels take no tagged people. After you confirm, the assistant calls:

JSON
{
  "account_id": 12,
  "format": "reel",
  "media_url": "https://cdn.costastudio.example/videos/scarf.mp4",
  "title": "Three ways to wear one scarf",
  "collaborators": ["ana.gomez"],
  "tagged_users": ["lucia.mz"],
  "consent": true
}

The result is the new post, with "collaborators": ["ana.gomez"] and "tagged_users": ["lucia.mz"]. If Instagram refuses a username when the post goes out, the post fails and fail_reason quotes Instagram's own words.

Errors from publish_post

The checks run in this order, so the assistant learns about a missing confirmation before Linkpost downloads anything.

Message What it means
That account is not connected. Call list_accounts to see the ones that are. Wrong account_id.
That format is not available for this account. list_accounts shows the formats each one takes. The network does not take the format, or it is not available on your account yet.
media_url or upload_id is required. A video or story was sent without a file.
media_urls or upload_ids is required for this format. Photos, carousels and documents need files.
Send media_url or upload_id, not both. Each file comes from a link or from an upload. The same goes for media_urls and upload_ids.
Text posts and polls go without media. Leave out the files.
Up to 35 files per post. Too many files.
Ask the user to confirm this post, then call publish_post again with consent set to true. consent was missing or not true.
Your plan allows 30 posts a month and you have used them all. Your plan's monthly posts are used up. Only accounts on a plan with a monthly allowance get it.
No upload with that id, or it expired. Call create_upload for a new one. The upload is someone else's, never existed, or is over 24 hours old.
Upload 01m7q4c9w2e8r5t6y3u1i0o9pa has no file yet. Send the file to its upload_url first. The file was not sent, or its sending failed.
Too many posts for now. Wait a moment and try again. More than 10 posts a minute or 100 a day.
Use a full https:// URL. The link is not a full https:// address.
That host is not on the public internet. The link points to a private or local address.
Use a host name, not an IP address. The link uses an IP address.
The URL answered with status 404. The file is not at that address. Other codes appear the same way.
The URL did not return an MP4, MOV or WebM video or a JPEG image. The link returned something else, often a web page.
The URL did not return a file this post can use. The file's type does not fit the format.
The media is larger than the limit for URLs. The file is over 100 MB.
The media took too long to download. The download took more than 60 seconds.
The URL redirected too many times. More than 3 redirects.

When a link cannot be used, the message ends with If the file is on this computer, send it with create_upload and pass its upload_id instead.

After the download, Linkpost checks the post with the same rules as the REST API and returns the same messages, joined in one text, such as Choose who can view this video. See Errors.

A video outside the video_limits of its format in list_accounts is refused at that point, before anything is sent to the network, with a message that says what to export instead, such as Instagram takes videos up to 1920 pixels wide, and this one is 2160 × 3840. Export it smaller, for example at 1080 × 1920.

Prompts to try:

  • "Post this video as an Instagram reel now, with the caption 'Three ways to wear one scarf': https://cdn.example.com/reel.mp4"
  • "Post this reel on my Instagram with @ana.gomez as a collaborator and tag @lucia.mz: https://cdn.example.com/reel.mp4"
  • "Schedule this on my TikTok for Friday at 9:00."
  • "Upload this to YouTube as an unlisted video called 'How we print our fabric'. It is not made for kids."
  • "Share this PDF on LinkedIn: https://cdn.example.com/lookbook.pdf"
  • "Turn this text into a thread on X and post it tomorrow at 8:00."

publish_posts

Publishes or schedules the same post on up to 25 accounts in one call, as the composer does when you choose several accounts. Linkpost checks every account with the rules of its own network first, and creates nothing unless all of them pass. The posts share a batch_id.

Argument Type Required What it is
posts list Yes 1 to 25 objects, one per account. Each has a different account_id and the arguments of publish_post that differ for it, such as format, privacy_level or video_title.
consent boolean Yes true only after you confirmed these exact posts.
Any argument of publish_post No Given beside posts, it applies to every post that does not set its own: one caption, one file and one time for all.

Files come as links or uploads, as in publish_post. A link shared by several posts is downloaded once, and each post keeps its own copy. A post that names its own file does not take the shared one. For a TikTok account, the assistant reads the creator info first, as for publish_post.

You type: "Post this video as a reel on my Instagram and on my TikTok, on Friday at 9:00: https://cdn.costastudio.example/videos/scarf.mp4. Caption: Three ways to wear one scarf."

After you confirm, including who can see it on TikTok, the assistant calls:

JSON
{
  "title": "Three ways to wear one scarf",
  "media_url": "https://cdn.costastudio.example/videos/scarf.mp4",
  "scheduled_at": "2026-11-13T09:00",
  "timezone": "Europe/Madrid",
  "posts": [
    { "account_id": 12, "format": "reel" },
    { "account_id": 7, "mode": "direct", "privacy_level": "PUBLIC_TO_EVERYONE", "allow_comment": true }
  ],
  "consent": true
}

Part of the result, posts in the order sent and their batch_id:

JSON
{
  "posts": [
    { "id": "01m6xag75ghras1sek74sdmft8", "status": "scheduled", "type": "Instagram reel", "account_id": 12, "batch_id": "01m6xag7a2v9p4c8k3r5t7w1yz" },
    { "id": "01m6xagxm8ngfnaq3ps9ke35e5", "status": "scheduled", "type": "TikTok post", "account_id": 7, "batch_id": "01m6xag7a2v9p4c8k3r5t7w1yz" }
  ],
  "batch_id": "01m6xag7a2v9p4c8k3r5t7w1yz"
}

Errors:

  • Ask the user to confirm these posts (the accounts, the content and the time), then call publish_posts again with consent set to true. Nothing is downloaded before the confirmation.
  • posts takes 1 to 25 posts, each with its account_id.
  • Each post needs the account_id of a different account.
  • Too many posts for now. Wait a moment and try again, or send fewer at once. Each account counts as one post against the limit of new posts.
  • When a post does not pass, the messages of its network, such as Instagram takes up to 3 collaborators., joined in one text. Nothing is created.

Prompts to try:

  • "Post this video on my Instagram and my TikTok on Friday at 9:00."
  • "Share this text on LinkedIn, X and Bluesky now."

reschedule_post

Moves a scheduled post to another time. The content does not change.

Argument Type Required What it is
post_id string Yes The post id.
scheduled_at string Yes The new time, with the same rules as when you create a post: at least a minute from now and at most 90 days ahead.
timezone string No The timezone for a time without an offset. The default is the timezone in your Linkpost settings.
JSON
{ "post_id": "01m6xag75ghras1sek74sdmft8", "scheduled_at": "2026-11-21T18:00", "timezone": "Europe/Madrid" }

The result is the post, with "scheduled_at": "2026-11-21T17:00:00Z".

Errors:

  • Only scheduled posts can change. This one is published. The post already went out, failed or was canceled.
  • Pick a time at least a minute from now. and the other schedule messages in Errors.
  • No post with that id.

Prompts to try:

  • "Move tomorrow's Instagram reel to Saturday at 18:00."
  • "Push all my scheduled X posts one day later."

cancel_post

Cancels a scheduled post and deletes its file. The post stays in your list as canceled. This cannot be undone. A post that already went out is not removed from the network.

Argument Type Required What it is
post_id string Yes The post id.
JSON
{ "post_id": "01m6xag75ghras1sek74sdmft8" }
JSON
{
  "post": {
    "id": "01m6xag75ghras1sek74sdmft8",
    "status": "canceled",
    "status_label": "Canceled",
    "status_detail": "It was canceled before it went out and the file was deleted.",
    "is_final": true,
    "platform": "instagram",
    "type": "Instagram reel",
    "mode": "direct",
    "format": "reel",
    "account_id": 12,
    "account_name": "maracosta",
    "title": "Three ways to wear one scarf",
    "privacy_level": null,
    "scheduled_at": "2026-11-21T17:00:00Z",
    "timezone": "Europe/Madrid",
    "created_at": "2026-11-08T10:15:42Z",
    "finished_at": "2026-11-08T11:02:37Z",
    "provider_post_id": null,
    "fail_reason": null,
    "source": "mcp"
  }
}

Errors:

  • Only scheduled posts can be canceled. This one is published.
  • No post with that id.

Prompts to try:

  • "Cancel the TikTok post scheduled for Sunday."
  • "Cancel everything I scheduled on X for next week."

retry_post

Sends a failed post again, with the same text, settings and files, as Retry does in the app. Linkpost keeps the files of a failed post for 24 hours. The post goes out at once, so assistants are told to tell you.

Argument Type Required What it is
post_id string Yes The id of a failed post.
JSON
{ "post_id": "01m6xardvrc76m2h9pfm7as4wr" }

The result is the post, back in the queue, with "status": "queued" and "fail_reason": null. A retry counts against the limit of new posts.

Errors:

  • Only failed posts can be retried. This one is published.
  • The files of this post are no longer kept, so it cannot be retried. Create it again. The assistant can publish it again with publish_post.
  • The account of this post needs to be connected again before it can be retried. The assistant gives you the link from get_connect_link.
  • No post with that id.

Prompts to try:

  • "Retry the post that failed this morning."
  • "Instagram was down. Retry everything that failed today."

remove_post

Deletes a failed post from Linkpost, with the files kept for a retry, as Remove post does in the app. Only failed posts: the rest are a record of what went out, and a scheduled post is canceled with cancel_post. It cannot be undone.

Argument Type Required What it is
post_id string Yes The id of a failed post.
JSON
{ "post_id": "01m6xardvrc76m2h9pfm7as4wr" }
JSON
{ "removed": true, "post_id": "01m6xardvrc76m2h9pfm7as4wr" }

Errors:

  • Only failed posts can be removed. This one is scheduled. Use cancel_post for a scheduled one.
  • No post with that id.

Prompts to try:

  • "Remove the failed posts I am not going to retry."

Settings and billing

These tools read and change what Settings shows under Account and Billing. Their results are the same as in Settings and billing of the REST API.

Tool What it does
get_settings Reads your name, email, timezone, language and email notifications, as settings. Read-only.
update_settings Changes your timezone, language or email notifications (timezone, language, email_notifications). Only the fields sent change.
get_billing Reads what you pay and have used, as billing. Read-only.
get_founder_status Reads your place in the Founding 1000, as founder: founder with your seat number, candidate while your email is not confirmed yet, missed or none. Read-only.
update_billing_details Saves the details your invoices go to (name, country, address, postal_code, city and tax_id).

update_billing_details appears only for accounts that pay per connected account.

  • The card and payments stay in the app. get_billing gives manage_url, the billing page, and assistants are told to send you there to add a card or pay.
  • Getting a founder seat. For a candidate, assistants are told that the seat comes when you open the confirmation link in your email, and to remind you to do it. The fields are the same as in Read your founder status.
  • Your details, not made-up ones. Assistants are told to use the billing details you give. Every field is sent each time.

update_settings:

JSON
{ "timezone": "America/Mexico_City", "email_notifications": { "usage": false } }
JSON
{
  "settings": {
    "name": "Mara Costa",
    "email": "mara@example.com",
    "timezone": "America/Mexico_City",
    "language": "en",
    "languages": ["en", "es", "pt_BR"],
    "email_notifications": { "publishing": true, "usage": false, "plan": true }
  }
}

Prompts to try:

  • "Change my timezone to Mexico City."
  • "Stop the emails about my monthly limit."
  • "How much will I pay this month?"

Agency mode

These tools do what Settings, Team does in the app: who manages your account, and the accounts you manage. Their results are the same as in Team and clients of the REST API. See Agency mode and team for how it works.

Tool What it does
list_members Lists the people who manage your account and the invitations waiting, with what each one can do, as members. Read-only.
invite_member Emails an invitation to manage your account (email, and permissions: any of connect_accounts, disconnect_accounts, automations, billing), after you confirm.
update_member Replaces what someone can do (member_id, permissions, the full list from now on), after you confirm.
resend_member_invitation Emails an invitation still waiting again, with a new link (member_id), after you confirm.
remove_member Takes someone's access away, or withdraws an invitation (member_id), after you confirm. Their API keys for your account stop working.
list_clients Lists the accounts you manage and the invitations waiting for you (status pending), as clients. Read-only.
accept_client_invitation Accepts an invitation waiting for you (client_id), after you confirm.
leave_client Turns an invitation down, or stops managing an account (client_id), after you confirm.
  • Everything asks for your confirmation. Every tool here except the two lists refuses to run unless consent is true, after you confirmed. For example: Tell the user what that person will be able to do on this account, ask them to confirm the email and the permissions, then call invite_member again with consent set to true.
  • One account per connection. The tools work on the account of the key. To work on an account you manage, give the MCP client the header Linkpost-Account with the account.id from list_clients, for example as a second connection, or use a key made for that account in the app. See Work on an account you manage. In Claude Code:
Shell
claude mcp add --transport http linkpost-acme https://linkpost.app/mcp \
  --header "Authorization: Bearer lp_your_key" \
  --header "Linkpost-Account: 3141"
  • Only what the account lets you do. On an account you manage, the tools it did not allow are not listed: get_connect_link needs connect_accounts, disconnect_account needs disconnect_accounts, the automation and WhatsApp tools need automations, and get_billing needs billing. update_settings, set_x_limit, update_billing_details and the member tools are for the owner only. Calling one of them anyway answers with the reason, such as Acme Drinks has not given you permission to disconnect accounts.
  • Connect links open on that account. get_connect_link called on an account you manage gives links that open the network's sign-in on that account in your browser.

invite_member:

JSON
{ "email": "ana@agency.com", "permissions": ["connect_accounts", "automations"], "consent": true }
JSON
{
  "member": {
    "id": 12,
    "email": "ana@agency.com",
    "name": null,
    "status": "pending",
    "permissions": { "connect_accounts": true, "disconnect_accounts": false, "automations": true, "billing": false },
    "invited_at": "2026-11-28T10:00:00Z",
    "accepted_at": null
  }
}

Prompts to try:

  • "Invite ana@agency.com to manage my account. She can connect accounts but not see billing."
  • "Who has access to my Linkpost account?"
  • "Take away Ana's access."
  • "Which accounts do I manage? Accept the invitation from Acme Drinks."

Feedback and support

These tools do what Feedback and support does in the sidebar of the app: they send the Linkpost team an idea, a problem or a request for help, and list the messages you sent. Their results are the same as in Feedback and support of the REST API.

Tool What it does
send_feedback Sends a message to the Linkpost team (type, message and, when you say it, page), as feedback.
list_feedback Lists the messages you sent, newest first, with their status (status, limit, page), as feedback. Read-only.
Argument Type Required What it is
type string Yes idea, bug (something is not working) or help.
message string Yes Your words, from 10 to 5,000 characters.
page string No Where it happened, such as /calendar or the name of a tool.
  • Your words, not the assistant's. Assistants are told to send what you say in your language, and to ask you what happened and where when it is not clear.
  • The answer comes by email. The team replies to the address of your Linkpost account, and assistants are told to say so. The result has next with that reminder.
  • One limit for every door. Up to 5 messages every 10 minutes per account, counting the app and the REST API. Past that: Too many messages in a short time. Try again in 10 min.

send_feedback:

JSON
{ "type": "bug", "message": "The calendar shows my Friday post on Saturday.", "page": "/calendar" }
JSON
{
  "feedback": { "id": 31, "type": "bug", "message": "The calendar shows my Friday post on Saturday.", "page": "/calendar", "status": "new", "status_label": "Received", "created_at": "2026-11-28T09:30:00Z", "updated_at": "2026-11-28T09:30:00Z" },
  "next": "Tell the user the Linkpost team got the message and will reply by email to mara@example.com."
}

Errors:

  • Choose what your message is about: idea, bug, help.
  • Write at least 10 characters, so we can understand what you need.

Prompts to try:

  • "Tell the Linkpost team that my Friday post shows on Saturday in the calendar."
  • "Suggest to Linkpost a colour for each account in the calendar."
  • "Have they answered my last message to Linkpost?"

Reports

These tools work with the reports of the Analytics page. Their results are the same as in Reports of the REST API, and report_id comes from list_reports.

Tool What it does
list_reports Lists your reports, with their accounts and widgets, as reports. Read-only.
get_report_catalog Lists the metrics a report can show, the views each one takes, the accounts that cannot show it yet and why, and the templates, as catalog. Read-only.
get_report Reads a report with what each widget shows for its period, or for period, as report. Read-only.
create_report Creates a report from name, account_ids and widgets, or from a template.
update_report Changes the fields sent: name, period, account_ids or widgets. widgets replaces the widgets whole.
delete_report Deletes a report. The numbers behind it stay. It cannot be undone.

A widget whose network does not share a metric says so in state and message, and assistants are told to read that as "not available", never as a zero.

create_report:

JSON
{ "name": "Instagram reach", "account_ids": [12], "widgets": [{ "metric": "reach" }, { "metric": "top_posts", "size": "full" }] }

The result is report, in the shape of Create a report.

Errors:

  • No report with that id. Call list_reports to see them.
  • Give the report a name., Choose at least one account for this report. or Add at least one widget.
  • period is one of: 7d, 30d, 90d.

Prompts to try:

  • "Make a report with the reach and the top posts of my Instagram."
  • "How did my followers grow in the last 90 days, account by account?"
  • "Add the best times to post to my Audience report."

WhatsApp

Twelve more tools run the WhatsApp inbox: read the conversations of your connected numbers, answer them, open new ones with a template, manage templates and disconnect a number. They appear only for accounts that have the inbox, and they do the same as the WhatsApp endpoints of the REST API, so that page shows every field and result.

Tool What it does
list_whatsapp_numbers Lists your connected numbers. Read-only.
list_whatsapp_conversations Lists the conversations of a number (number_id, and unread, phone, limit). Read-only.
list_whatsapp_messages Lists the messages of a conversation (conversation_id, and limit, before_id, after_id). Read-only.
mark_whatsapp_read Sets the unread count of a conversation to zero (conversation_id).
send_whatsapp_message Sends a text, buttons, a list or a file in a conversation.
send_whatsapp_template Sends an approved template to a phone number, with a file in the header or as a carousel too.
list_whatsapp_templates Lists the templates of a number (number_id). Read-only.
create_whatsapp_template Creates a template, with a file in the header or as a carousel too, and sends it to Meta for review.
update_whatsapp_template Changes a template, carousels and files included (number_id, template_id). Meta reviews it again.
delete_whatsapp_template Deletes one language of a template (number_id, template_id).
get_whatsapp_media Gives a link to download the file of a message (message_id). Read-only.
disconnect_whatsapp_number Disconnects a number from the inbox and deletes its conversations from Linkpost (number_id), after you confirm.

list_accounts also lists your numbers, under whatsapp_numbers.

Two rules apply to the tools that send:

  • They need consent. send_whatsapp_message and send_whatsapp_template write to a person from your business number, so they refuse to run unless consent is true, and the assistant sets it only after you confirmed the message or the flow it belongs to. The REST API has no such field: its calls send what passes validation.
  • After 24 hours, only templates. send_whatsapp_message answers while can_reply is true, until 24 hours after the person last wrote. After that, use send_whatsapp_template.

send_whatsapp_message

Argument Type Required What it is
conversation_id integer Yes A conversation id from list_whatsapp_conversations.
consent boolean Yes true only after you confirmed the message.
text string No The message, up to 4096 characters, or up to 1024 with buttons, a list or a file.
buttons list No 1 to 3 of { "id", "title" }, with titles up to 20 characters.
list object No { "button", "options" }: up to 10 options of { "id", "title", "description" }.
footer string No A line under buttons or a list, up to 60 characters.
media_url string No A public HTTPS link to a file to send.
upload_id string No Instead of media_url: a file sent through create_upload, with for set to whatsapp so the link checks it.

Buttons, a list and a file do not mix. A file is a JPEG or PNG image up to 5 MB, an MP4 video or an audio file up to 16 MB, or a PDF, Word, Excel, PowerPoint or text document up to 100 MB.

JSON
{
  "conversation_id": 312,
  "text": "When shall we come?",
  "buttons": [
    { "id": "slot-10", "title": "Tomorrow at 10" },
    { "id": "slot-16", "title": "Tomorrow at 16" }
  ],
  "consent": true
}

The result is the message, as message, in the shape of the REST API. When the person taps a button, the next list_whatsapp_messages has a message with reply.id set to slot-10.

Errors, as the message of an isError result:

  • This writes to a person on WhatsApp from the business number. Ask the user to confirm the message, or the flow it belongs to, then call again with consent set to true.
  • WhatsApp did not accept the message: … with WhatsApp's reason. The message stays in the conversation as failed.
  • More than 24 hours have passed since the last message from this person, so WhatsApp only takes a template message now. …
  • No conversation with that id. Call list_whatsapp_conversations to see them.

Prompts to try:

  • "Which WhatsApp conversations have unread messages?"
  • "Ask Ana on WhatsApp which time suits her tomorrow, with buttons for 10 and 16."
  • "Send the PDF at ~/Documents/Budget.pdf to the last person who wrote to me on WhatsApp."

send_whatsapp_template takes, in parameters, header_file for a template with a file in the header, and cards for a carousel: one entry per card, in order, each with its file and its own body and buttons values. A file is { "media_url" }, a public HTTPS link, or { "upload_id" }, a file sent through create_upload. list_whatsapp_templates says what each template asks for, in parameters.

JSON
{
  "number_id": 3,
  "to": "+34633333333",
  "template": "photo_offer",
  "language": "es",
  "parameters": { "header_file": { "media_url": "https://cdn.example.com/offer.jpg" }, "body": ["Luis"] },
  "consent": true
}

A carousel sent with the wrong number of cards answers This carousel has 2 cards: send one entry in cards for each, in order, with its file.

create_whatsapp_template takes header_type (IMAGE, VIDEO or DOCUMENT) with an example file in header_file, or format set to carousel with card_media, card_buttons and 2 to 10 cards. update_whatsapp_template changes only what it gets: cards replaces the cards in order, and a card without a new file keeps its own. Create a template and Change a template show every field.

disconnect_whatsapp_number

Disconnects a number from the inbox: Linkpost stops receiving its messages and deletes its conversations. The number keeps working in WhatsApp and in the WhatsApp Business app. To connect it again, the assistant gives you the link from get_connect_link with network set to whatsapp.

Argument Type Required What it is
number_id integer Yes A number id from list_whatsapp_numbers.
consent boolean Yes true only after you confirmed this number should be disconnected.
JSON
{ "number": { "id": 3, "phone": "+34 600 00 00 00", "disconnected": true } }

Without consent, the tool answers Disconnecting +34 600 00 00 00 stops the inbox for it and deletes its conversations from Linkpost; the number keeps working in WhatsApp. Ask the user to confirm, then call again with consent set to true.