MCP tools
Each tool wraps one REST endpoint and takes that endpoint's parameters as
arguments. Path, query, and body parameters are all flattened into one argument
object, except where a body has several shapes: create_post and
send_message take the whole body as a single post or message argument.
Nothing defaults to a profile-specific operation. list_profiles,
create_profile, list_accounts, and get_x_usage can act on the whole
organization; list_accounts also accepts an optional profileId filter. The
other profile, account, and connect tools take a required profileId, while
account-level tools take an accountId, which names its own profile, with
profileId optional. Pass both and they must agree.
Tools marked changes data act on the customer's real accounts. The one marked spends money can start paid ad delivery.
Profile
list_profiles
List every profile in your key's organization, the default first. Use a
profileId from here for profile-specific tools, or call list_accounts
without one to discover connected accounts across the organization. Wraps
GET /api/v1/profiles. Read-only.
create_profile
Create a profile for a new customer or brand from name, externalId, and
metadata. Names and externalIds are unique within the organization. Pass
idempotencyKey, sent as the Idempotency-Key header, so a retry returns the
same profile instead of a 409 profile_name_conflict. Wraps
POST /api/v1/profiles.
Changes data.
update_profile
Replace the name, externalId, and metadata of the profile named by
profileId. This is a full replace: omitted fields are cleared. Wraps
PUT /api/v1/profiles/{profileId}.
Changes data.
Accounts and connecting
list_accounts
List the connected Instagram, Facebook, TikTok, YouTube, X, and Bluesky accounts
across every profile in the organization, optionally filtered by profileId,
platform, or accountId. Call this before any account-level tool. Wraps
GET /api/v1/accounts. Read-only.
get_account
Return one account by profileId and accountId. Wraps
GET /api/v1/profiles/{profileId}/accounts/{accountId}.
Read-only.
refresh_accounts
Refresh the provider tokens of every account on the profile. Safe to repeat.
Wraps
POST /api/v1/profiles/{profileId}/accounts/refresh.
disconnect_account
Remove Adeli's credentials and cached history for one account. The account
itself is not deleted on the provider, but reconnecting needs its owner to
authorize again. Wraps
DELETE /api/v1/profiles/{profileId}/accounts/{accountId}.
Changes data. Destructive.
set_x_capabilities
Turn an X account's paid background reads, analytics and inbox, on or off.
Both are off by default, because every X read is billed; neither syncs anything
yet. Wraps
PATCH /api/v1/profiles/{profileId}/accounts/{accountId}.
Changes data.
start_connect
Start connecting an account on platform (instagram, facebook,
tiktok, youtube, or x), with an optional redirectUrl. When present, it
must exactly match a URI registered under the API key organization's Settings → OAuth;
see OAuth setup. X returns 402 x_billing_required on Free. Returns an authUrl that the
account owner opens in a browser. Wraps
POST /api/v1/profiles/{profileId}/connect.
When the account doesn't fit the workspace's plan, it returns billing_required, with a billingUrl where the workspace owner chooses or upgrades a plan. See Billing.
get_connect_session
Poll a session from start_connect by connectionSessionId until it is
connected, failed, or expired. Wraps
GET /api/v1/profiles/{profileId}/connect/{connectionSessionId}.
Read-only.
Posts
list_posts
List recent Instagram, Facebook, TikTok, YouTube, X, and Bluesky posts, optionally filtered by
platform or accountId. X posts are billed reads, so X is listed only when
asked for by platform or accountId. Wraps GET /api/v1/posts.
Read-only.
list_instagram_stories
List an Instagram account's live stories, newest first, each with its media,
permalink, when it was posted and when it expires. Pass a story's id as
storyId to list_messages to see who replied to it. Wraps
GET /api/v1/posts/instagram/stories.
Read-only.
create_post
Publish to Instagram, Facebook, TikTok, YouTube, X, or Bluesky. The post argument is exactly the
JSON body of POST /api/v1/posts,
including its platform and accountId. Instagram takes image, legacy
image-only images, reel, image/video story, or mixed carousel. Video is base64 MP4, { "url": "https://..." }, or a previously prepared staged upload reference. A fully staged Instagram request returns a durable job; poll get_instagram_post_status. Legacy URL/base64 requests remain synchronous. Stories expire after 24 hours, may have no permalink, and do not appear in list_posts. For TikTok, call
get_tiktok_creator_info first and prefer a public video.url to base64.
TikTok videos publish publicly; post_mode: "MEDIA_UPLOAD" sends a draft to
the creator's inbox instead. For YouTube, title, privacy_status, and
made_for_kids are required; ask the user for the last two rather than
choosing them. If YouTube applies a different visibility than the one asked
for, the result reports it as privacyRestricted. Multipart uploads
(POST /api/v1/posts/youtube) are REST-only. For X, text is up to 280
characters and thread adds replies; every post is billed at X's price, and a
thread that fails part-way returns the posts that went live. Changes data. Spends money on X.
create_publication
Publish one post to several connected accounts at once. publication is exactly
the JSON body of POST /api/v1/publications:
shared content and media, and platforms with one entry per account. Each
entry's options are that platform's create_post fields other than its text
and media. Pass idempotencyKey to make a repeated call safe. Poll
get_publication for the result. Set scheduledFor and timeZone to publish
later, or draft: true to save it without publishing. Changes data. Spends
money on X.
get_publication
Check a publication's status, its overall progress from 0 to 1, and each
account's outcome. Wraps
GET /api/v1/publications/{publicationId}.
Read-only.
list_publications
List a profile's publications. status: "scheduled" lists what is scheduled,
soonest first; status: "draft" lists drafts. Wraps
GET /api/v1/publications. Read-only.
update_publication
Reschedule a scheduled publication or draft, or replace its post. Wraps
PATCH /api/v1/publications/{publicationId}.
Changes data.
publish_publication
Publish a scheduled publication or draft now. Wraps
POST /api/v1/publications/{publicationId}/publish.
Changes data. Spends money on X.
cancel_publication
Cancel a scheduled publication or delete a draft before it is published. Wraps
DELETE /api/v1/publications/{publicationId}.
Changes data. Destructive.
retry_publication
Re-run only the accounts of a finished publication that failed. Wraps
POST /api/v1/publications/{publicationId}/retry.
Changes data. Spends money on X.
get_instagram_post_status
Check a durable staged Instagram publish by jobId and optional profileId.
queued and processing are pending; published, failed, and
outcome_unknown are terminal. Do not automatically resubmit an
outcome_unknown job because Meta may already have published it. Wraps
GET /api/v1/posts/instagram/status.
Read-only.
get_facebook_post_status
Check an asynchronous Facebook Reel or video publish by accountId and
publishId. Wraps
GET /api/v1/posts/facebook/status.
Read-only.
get_tiktok_creator_info
Return the TikTok creator's current posting options for accountId. Wraps
GET /api/v1/posts/tiktok/creator-info.
Read-only.
get_tiktok_post_status
Check an asynchronous TikTok publish by accountId and publishId. The final
statuses are PUBLISH_COMPLETE, SEND_TO_USER_INBOX, and FAILED. Wraps
GET /api/v1/posts/tiktok/status.
Read-only.
get_youtube_post_status
Check a YouTube upload by accountId and videoId (the publishId
create_post returned). status is processing, published, or failed;
privacyStatus is what YouTube applied. Wraps
GET /api/v1/posts/youtube/status.
Read-only.
delete_x_post
Delete a post from an X account by accountId and postId (its
providerId). It cannot be undone, and X bills it. Wraps
DELETE /api/v1/posts/x/{postId}.
Changes data. Destructive.
delete_bluesky_post
Delete a post from a Bluesky account by accountId and postId (its record
key, or its AT URI). It cannot be undone. Wraps
DELETE /api/v1/posts/bluesky/{postId}.
Changes data. Destructive.
get_usage
Return how many posts, messages and comments the workspace has sent this UTC
month, across all its profiles, against the free plan's limits. Takes no
input. Wraps
GET /api/v1/usage. Read-only.
get_x_usage
Return what your X API calls have cost this UTC month, by operation. Wraps
GET /api/v1/usage/x. Read-only.
Comments
list_comments
The comments on one Instagram, Facebook, TikTok, or YouTube post, with the account's
recent posts. Wraps GET /api/v1/comments.
Read-only.
reply_to_comment
Reply to a comment, or comment on one of the account's own posts (Facebook,
TikTok, and YouTube). Each YouTube comment write spends 50 units of a daily
quota shared by every Adeli customer. Wraps POST /api/v1/comments.
Changes data.
update_comment
Hide or unhide a comment, or like or unlike one on TikTok. On YouTube, hiding
holds the comment for review. Wraps
PATCH /api/v1/comments/{commentId}.
Changes data.
delete_comment
Delete a comment permanently. TikTok deletes only the account's own comments.
YouTube deletes the channel's own and rejects anyone else's; banAuthor
also bans that commenter from the channel.
Wraps DELETE /api/v1/comments/{commentId}.
Changes data.
Messages
list_messages
Read Instagram and Facebook direct message history, optionally filtered by
platform or accountId. Pass a message's story.id as storyId to list
every reply to that Instagram story, then message each sender with
send_instagram_message. Wraps
GET /api/v1/messages. Read-only.
send_message
Send a text direct message. The message argument is exactly the JSON body of
POST /api/v1/messages.
Changes data.
send_instagram_message
Send an Instagram direct message, or a private reply to the author of a
comment, optionally with buttons. The message argument is exactly the JSON
body of
POST /api/v1/messages/instagram.
Changes data.
get_instagram_user
Read someone who has messaged an Instagram account: their username, name, and
whether they follow the account. Instagram answers only after they have
messaged the account or tapped one of its buttons. Wraps
GET /api/v1/messages/instagram/users/{igsid}.
Analytics
get_instagram_insights
Instagram account insights for accountId. Wraps
GET /api/v1/analytics/instagram/account-insights.
Read-only.
get_facebook_page_metrics
Facebook Page follower count, recent engagement, and 28-day Page Insights when
the connection has granted read_insights. Without accountId, pass
profileId to use that profile's Facebook connection. Wraps
GET /api/v1/analytics/facebook/page-metrics.
Read-only.
get_tiktok_analytics
TikTok profile and aggregate statistics for accountId. Wraps
GET /api/v1/analytics/tiktok/account-analytics.
Read-only.
get_tiktok_account_insights
Daily TikTok account metrics and follower demographics for a UTC date window.
Wraps GET /api/v1/analytics/tiktok/account-insights.
Read-only.
get_tiktok_video_insights
Counters and watch metrics for up to 20 TikTok posts. Wraps
GET /api/v1/analytics/tiktok/video-insights.
Read-only.
get_youtube_channel_insights
Daily YouTube views, watch time, and subscribers, the top ten videos, and
viewer demographics for a UTC date window. Needs the connection to have granted
analytics. Wraps
GET /api/v1/analytics/youtube/channel-insights.
Read-only.
get_youtube_video_insights
Views, watch time, and average view percentage for up to 50 YouTube videos.
Wraps
GET /api/v1/analytics/youtube/video-insights.
Read-only.
get_linkedin_account_insights
Followers and daily impressions, reactions, comments, shares, and follower
gain for a LinkedIn Page or personal profile, from a snapshot refreshed at most
every six hours. Wraps
GET /api/v1/analytics/linkedin/account-insights.
Read-only.
get_linkedin_post_insights
Lifetime counters for up to five LinkedIn posts. A personal profile's posts
must have been published through Adeli. Wraps
GET /api/v1/analytics/linkedin/post-insights.
Read-only.
Ads
Every ads tool takes an optional accountId: a Meta Ads account (connected
separately from Facebook) or a tiktok_ads account (separate from the TikTok
posting account). Without it, pass profileId, and the tool uses that
profile's ads connection; when the profile has both, also pass platform
(meta_ads or tiktok_ads). A Facebook or organic TikTok accountId is not
accepted.
ads_list_accounts
List the ad accounts the Facebook connection can reach. Wraps
GET /api/v1/ads/accounts.
Read-only.
ads_list_businesses
The Business portfolios the Facebook connection administers — where
ads_create_account can create one. Wraps
GET /api/v1/ads/businesses.
Read-only.
ads_create_account
Create an ad account in a portfolio from ads_list_businesses. Takes the body
of POST /api/v1/ads/accounts plus a
required idempotencyKey, sent as the Idempotency-Key header; retrying with
the same key returns the first result. Changes data, permanently: Meta has
no API to close an ad account, and its currency and time zone are fixed.
ads_get_account
One ad account's status, amount spent, spending limit, and whether a payment
method is on file. Wraps
GET /api/v1/ads/accounts/{adAccountId}.
Read-only.
ads_update_account
Rename an ad account, or set or remove (spendCap: null) its spending limit.
Wraps
PATCH /api/v1/ads/accounts/{adAccountId}.
Changes data.
ads_get_tree
Campaigns, ad sets, and ads for adAccountId, with metrics for an optional
since–until range. Wraps
GET /api/v1/ads/tree. Read-only.
ads_get_insights
Daily performance for adAccountId, or for one objectId within it, or with
breakdown totals by age, gender, place, placement or device. Meta results
include actions, their values, ROAS and cost per result, counted with optional
attributionWindows. Wraps
GET /api/v1/ads/insights. Read-only.
ads_list_leads
The Page's lead forms, or with formId, that form's submissions. Wraps
GET /api/v1/ads/leads. Read-only.
ads_create_campaign
Create a campaign, ad set, and ad that promote a Page post, all paused,
with an engagement objective and US targeting. For anything else, use
ads_create_meta_campaign.
Takes the body of POST /api/v1/ads/campaigns plus
a required idempotencyKey, which is sent as the Idempotency-Key header.
Retrying with the same key returns the first result instead of creating a
second campaign. Changes data.
ads_create_meta_campaign
Create a Meta campaign, ad set, and ad, all paused: an objective, a daily or
lifetime budget, dates, an optional bid strategy, targeting, and a new image,
video or carousel ad (or a Page or Instagram post to boost), optionally inside
an existing campaign or ad set. validateOnly: true has Meta check it without
creating anything. Takes the Meta full campaign body of
POST /api/v1/ads/campaigns plus a required
idempotencyKey. The tool tells the agent to confirm the objective, budget,
dates, audience and creative with the person first. Changes data.
ads_update_campaign
Rename a Meta campaign, or change its Advantage campaign budget, bid strategy
or spend cap. Wraps
PATCH /api/v1/ads/campaigns/{campaignId}.
Changes data, and a higher budget can spend more.
ads_delete_ad_group
Delete one Meta ad set with its ads. Wraps
DELETE /api/v1/ads/ad-groups/{adGroupId}.
Destructive and irreversible.
ads_delete_ad
Delete one Meta ad. Wraps
DELETE /api/v1/ads/ads/{adId}.
Destructive and irreversible.
ads_delete_campaign
Delete a campaign with its ad sets and ads. Wraps
DELETE /api/v1/ads/campaigns/{campaignId}.
Destructive and irreversible.
ads_set_status
Set a campaign, ad set (TikTok ad group), or ad to ACTIVE or PAUSED;
TikTok needs level. Wraps
PUT /api/v1/ads/status.
Spends money when set to ACTIVE.
ads_create_tiktok_campaign
Create a TikTok campaign, ad group, and video ad, all disabled. Takes the
TikTok body of POST /api/v1/ads/campaigns
plus a required idempotencyKey. Changes data.
ads_create_linkedin_campaign
Sponsor an existing post by the LinkedIn ad account's own Page as a campaign
group, campaign, and ad, all drafts. Takes the LinkedIn body of
POST /api/v1/ads/campaigns plus a required
idempotencyKey. Nothing spends until ads_set_status activates the campaign
group. Changes data.
ads_update_ad_group
Change a Meta ad set's name, budget, bid, dates or targeting, or a TikTok ad
group's or LinkedIn campaign's daily budget, end date, or name. Wraps
PATCH /api/v1/ads/ad-groups/{adGroupId}.
Changes data, and a higher budget can spend more.
ads_list_targeting
Meta interests, behaviors, demographics, locations and languages (searched
with q); TikTok location, language, and interest options; LinkedIn
professional targeting. Wraps
GET /api/v1/ads/targeting. Read-only.
ads_estimate_reach
Meta's estimate of how many people a targeting spec reaches. Wraps
POST /api/v1/ads/reach-estimate. Read-only:
creates nothing.
ads_list_instagram_accounts
The Instagram accounts a Meta ad account can run ads as. Wraps
GET /api/v1/ads/instagram-accounts.
Read-only.
ads_list_identities
The brand identities a TikTok ad can run as. Wraps
GET /api/v1/ads/identities. Read-only.
ads_create_identity
Create a TikTok brand identity from a name and avatar. Wraps
POST /api/v1/ads/identities.
Changes data.
Not exposed as tools
DELETE /api/v1/profiles/{profileId}— deletes the profile and every connection on it. Too destructive for one tool call; use the dashboard.GET /api/v1/profiles/{profileId}andGET /api/v1/profiles/{profileId}/accounts— the same data aslist_profilesandlist_accounts.POST /api/v1/posts/youtube— a multipart file upload.create_posttakes the same YouTube post as JSON with a video URL or base64.