/ayrshare:historyfrom Ayrshare - Unified Social Media API for AI Agents
Lists past and scheduled social media posts via the Ayrshare MCP server. Use to view post history, verify onboarding, or find native Social Post IDs for analytics.
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.
Two tools:
mcp__ayrshare__get_post_history — lists posts sent via Ayrshare (returns Ayrshare Post IDs). The default "what have we posted" tool, and the onboarding verification step.mcp__ayrshare__get_platform_history — returns native social posts, including posts not made through Ayrshare (returns native Social Post IDs). This is how you find a native Social Post ID to feed mcp__ayrshare__get_post_analytics_by_social_id.Both are profile-scoped: choose the profile with the profileKey argument or the Profile-Key header (see Auth; the argument wins when both are set).
| Tool | Purpose | Method + Endpoint | Required inputs | Optional inputs |
|---|---|---|---|---|
mcp__ayrshare__get_post_history | Retrieve history of posts sent via Ayrshare (past + scheduled); returns Ayrshare Post IDs | GET /history | — | limit (1-1000, default 25), platforms (array), startDate/endDate (ISO 8601), lastDays (default 30, 0=all), status, type (immediate|scheduled), autoRepostId |
mcp__ayrshare__get_platform_history | Retrieve native social posts (incl. posts not made via Ayrshare); returns native Social Post IDs | GET /history/:platform | platform (one enum value) | limit (1-500), skipAnalytics, pagePublished (FB), userId/userName (X), next (cursor), since/until (FB ISO dates), dataType (posts|stories) |
Full input schemas and example payloads/responses are in references/schemas.md.
Both tools are profile-scoped: choose the profile with an optional profileKey tool argument or the Profile-Key connection header (the argument wins when both are set). Pass profileKey on the call to act as one client for that call, or set the plugin's Profile-Key setting (/plugin configure ayrshare@ayrshare, then /reload-plugins; it is sent as the Profile-Key header) to default the whole connection to it; with neither, calls act on the account's primary/Business profile. Full model: ../getting-started/SKILL.md.
Exception, get_platform_history userId/userName (Twitter/X): when you target a specific X user by userId (numeric Twitter ID) or userName (handle), that lookup must use the API key only; it is not profile-scoped. Supplying a profileKey (argument or Profile-Key header) alongside userId/userName returns Error 400. Every other history call (and get_post_history entirely) is profile-scoped as above. See references/schemas.md.
profileKey as the argument (per call; it wins) or set the connection's Profile-Key header → that profile's posts. With neither → the account's primary/Business profile. Be deliberate about which profile you're targeting.get_post_history filters are all optional. Use lastDays to bound recency (default 30; pass 0 for all time), startDate/endDate for an explicit ISO 8601 window, platforms to narrow to a subset of networks, status to filter by lifecycle state (awaiting approval, deleted, error, paused, pending, processing, success), and limit to cap results (1-1000, default 25). Omit them all for the default recent history.get_post_history scoped to their profile (pass their profileKey as the argument, or set the connection's Profile-Key header) to confirm the connection succeeded and surface their existing posts. This is the verification step in the onboarding sequence in ../getting-started/SKILL.md.get_post_history returns each post's Ayrshare id — the id you feed to mcp__ayrshare__get_post_analytics and mcp__ayrshare__get_post for Ayrshare-sent posts.get_platform_history with the platform (required). It returns native social posts — including posts not made through Ayrshare — each with a native Social Post id. That native id is exactly what mcp__ayrshare__get_post_analytics_by_social_id needs (native id + platform). So get_platform_history is how you find the native ids to feed analytics-by-social-id. See the Analytics skill for the analytics side of this workflow.profileKey argument (per call; it wins) or the connection's Profile-Key header; with neither it's the primary profile, and the call succeeds regardless. Confirm you're targeting the right profile before trusting the results.get_post_history returns Ayrshare Post IDs (for get_post_analytics, get_post, retry_post, update_post). get_platform_history returns native Social Post IDs (for get_post_analytics_by_social_id). Don't feed one tool's ids to a path expecting the other.get_platform_history requires platform. It is GET /history/:platform, so exactly one platform is required: one of bluesky, facebook, instagram, linkedin, pinterest, snapchat, threads, tiktok, twitter, youtube. (Note this 10-platform history set excludes gmb, reddit, and telegram, which the 13-platform POST set includes.)get_post_history platforms is plural and an array. It accepts a subset of the 13 POST platforms (twitter, facebook, instagram, linkedin, tiktok, youtube, pinterest, reddit, telegram, gmb, bluesky, snapchat, threads) and filters within the already-chosen profile scope — it does not change scope.Profile-Key; verify with get_post_history. See the onboarding sequence in ../getting-started/SKILL.md.mcp__ayrshare__explain_error, then surface it — don't loop. These are reads, but a 4xx (bad filter, unsupported platform, wrong scope) won't fix itself on retry. Translate the error via mcp__ayrshare__explain_error and present it; 429 gets at most one retry. (Mirrors the global retry-safety rule.)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ayrshare/ayrshare-social-media-api-claude-plugin --plugin ayrshare13 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`.
/commentsUse whenever someone wants to read, add, or reply to comments on a social media post through the Ayrshare MCP server — the `mcp__ayrshare__get_comments`, `mcp__ayrshare__add_comment`, and `mcp__ayrshare__reply_comment` tools. Trigger on phrasings like "leave a comment on that post", "reply to that commenter", "respond to the top comment", "what are people saying on my LinkedIn post", "pull the comments", or "answer the question someone left on Instagram" — even if the user never says "Ayrshare", "MCP", or names a tool. Also trigger when a user wants to engage with an audience under an existing post rather than create a new post. For installing/configuring the server and the auth model, this skill cross-links to `../getting-started/SKILL.md`. To create the post being commented on, see `../post/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.
Other plugins' skills for the same job