Skip to Content

Tools

The SocialAPI MCP server's tools, how an assistant finds and calls an endpoint, and every endpoint's name.

Three tools, however many endpoints there are: the assistant finds the endpoint for a task, then calls it.

ToolDoesCredits
find_endpointsFinds the endpoints for a task, with their parametersFree
call_endpointCalls an endpoint and answers its JSONAs the endpoint
get_creditsAnswers the credits left in the workspaceFree

Every tool only reads. None changes anything on a platform or in your workspace.

Find Endpoints

Search in plain words, such as "tiktok comments" or "reels of an instagram account". Add platform to search one platform, or give platform alone to list all of its endpoints.

{ "query": "instagram post comments" }

It answers up to 8 endpoints, best first. The first 3 come with their description and parameters, the rest with what they return.

{
  "endpoints": [
    {
      "name": "instagram_post_comments",
      "summary": "A post's comments with their likes, about 22 a page.",
      "description": "A post's comments with their likes, about 22 a page. … 5 credits a page.",
      "parameters": {
        "url": { "type": "string", "description": "The post's link." },
        "id": { "type": "string", "description": "The post's media id, instead of `url`." },
        "cursor": { "type": "string", "description": "`nextCursor` of the previous page." },
        "maxAge": { "type": "integer", "minimum": 0, "description": "How old a cached answer may be, in seconds; …" }
      }
    },
    { "name": "instagram_post", "summary": "One post or reel with its counts, media and tags.", "parameters": { … } }
  ]
}

An endpoint's name and parameters stay valid for the whole conversation, so the assistant searches once per kind of call. A search for a platform SocialAPI does not read says so, and names the ones it does.

Call Endpoint

Give the endpoint's name and its arguments.

{ "endpoint": "instagram_post_comments", "arguments": { "url": "https://www.instagram.com/p/DA1b2c3D4e5/" } }
  • A call is the endpoint's request, made with the app's key: charged, cached, limited and logged as any API call.
  • The endpoint's path works as its name too, such as instagram/post/comments.
  • A name with a typo is refused with the nearest names, such as tiktok_profile for tiktok_profle.

Answers

A call answers the endpoint's JSON: { data } for one item, { data, pagination } for a list. The fields are the ones in Responses.

The text the assistant reads leaves out empty fields, and the answer in full is in structuredContent. For the next page of a list, the assistant passes pagination.nextCursor back as cursor, and each page is charged as a call of its own.

Its _meta says what the call cost.

KeyContains
socialapi.sh/creditsChargedCredits the call cost, 0 from the cache
socialapi.sh/creditsRemainingCredits left in the workspace
socialapi.sh/requestIdThe request's id, for support
socialapi.sh/cacheHIT or MISS

Errors

A refused call is a tool error the assistant reads (isError), and costs nothing. Its text is the code, the status and the message.

NOT_FOUND (404): No TikTok account matches this handle.

An argument the endpoint does not take is refused, naming the ones it does. Every code is in Errors.

Direct Mode

For an assistant that only needs a few platforms, add them to the server URL. Each of their endpoints is then a tool of its own, named as below, alongside get_credits.

https://api.socialapi.sh/mcp?platforms=tiktok,instagram

Use platforms=all for every endpoint. A platform's tools take about 200 tokens of context each, so keep the list short.

Endpoint Names

Every endpoint by the name call_endpoint takes. Its parameters are on its page in the API Reference.

NameEndpointCredits
bluesky_batch_posts/v1/bluesky/batch/posts1
bluesky_batch_profiles/v1/bluesky/batch/profiles1
bluesky_feed/v1/bluesky/feed1
bluesky_feed_posts/v1/bluesky/feed/posts1
bluesky_hashtag_posts/v1/bluesky/hashtag/posts1
bluesky_list/v1/bluesky/list1
bluesky_list_members/v1/bluesky/list/members1
bluesky_list_posts/v1/bluesky/list/posts1
bluesky_post/v1/bluesky/post1
bluesky_post_comments/v1/bluesky/post/comments1
bluesky_post_likes/v1/bluesky/post/likes1
bluesky_post_quotes/v1/bluesky/post/quotes1
bluesky_post_reposts/v1/bluesky/post/reposts1
bluesky_profile/v1/bluesky/profile1
bluesky_profile_feeds/v1/bluesky/profile/feeds1
bluesky_profile_followers/v1/bluesky/profile/followers1
bluesky_profile_following/v1/bluesky/profile/following1
bluesky_profile_lists/v1/bluesky/profile/lists1
bluesky_profile_media/v1/bluesky/profile/media1
bluesky_profile_posts/v1/bluesky/profile/posts1
bluesky_profile_replies/v1/bluesky/profile/replies1
bluesky_profile_starter_packs/v1/bluesky/profile/starter-packs1
bluesky_profile_videos/v1/bluesky/profile/videos1
bluesky_search/v1/bluesky/search1
bluesky_search_feeds/v1/bluesky/search/feeds1
bluesky_search_starter_packs/v1/bluesky/search/starter-packs1
bluesky_search_users/v1/bluesky/search/users1
bluesky_starter_pack/v1/bluesky/starter-pack1
bluesky_trending/v1/bluesky/trending1
bluesky_trending_topics/v1/bluesky/trending/topics1
get_credits/v1/credits0
douyin_hashtag/v1/douyin/hashtag1
douyin_live/v1/douyin/live1
douyin_playlist_posts/v1/douyin/playlist/posts1
douyin_post/v1/douyin/post2
douyin_post_comment_replies/v1/douyin/post/comment/replies1
douyin_post_comments/v1/douyin/post/comments1
douyin_post_related/v1/douyin/post/related1
douyin_profile/v1/douyin/profile2
douyin_profile_playlists/v1/douyin/profile/playlists1
douyin_profile_posts/v1/douyin/profile/posts2
douyin_search_suggestions/v1/douyin/search/suggestions1
douyin_sound/v1/douyin/sound1
douyin_sound_posts/v1/douyin/sound/posts1
douyin_trending/v1/douyin/trending10
douyin_trending_posts/v1/douyin/trending/posts1
facebook_event/v1/facebook/event1
facebook_events/v1/facebook/events1
facebook_events_search/v1/facebook/events/search1
facebook_marketplace_item/v1/facebook/marketplace/item1
facebook_marketplace_search/v1/facebook/marketplace/search1
facebook_post/v1/facebook/post1
facebook_post_comment_replies/v1/facebook/post/comment/replies1
facebook_post_comments/v1/facebook/post/comments1
facebook_post_transcript/v1/facebook/post/transcript10
facebook_profile/v1/facebook/profile1
facebook_profile_photos/v1/facebook/profile/photos1
facebook_profile_posts/v1/facebook/profile/posts1
facebook_profile_videos/v1/facebook/profile/videos1
instagram_highlight/v1/instagram/highlight1
instagram_location/v1/instagram/location1
instagram_location_posts/v1/instagram/location/posts5
instagram_post/v1/instagram/post1
instagram_post_comments/v1/instagram/post/comments5
instagram_profile/v1/instagram/profile1
instagram_profile_highlights/v1/instagram/profile/highlights1
instagram_profile_posts/v1/instagram/profile/posts1
instagram_profile_reels/v1/instagram/profile/reels1
instagram_profile_similar/v1/instagram/profile/similar5
instagram_search/v1/instagram/search1
instagram_sound/v1/instagram/sound1
instagram_sound_posts/v1/instagram/sound/posts1
instagram_trending/v1/instagram/trending5
instagram_trending_topics/v1/instagram/trending/topics1
kick_category/v1/kick/category1
kick_category_clips/v1/kick/category/clips1
kick_category_lives/v1/kick/category/lives1
kick_live/v1/kick/live1
kick_post/v1/kick/post1
kick_post_comments/v1/kick/post/comments1
kick_post_transcript/v1/kick/post/transcript10
kick_profile/v1/kick/profile1
kick_profile_clips/v1/kick/profile/clips1
kick_profile_posts/v1/kick/profile/posts1
kick_search_categories/v1/kick/search/categories1
kick_search_lives/v1/kick/search/lives1
kick_search_users/v1/kick/search/users1
kick_trending/v1/kick/trending1
kick_trending_categories/v1/kick/trending/categories1
kick_trending_clips/v1/kick/trending/clips1
linkedin_ad/v1/linkedin/ad1
linkedin_ads_search/v1/linkedin/ads/search1
linkedin_article/v1/linkedin/article1
linkedin_company/v1/linkedin/company1
linkedin_company_jobs/v1/linkedin/company/jobs1
linkedin_company_posts/v1/linkedin/company/posts1
linkedin_job/v1/linkedin/job1
linkedin_post/v1/linkedin/post1
linkedin_post_comments/v1/linkedin/post/comments1
linkedin_post_transcript/v1/linkedin/post/transcript10
linkedin_profile/v1/linkedin/profile1
linkedin_profile_articles/v1/linkedin/profile/articles1
linkedin_profile_posts/v1/linkedin/profile/posts1
linkedin_search_companies/v1/linkedin/search/companies1
linkedin_search_jobs/v1/linkedin/search/jobs1
linkedin_search_locations/v1/linkedin/search/locations1
linkedin_search_users/v1/linkedin/search/users1
pinterest_board/v1/pinterest/board1
pinterest_board_posts/v1/pinterest/board/posts1
pinterest_board_section_posts/v1/pinterest/board/section/posts1
pinterest_board_sections/v1/pinterest/board/sections1
pinterest_post/v1/pinterest/post1
pinterest_post_comment_replies/v1/pinterest/post/comment/replies1
pinterest_post_comments/v1/pinterest/post/comments1
pinterest_profile/v1/pinterest/profile1
pinterest_profile_boards/v1/pinterest/profile/boards1
pinterest_profile_posts/v1/pinterest/profile/posts1
pinterest_search/v1/pinterest/search1
pinterest_search_boards/v1/pinterest/search/boards1
pinterest_search_suggestions/v1/pinterest/search/suggestions1
pinterest_search_users/v1/pinterest/search/users1
pinterest_search_videos/v1/pinterest/search/videos1
pinterest_topic/v1/pinterest/topic1
pinterest_topic_posts/v1/pinterest/topic/posts1
pinterest_trending/v1/pinterest/trending10
pinterest_url/v1/pinterest/url1
reddit_post/v1/reddit/post1
reddit_post_comment_replies/v1/reddit/post/comment/replies1
reddit_post_comments/v1/reddit/post/comments5
reddit_post_transcript/v1/reddit/post/transcript10
reddit_profile/v1/reddit/profile1
reddit_profile_comments/v1/reddit/profile/comments2
reddit_profile_posts/v1/reddit/profile/posts1
reddit_search/v1/reddit/search1
reddit_search_comments/v1/reddit/search/comments1
reddit_search_media/v1/reddit/search/media1
reddit_search_subreddits/v1/reddit/search/subreddits1
reddit_search_users/v1/reddit/search/users1
reddit_subreddit/v1/reddit/subreddit1
reddit_subreddit_posts/v1/reddit/subreddit/posts1
reddit_subreddit_search/v1/reddit/subreddit/search1
reddit_trending/v1/reddit/trending1
reddit_trending_searches/v1/reddit/trending/searches1
telegram_invite/v1/telegram/invite1
telegram_post/v1/telegram/post1
telegram_post_comments/v1/telegram/post/comments1
telegram_profile/v1/telegram/profile1
telegram_profile_posts/v1/telegram/profile/posts1
telegram_profile_search/v1/telegram/profile/search1
threads_post/v1/threads/post1
threads_post_comments/v1/threads/post/comments1
threads_profile/v1/threads/profile1
threads_profile_media/v1/threads/profile/media1
threads_profile_posts/v1/threads/profile/posts1
threads_profile_replies/v1/threads/profile/replies1
threads_profile_reposts/v1/threads/profile/reposts1
threads_search/v1/threads/search1
threads_search_users/v1/threads/search/users1
threads_trending/v1/threads/trending1
tiktok_collection_posts/v1/tiktok/collection/posts1
tiktok_hashtag/v1/tiktok/hashtag1
tiktok_hashtag_posts/v1/tiktok/hashtag/posts1
tiktok_live/v1/tiktok/live1
tiktok_playlist_posts/v1/tiktok/playlist/posts1
tiktok_post/v1/tiktok/post1
tiktok_post_comment_replies/v1/tiktok/post/comment/replies1
tiktok_post_comments/v1/tiktok/post/comments1
tiktok_post_related/v1/tiktok/post/related1
tiktok_post_transcript/v1/tiktok/post/transcript10
tiktok_profile/v1/tiktok/profile1
tiktok_profile_followers/v1/tiktok/profile/followers1
tiktok_profile_following/v1/tiktok/profile/following1
tiktok_profile_liked/v1/tiktok/profile/liked1
tiktok_profile_playlists/v1/tiktok/profile/playlists1
tiktok_profile_posts/v1/tiktok/profile/posts1
tiktok_profile_reposts/v1/tiktok/profile/reposts1
tiktok_search/v1/tiktok/search1
tiktok_search_users/v1/tiktok/search/users1
tiktok_sound/v1/tiktok/sound1
tiktok_sound_posts/v1/tiktok/sound/posts1
tiktok_trending/v1/tiktok/trending5
twitch_batch_live/v1/twitch/batch/live1
twitch_batch_profiles/v1/twitch/batch/profiles1
twitch_category/v1/twitch/category1
twitch_category_clips/v1/twitch/category/clips1
twitch_category_lives/v1/twitch/category/lives1
twitch_category_posts/v1/twitch/category/posts1
twitch_live/v1/twitch/live1
twitch_post/v1/twitch/post1
twitch_post_comments/v1/twitch/post/comments1
twitch_profile/v1/twitch/profile1
twitch_profile_clips/v1/twitch/profile/clips1
twitch_profile_posts/v1/twitch/profile/posts1
twitch_profile_schedule/v1/twitch/profile/schedule1
twitch_search/v1/twitch/search1
twitch_search_categories/v1/twitch/search/categories1
twitch_search_lives/v1/twitch/search/lives1
twitch_search_suggestions/v1/twitch/search/suggestions1
twitch_search_users/v1/twitch/search/users1
twitch_trending/v1/twitch/trending1
twitch_trending_categories/v1/twitch/trending/categories1
x_community/v1/x/community1
x_community_posts/v1/x/community/posts1
x_live/v1/x/live1
x_post/v1/x/post1
x_post_comments/v1/x/post/comments1
x_post_transcript/v1/x/post/transcript10
x_profile/v1/x/profile1
x_profile_highlights/v1/x/profile/highlights1
x_profile_posts/v1/x/profile/posts1
x_profile_similar/v1/x/profile/similar1
x_space/v1/x/space1
x_trending/v1/x/trending1
x_trending_posts/v1/x/trending/posts1
youtube_batch_posts/v1/youtube/batch/posts1
youtube_batch_profiles/v1/youtube/batch/profiles1
youtube_batch_transcripts/v1/youtube/batch/transcripts5
youtube_community/v1/youtube/community1
youtube_hashtag/v1/youtube/hashtag1
youtube_hashtag_posts/v1/youtube/hashtag/posts1
youtube_playlist/v1/youtube/playlist1
youtube_playlist_posts/v1/youtube/playlist/posts1
youtube_post/v1/youtube/post1
youtube_post_comment_replies/v1/youtube/post/comment/replies1
youtube_post_comments/v1/youtube/post/comments1
youtube_post_related/v1/youtube/post/related1
youtube_post_transcript/v1/youtube/post/transcript5
youtube_profile/v1/youtube/profile1
youtube_profile_community/v1/youtube/profile/community1
youtube_profile_lives/v1/youtube/profile/lives1
youtube_profile_playlists/v1/youtube/profile/playlists1
youtube_profile_podcasts/v1/youtube/profile/podcasts1
youtube_profile_posts/v1/youtube/profile/posts1
youtube_profile_search/v1/youtube/profile/search1
youtube_profile_shorts/v1/youtube/profile/shorts1
youtube_search/v1/youtube/search1
youtube_search_channels/v1/youtube/search/channels1
youtube_search_playlists/v1/youtube/search/playlists1
youtube_search_suggestions/v1/youtube/search/suggestions1
youtube_trending/v1/youtube/trending1

Next Steps