Skip to main content
The Ayrshare MCP Server exposes 27 tools, grouped below by domain. Each tool is dispatched in-process through the real Ayrshare API chain.

Scope

Every tool is either Profile or Account scope:
  • Profile — the tool accepts a profileKey argument to target a sub-profile.
  • Account — the tool takes no profileKey; it operates at the account level.
The six tools that take no profileKey argument are: create_profile, list_profiles, explain_error, validate_media, generate_post, and recommend_hashtags. All other tools accept a profileKey; generate_jwt_social_linking_url requires one. Note: recommend_hashtags takes no profileKey argument but still reads the connection’s Profile-Key header to pick whose linked TikTok account it draws on, so its results are profile-specific. When both a per-call profileKey argument and a Profile-Key header are present, the argument wins. See Connect & Setup for the precedence rules.

Posts

ToolScopePurpose
create_postProfilePublish to one or more linked platforms.
validate_postProfileDry-run validation, same input as create_post.
get_postProfileFetch a post by Ayrshare Post ID.
update_postProfileUpdate a scheduled or awaiting-approval post.
retry_postProfileRe-submit a failed post.

History

ToolScopePurpose
get_post_historyProfilePosts sent via Ayrshare.
get_platform_historyProfilePosts and analytics direct from the network, including non-Ayrshare posts. For an X/Twitter userId/userName lookup, use the account API key only; a profileKey argument or Profile-Key header there returns Error 400.

Analytics

ToolScopePurpose
get_post_analyticsProfilePer-post metrics by Ayrshare Post ID.
get_post_analytics_by_social_idProfilePer-post metrics by native Social Post ID.
get_social_network_analyticsProfileAccount-wide analytics and demographics for a connected social account. For an X/Twitter userId/userName lookup, use the account API key only; a profileKey argument or Profile-Key header there returns Error 400.

Comments

ToolScopePurpose
get_commentsProfileRead comments on a post.
add_commentProfileTop-level comment.
reply_commentProfileReply to a comment.

Messages / DMs

ToolScopePurpose
get_messagesProfileFetch DMs for a platform.
send_messageProfileSend a DM.
get_auto_responseProfileRead DM auto-response settings.
set_auto_responseProfileConfigure DM auto-response.

Profiles

ToolScopePurpose
list_profilesAccountList sub-profiles.
create_profileAccountCreate a sub-profile.
generate_jwt_social_linking_urlProfileMint a JWT social-linking URL (requires profileKey).

Media

ToolScopePurpose
validate_mediaAccountHEAD-check a media URL is reachable; returns contentType.

Generate

ToolScopePurpose
generate_postAccountAI-draft post copy.
recommend_hashtagsAccountHashtag suggestions from TikTok view-count data. Uses the linked TikTok account on the profile set by the Profile-Key header; takes no per-call profileKey.

Webhooks

ToolScopePurpose
register_webhookProfileRegister a webhook.
unregister_webhookProfileUnregister a webhook.
list_webhooksProfileList registered webhooks.

Errors

ToolScopePurpose
explain_errorAccountDecode an Ayrshare error code into cause, classification, and fix.
This catalog is verified against the live server’s tools/list. More tools are planned (e.g. Links tools). If in doubt, query tools/list for the authoritative set. The catalog is maintained by the MCP server team.