TinyURL MCP by usefulapi
v1.28.0Create and manage TinyURL short links: aliases, destinations, tags, archive, click analytics.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
tinyurl_get_link Get a short link
Details of one short link: destination URL, tiny_url, tags, created/expires dates, archived/deleted flags, analytics settings, total hits and owner. GET /alias/{domain}/{alias}.
| Parameter | Type | Description |
|---|---|---|
alias * | string | The alias, the part after the domain: https://tinyurl.com/<alias>. |
domain | string | The short link's domain: tinyurl.com (default) or one of the account's branded domains. |
tinyurl_list_links List short links
List the account's short links (type available = active, archived = archived), optionally created within a date range or filtered by alias or tag. The TinyURL API does not page this list: at most `limit` items (default 50, max 200) are returned together with the total, so narrow with from/to/search when truncated is true. GET /urls/{type}.
| Parameter | Type | Description |
|---|---|---|
from | string | Only links created after this ISO 8601 date or date-time. |
limit | integer | Maximum links to return (default 50). |
search | string | Filter: alias:<text> or tag:<text>. |
to | string | Only links created before this ISO 8601 date or date-time. |
type | string | available = active links, archived = archived links. |
tinyurl_count_links Count short links
How many short links the account has (active or archived), optionally within a creation date range or filtered by alias or tag. GET /urls/{type}/count.
| Parameter | Type | Description |
|---|---|---|
from | string | Only links created after this ISO 8601 date or date-time. |
search | string | Filter: alias:<text> or tag:<text>. |
to | string | Only links created before this ISO 8601 date or date-time. |
type | string | available = active links, archived = archived links. |
tinyurl_get_analytics Get click analytics
Aggregated click analytics for the account, or for one link (alias) or one tag, from a start date. report: timeline (clicks over time; interval minute/hour/day/week/month), general (browsers, operating systems, devices), weekday and hour (popularity), top_sources (referrers), top_languages, location (countries, or the regions of one country via region = ISO 3166 alpha-2 code). Which reports are available depends on the account's TinyURL plan. Visitor-level raw logs are not exposed. GET /analytics/*.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start of the report, ISO 8601 date or date-time (required). |
report * | string | Which analytics report. |
alias | string | Only this short link, written domain/alias, e.g. tinyurl.com/myalias. |
interval | string | Bucket size, timeline report only. |
region | string | location report only: world (default, lists countries) or a country code such as US (lists its regions). |
tag | string | Only links with this tag. |
to | string | End of the report (default: now). |
tinyurl_create_link Create a short link
WRITE: create ONE new short link for an http(s) destination URL. Optional custom alias (5-30 characters on tinyurl.com), domain (tinyurl.com or a branded domain), tags, expiry and description. Not idempotent: calling it again without an alias creates another link. Returns the new tiny_url. POST /create.
| Parameter | Type | Description |
|---|---|---|
url * | string | The long destination URL (absolute, http:// or https://). |
alias | string | Custom alias (5-30 characters on tinyurl.com, 1+ on a branded domain). A random one is generated when omitted. |
description | Internal description of the link (3-1000 characters). | |
domain | string | Domain for the new link: tinyurl.com (default) or one of the account's branded domains. |
expires_at | ISO 8601 expiry; omit or null for a link that never expires. | |
tags | array | Tags to group the link (each up to 45 characters). |
tinyurl_update_link Update a short link's alias, tags or settings
WRITE: change an existing short link's alias, tags, expiry, description or click-analytics switch. At least one new_* field is required. DESTRUCTIVE for what it replaces: new_tags REPLACES all existing tags, and renaming the alias (new_alias) makes the old short URL stop working. The destination URL is changed with tinyurl_change_destination. PATCH /update.
| Parameter | Type | Description |
|---|---|---|
alias * | string | The link's current alias. |
domain | string | The short link's domain: tinyurl.com (default) or one of the account's branded domains. |
new_alias | string | New alias (5-30 characters on tinyurl.com). The old short URL stops working. |
new_description | New description (null clears it). | |
new_expires_at | New ISO 8601 expiry; null = never expires. | |
new_stats | boolean | true/false = turn click-analytics collection on/off. |
new_tags | array | The complete new tag list; replaces the existing tags (an empty list removes them). |
tinyurl_change_destination Change a short link's destination URL
WRITE: point an existing short link at a new destination. DESTRUCTIVE: everyone who opens the short link is sent to the new URL from now on and the old destination is overwritten. The new URL must be http(s). PATCH /change.
| Parameter | Type | Description |
|---|---|---|
alias * | string | The link's alias. |
url * | string | The new destination URL (absolute, http:// or https://). |
domain | string | The short link's domain: tinyurl.com (default) or one of the account's branded domains. |
tinyurl_set_link_archived Archive or unarchive a short link
WRITE: archive an active short link (archived = true) or restore an archived one (archived = false). Archiving moves the link to the archived list; nothing is deleted and it can be restored. The API's archive endpoint is a toggle, so the link's current state is read first and nothing is changed when it already matches, and the state afterwards is checked. Do not run two archive calls for the same link at once. GET /alias/{domain}/{alias}, then PATCH /archive.
| Parameter | Type | Description |
|---|---|---|
alias * | string | The alias, the part after the domain: https://tinyurl.com/<alias>. |
archived * | boolean | true = archive the link, false = unarchive it. |
domain | string | The short link's domain: tinyurl.com (default) or one of the account's branded domains. |