From Ayrshare - Unified Social Media API for AI Agents
Validates media URLs for social media posts via the Ayrshare MCP. Performs HEAD checks to confirm reachability and content type before attaching to posts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ayrshare:mediaThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
There is **one** media tool: `mcp__ayrshare__validate_media`. It HEAD-checks that a media URL is reachable and reports the content type, so you can confirm an image/video URL is usable **before** attaching it to a post.
There is one media tool: mcp__ayrshare__validate_media. It HEAD-checks that a media URL is reachable and reports the content type, so you can confirm an image/video URL is usable before attaching it to a post.
The key concept — Ayrshare MCP does not store media. There is no upload, no media library, and no resize tool. You reference media by its public URL in a post's mediaUrls array (see ../post/SKILL.md). validate_media is how you check that URL is reachable and the right content type before posting. There is no upload/list/resize step.
If a user asks to "upload", "store in the library", or "resize for Instagram": there is no MCP tool for that. The agent must obtain a publicly hosted URL (e.g. on the user's CDN, S3, or any public host) at the correct dimensions, validate it, then attach the URL to the post. Route the user to supply a hosted URL.
https://api.ayrshare.com/apimediaUrls array — see ../post/SKILL.md.| Tool | Purpose | Method + Endpoint | Required inputs | Optional inputs |
|---|---|---|---|---|
mcp__ayrshare__validate_media | HEAD-check that a media URL is reachable and report its content type, before using it in a post | POST /media/urlExists | mediaUrl (a single media URL string) | — (none) |
Per-platform media constraints to check before posting (dimensions, aspect ratios, size, duration) are in references/limits.md. Example payloads are in references/examples.md.
validate_media only HEAD-checks that a media URL is reachable, so it is effectively profile-agnostic, and it does not take a profileKey argument (it is one of the few tools excluded from per-call profile selection). The Business API key (HTTP Bearer) is configured when the MCP server is installed; see ../getting-started/SKILL.md for installation, the full auth model, and Which tools accept profileKey.
mcp__ayrshare__validate_media with that mediaUrl to confirm it's reachable and the content type is what you expect; (3) pass the validated URL(s) into mcp__ayrshare__create_post's mediaUrls. Validating first turns a post-time failure into a clear, early error.validate_media answers "will this URL work at all" — is it reachable, and is it the content type you expect. It does not transform, resize, or store the media.references/limits.md). The agent must supply media already sized for each target platform; the MCP cannot resize. If a post targets several networks with conflicting requirements, host the correctly-sized variant for each and attach the right URL per platform.mcp__ayrshare__create_post runs. Run mcp__ayrshare__validate_media first to catch it early; a post referencing a URL that 404s or is the wrong content type will fail.references/limits.md and supply a correctly-sized URL per target platform.create_post references it. Don't put an unvalidated URL in mediaUrls. Confirm with validate_media first, then reference that URL (cross-link: ../post/SKILL.md).validate_media takes no profileKey argument (it only checks a URL, so it is one of the few tools excluded from per-call profile selection). The profile-scoped tools do accept a profileKey argument (see getting-started).validate_media reports an unreachable or wrong-type URL, surface that to the user (and use mcp__ayrshare__explain_error if a numeric error code came back) rather than auto-retrying. A 4xx means the URL is unreachable, the wrong type, or the API key is wrong; fix the input, don't loop. A 429 gets at most one retry after a short delay. (Mirror of the global retry-safety rule — full version in getting-started.)npx claudepluginhub ayrshare/ayrshare-social-media-api-claude-plugin --plugin ayrshareValidates, creates, schedules, fetches, updates, and retries social media posts via the Ayrshare MCP server. Supports multiple platforms including Twitter, LinkedIn, Instagram, and Facebook.
Resizes, crops, and exports images/videos for social media platforms (Instagram, TikTok, LinkedIn, etc.) using AI canvas expansion and subject-aware cropping.
Designs and plans media pipelines for images, video, and downloadable assets, covering format selection (WebP, AVIF), responsive images, video hosting, and DAM organization.