Linkly MCP by usefulapi
v1.2.1Read short links, clicks and conversions; create or update short links in Linkly.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
linkly_list_workspaces List workspaces
List the Linkly workspaces this API key can access, with their ids. Call this first to find the workspace_id for the other tools. Linkly API: GET /api/v1/workspaces.
linkly_list_links List links
List the short links in a workspace, with click totals (today, 30 days, all time), domain and destination. Supports search, sorting and pages. Linkly API: GET /api/v1/workspace/{workspace_id}/list_links.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | Workspace id. Use linkly_list_workspaces to find it. | |
deleted | boolean | List deleted links (true) or live links (false, default). |
page | integer | Page number (default 1). |
page_size | integer | Links per page (default set by Linkly). |
search | string | Search text (matches slugs and destinations). |
sort_by | string | Field to sort by, as Linkly names it (for example clicks_total). |
sort_dir | string | Sort direction. |
linkly_get_link Get link
Get one short link: destination, short URL, UTM parameters, rules and settings. Click counts are not included; use linkly_get_clicks or linkly_list_links for them. Linkly API: GET /api/v1/link/{id}.
| Parameter | Type | Description |
|---|---|---|
link_id * | Link id (from linkly_list_links or linkly_get_link). | |
workspace_id | Workspace id. Use linkly_list_workspaces to find it. |
linkly_get_clicks Get clicks
Get a click time series for a workspace or for chosen links, with filters for country, browser, platform, referer, bots and unique visitors. Analytics calls draw on the workspace's plan allowance. Linkly API: GET /api/v1/workspace/{workspace_id}/clicks.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | Workspace id. Use linkly_list_workspaces to find it. | |
bots | boolean | Include (true) or exclude (false) known bot traffic. |
browser | string | Filter by browser name. |
country | string | Filter by country (as the API names it). |
end | string | End of the period, as the API accepts it (ISO 8601 date or datetime). |
frequency | string | Bucket size of the series (default day). |
isp | string | Filter by internet provider. |
link_id | string | One link id to filter by. |
link_ids | string | Comma-separated link ids to filter by. |
pivot | string | Group the series by link. |
platform | string | Filter by platform (operating system). |
referer | string | Filter by referring site. |
start | string | Start of the period, as the API accepts it (ISO 8601 date or datetime). |
timezone | string | IANA timezone for the series (for example Europe/Prague). |
unique | boolean | Count unique visitors only (true) or all clicks (false). |
linkly_get_click_counters Get click counters
Get the top values of one click dimension (for example country, city, referer, utm_source, destination) with click counts. Linkly API: GET /api/v1/workspace/{workspace_id}/clicks/counters/{counter}.
| Parameter | Type | Description |
|---|---|---|
counter * | string | The dimension to count by. |
workspace_id * | Workspace id. Use linkly_list_workspaces to find it. | |
bots | boolean | Include (true) or exclude (false) known bot traffic. |
country | string | Filter by country (as the API names it). |
end | string | End of the period, as the API accepts it (ISO 8601 date or datetime). |
link_id | string | One link id to filter by. |
link_ids | string | Comma-separated link ids to filter by. |
start | string | Start of the period, as the API accepts it (ISO 8601 date or datetime). |
unique | boolean | Count unique visitors only (true) or all clicks (false). |
linkly_list_conversions List conversions
List recorded conversions (goal events tied to clicks) for a workspace, newest first, with a page cursor. Linkly API: GET /api/v1/conversions.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor from the previous page. |
limit | integer | Maximum number of conversions to return. |
since | string | Only conversions after this time (ISO 8601). |
workspace_id | Workspace id. Use linkly_list_workspaces to find it. |
linkly_list_domains List domains
List the custom short-link domains of a workspace, with their ids and verification state. Linkly API: GET /api/v1/workspace/{workspace_id}/domains.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | Workspace id. Use linkly_list_workspaces to find it. |
linkly_list_workspace_webhooks List workspace webhooks
List the click-notification webhooks subscribed to a workspace. Linkly API: GET /api/v1/workspace/{workspace_id}/webhooks.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | Workspace id. Use linkly_list_workspaces to find it. |
linkly_list_link_webhooks List link webhooks
List the click-notification webhooks subscribed to one short link. Linkly API: GET /api/v1/link/{link_id}/webhooks.
| Parameter | Type | Description |
|---|---|---|
link_id * | Link id (from linkly_list_links or linkly_get_link). |
linkly_create_or_update_link Create or update link
Create a short link in a workspace (give url and workspace_id), or update an existing link (give its id and only the fields to change). An update changes where a live short link sends visitors. Linkly API: POST /api/v1/link.
| Parameter | Type | Description |
|---|---|---|
domain | string | Custom short-link domain, as configured in the workspace. |
enabled | boolean | Turn the link on (true) or off (false). |
id | Existing link id to update. Leave empty to create a new link. | |
name | string | Internal name for the link (not shown to visitors). |
note | string | Internal note for the link. |
slug | string | Custom slug for the short link (random when empty). |
url | string | Destination URL (required when creating a link). |
utm_campaign | string | UTM campaign appended to the destination. |
utm_content | string | UTM content appended to the destination. |
utm_medium | string | UTM medium appended to the destination. |
utm_source | string | UTM source appended to the destination. |
utm_term | string | UTM term appended to the destination. |
workspace_id | Workspace id. Required when creating a link. |