/ayrshare:commentsfrom Ayrshare - Unified Social Media API for AI Agents
Reads, adds, and replies to comments on social media posts via the Ayrshare MCP server. Useful for engaging with audiences under existing posts across multiple platforms.
Ships in Ayrshare - Unified Social Media API for AI Agents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The engagement tools: read comments on a post, add a new top-level comment, and reply to an existing comment.
https://api.ayrshare.com/apiid (returned by mcp__ayrshare__create_post — see ../post/SKILL.md).profileKey argument or Profile-Key header. Pass a comment tool's profileKey argument to act as a specific client profile for that call, or set the connection's Profile-Key header to default the whole connection to it (the argument wins when both are set); with neither, calls act under the account's primary/Business profile. See ../getting-started/SKILL.md.The three comment tools accept slightly different platform sets — do not assume they are identical:
get_comments: bluesky, facebook, instagram, linkedin, threads, tiktok, twitter, youtube (has threads, no reddit).add_comment: bluesky, facebook, instagram, linkedin, reddit, tiktok, twitter, youtube (has reddit, no threads).reply_comment: bluesky, facebook, instagram, linkedin, tiktok, twitter, youtube (no reddit, no threads, no snapchat).Not every network in your post's platforms supports comment operations — surface the limitation rather than retrying.
| Tool | Purpose | Method + Endpoint | Required inputs | Optional inputs |
|---|---|---|---|---|
mcp__ayrshare__get_comments | Read comments on a post | GET /comments | id | searchPlatformId (bool; id is a Social Post/Comment ID), commentId (bool; with searchPlatformId, id is a Social Comment ID), platform (one of get_comments' platforms above; required when searchPlatformId or commentId) |
mcp__ayrshare__add_comment | Add a NEW top-level comment to a post | POST /comments | id, comment (text; @mentions inline) | platforms (subset of add_comment's platforms above), searchPlatformId (bool; requires exactly one platform), mediaUrls (exactly 1 URL; FB/LinkedIn/X only) |
mcp__ayrshare__reply_comment | Reply to an EXISTING comment | POST /comments/reply | commentId (Ayrshare Comment ID, or Social Comment ID if searchPlatformId), comment, platforms (reply_comment's platforms above — bluesky, facebook, instagram, linkedin, tiktok, twitter, youtube; note: no reddit; exactly one if searchPlatformId) | searchPlatformId (bool), mediaUrls (exactly 1 URL; FB/LinkedIn only), videoId (required for TikTok Social-Comment-ID replies), objResponse (bool) |
Field names beyond the core inputs and example payloads are in references/examples.md. Note add_comment posts to /comments (keyed by the post id) while reply_comment posts to /comments/reply (keyed by commentId).
These tools authenticate with the account's API key, configured when the MCP server is installed. See ../getting-started/SKILL.md for installation and the full auth model; don't re-derive it here. Profile scoping is the profileKey tool argument or the per-connection Profile-Key header (the argument wins when both are set). With neither, calls operate under the account's primary/Business profile.
add_comment vs reply_comment — pick by target, not by wording. A NEW top-level comment ON A POST is add_comment (needs the post id). A reply to an EXISTING comment is reply_comment (needs that comment's commentId). "Reply to the post" usually means a top-level comment → add_comment; "reply to that person/commenter" means reply_comment. When unsure, call mcp__ayrshare__get_comments first to see the comment thread and grab the right commentId.mcp__ayrshare__get_comments gives you the comment ids and text. Don't guess a commentId.profileKey argument (or use the matching Profile-Key connection). Commenting under the primary/Business profile on a client's post (or vice versa) targets the wrong identity.mediaUrls is restricted. Both accept at most one media URL. add_comment supports it on Facebook, LinkedIn, and X (twitter); reply_comment supports it on Facebook and LinkedIn only (not X).videoId. When replying to a TikTok comment by its Social Comment ID (searchPlatformId), reply_comment also requires videoId.add_comment vs reply_comment confusion — the #1 mistake. mcp__ayrshare__add_comment adds a brand-new comment on the post itself (keyed by post id, POST /comments); mcp__ayrshare__reply_comment responds to one existing comment (keyed by commentId, POST /comments/reply). Using the wrong one posts your text in the wrong place. Read the thread with mcp__ayrshare__get_comments if the target isn't obvious.get_comments allows threads but not reddit, while add_comment allows reddit but not threads), and a network in your post's platforms may still not accept a given comment operation. Don't assume a comment tool works everywhere a post does. Surface the platform limitation rather than retrying.searchPlatformId changes what id/commentId means. With searchPlatformId, id/commentId are NATIVE Social IDs rather than Ayrshare IDs, and exactly one platform must be supplied (platform on get_comments, one entry in platforms on add_comment/reply_comment).mcp__ayrshare__explain_error to translate the API error to plain language, then surface it. Never auto-retry add/reply on a 4xx — a 4xx means bad input, an unsupported platform, or a missing comment; retrying a comment write can double-post. A 429 gets at most one retry after a short delay. (Mirror of the global retry-safety rule — full version in getting-started.) Poll get_comments no more than once every 10 minutes.What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/analyticsSocial media analytics for the Ayrshare MCP server — metrics for a specific post, and account/network-level analytics on a connected social network (followers, impressions, reach, demographics). Use whenever someone wants performance data: "how did my post do", "engagement on that tweet", likes/comments/shares/views/impressions/reach for a post, follower counts, reach or impressions for an account, "analytics for our LinkedIn", "how is our Instagram growing", or comparing networks. Also use when pulling analytics for a post that was NOT created through Ayrshare (by its native Social Post ID). Trigger when calling `mcp__ayrshare__get_post_analytics`, `mcp__ayrshare__get_post_analytics_by_social_id`, or `mcp__ayrshare__get_social_network_analytics`, and even without the word "Ayrshare" — if the user wants social media stats for a post or a network through an AI assistant, this is the skill. For the shared auth model and retry rules, see `../getting-started/SKILL.md`.
/draft-in-brand-voiceDraft social posts that match a brand's established voice for the Ayrshare MCP server: first pull the profile's own past posts (history) to read tone, format, and what performed, then write platform-appropriate copy in that voice and validate it before anything publishes. Use whenever someone wants on-brand content rather than generic copy: "write a post the way we usually post", "draft this in our brand voice", "match our tone", "write like our LinkedIn", or any time content is created for a profile whose established style should be matched. Trigger even without the word "Ayrshare": if the user wants content that sounds like an existing account, this is the skill. It pulls history (`get_post_history` / `get_platform_history`), optionally `get_post_analytics` for what worked, drafts via `generate_post` or your own copy, then checks with `validate_post`. It produces DRAFTS only and never publishes; publishing is the explicit `create_post` step in `../post/SKILL.md`.
/errorsError explanation for the Ayrshare MCP server: translate an Ayrshare error code into a plain-English cause, a classification, and a fix. Use whenever a code or numeric error needs decoding: "what does Ayrshare error 156 mean", "why did that post fail with code 272", "explain this error", "what is error code 110 on Instagram", "how do I fix this Ayrshare error". Trigger when calling `mcp__ayrshare__explain_error`, and even without the word "Ayrshare": if the user surfaces a social-posting error code and wants to know what it means or how to fix it, this is the skill. CRITICAL: whenever ANY OTHER Ayrshare MCP tool returns a structured error code (for example `Error 156: ...`), look the code up here and explain or fix it rather than echoing the raw error back. For the shared auth model and the global retry-safety rule, see `../getting-started/SKILL.md`.
/generateAI content generation for the Ayrshare MCP server — draft post copy and suggest hashtags. Use whenever someone wants help WRITING social content rather than publishing it: "write me a post about our product launch", "draft a tweet announcing the sale", "generate a caption for this image", "give me a LinkedIn post about X", "what should I caption these photos", "suggest hashtags for sustainable fashion", "recommend trending hashtags for ...". Trigger when calling `mcp__ayrshare__generate_post` or `mcp__ayrshare__recommend_hashtags`, and even without the word "Ayrshare" — if the user wants AI-written social copy or hashtag ideas through an assistant, this is the skill. These tools produce DRAFTS ONLY; they never publish. The natural next step is `mcp__ayrshare__validate_post` then `mcp__ayrshare__create_post` (see `../post/SKILL.md`). For the shared auth model and retry rules, see `../getting-started/SKILL.md`.
/getting-startedFoundation skill for the Ayrshare MCP server: auth model, installation, client onboarding, and retry safety. Use it when installing, configuring, or wiring up the Ayrshare MCP plugin or server in Claude Code; when an Ayrshare tool returns 401/403 or "unauthorized", or no Ayrshare tools appear; when it is unclear WHICH credential to use (Business API key vs Profile-Key, how to act as a client); when onboarding a client profile; or when the user has no Ayrshare account or API key yet. Trigger even without the word "Ayrshare" if tools named `mcp__ayrshare__*` are involved, or the user asks how to set up an MCP server for social posting or connect a client's social accounts through an AI assistant. Every other Ayrshare skill cross-links here for the shared auth and retry rules.
/historyPost history for the Ayrshare MCP server — list past and scheduled posts, optionally filtered by recency, platform, and status. Use whenever someone wants to see what's been posted: "show my recent posts", "what did we publish last week", "history for this client", "did that scheduled post go out", "list our LinkedIn posts", or to look up a post id for analytics. Also the verification step after onboarding a client — confirming their accounts linked — and the way to find a NATIVE Social Post ID for analytics on a post that wasn't created through Ayrshare. Trigger when calling `mcp__ayrshare__get_post_history` or `mcp__ayrshare__get_platform_history`, and even without the word "Ayrshare" — if the user wants a log of social posts through an AI assistant, this is the skill. For the shared auth model and the full onboarding sequence, see `../getting-started/SKILL.md`.
npx claudepluginhub ayrshare/ayrshare-social-media-api-claude-plugin --plugin ayrshareOther plugins' skills for the same job