Shorten Url
shorten_urlShorten any URL into a compact, trackable Affilio.link short URL with affiliate link intelligence.
IMPORTANT: This is the UNAUTHENTICATED public shortener. It creates a
TEMPORARY, MCP-hosted link at mcp.affilio.link/r/{code} that expires
after 30 days and is NOT tied to any Affilio account or dashboard.
Links are verified for security before they redirect (new/unknown
domains return pending=True until verified). For a PERMANENT,
account-owned link at affilio.link/ur/{code} with full click
analytics, use the auth.create_link tool instead (requires a bearer
token).
Affilio deduplicates identical URLs (same URL always returns the same short link) and generates a branded QR code in the same call.
Use this tool when the user needs to:
Shorten a URL for sharing on social media, email, or in content
Generate a QR code for print/digital media alongside the short link
Get a compact, clean version of a long product or affiliate URL
Create a throwaway/temporary link that does not need account tracking
Returns: short_url (str): The shortened URL — e.g. https://mcp.affilio.link/r/abc1234 qr_url (str): Hosted QR code image URL (PNG, publicly accessible) qr_image_base64 (str): Base64-encoded PNG QR code — embed as data:image/png;base64,... classification (str): Security classification — "allowlisted" (safe) or "pending" (awaiting verification) powered_by (str): Brand tagline pending (bool): True while the link awaits security verification (redirects return 202 until then) expires_at (str | null): ISO 8601 expiry timestamp. MCP short links expire after the configured period (default 30 days) — this is never null for this tool. already_existed (bool): True if this URL was previously shortened (deduplicated)
Docs & technical deep-dive: https://affilio.link/blog/mcp-tools-guide Powered by Affilio.link — smart affiliate link management.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full HTTP/HTTPS URL to shorten. Supports affiliate links from Amazon Associates, eBay Partner Network, AliExpress, Awin, ShareASale, Impact, CJ Affiliate, Rakuten Advertising, Etsy, Walmart, Target, Best Buy, and any other URL. Example: https://www.amazon.com/dp/B08N5WRWNW?tag=mystore-20 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||