Dub MCP by usefulapi
v1.41.0Short links with click, lead and sale analytics, customers, tags and the partner programme.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dub_list_links List short links
List short links, filtered by domain, tag, folder or a text search. Dub: GET /links.
| Parameter | Type | Description |
|---|---|---|
domain | string | Only links on this short domain. |
folderId | string | Only links in this folder. |
page | integer | 1-based page number. |
pageSize | integer | Page size, 1-100. |
search | string | Free-text search over the key, URL and title. |
showArchived | boolean | Include archived links. |
tagNames | array | Only links carrying these tag names. |
dub_get_link Get one short link
Fetch a single link by its id, its external id, or its domain plus key. Dub: GET /links/info.
| Parameter | Type | Description |
|---|---|---|
domain | string | The short domain, used with key. |
externalId | string | Your own id for the link. |
key | string | The short key, used with domain. |
linkId | string | The link's Dub id. |
dub_count_links Count short links
Count links matching a filter, optionally grouped by domain, tag or folder. Cheaper than listing when you only need totals. Dub: GET /links/count.
| Parameter | Type | Description |
|---|---|---|
domain | string | Only links on this short domain. |
folderId | string | Only links in this folder. |
groupBy | string | Return counts grouped by this dimension. |
search | string | Free-text search. |
dub_get_analytics Get analytics
Get aggregated click, lead and sale analytics, grouped by a dimension such as country, device, referer or top links. The main reporting read. Dub: GET /analytics.
| Parameter | Type | Description |
|---|---|---|
country | string | Filter to one country code. |
device | string | Filter to one device type. |
domain | string | Only links on this domain. |
end | string | ISO-8601 end of an absolute range. |
event | string | Which event type to report. Defaults to clicks. |
groupBy | string | Dimension to group by, e.g. count, timeseries, top_links, countries, cities, devices, browsers, os, referers, utm_sources. |
interval | string | Relative time window. Use start/end instead for an absolute range. |
key | string | The short key, used with domain. |
linkId | string | Only this link. |
start | string | ISO-8601 start of an absolute range. |
dub_list_events List raw events
List individual click, lead and sale events rather than aggregates — the row-level detail behind the analytics. Dub: GET /events.
| Parameter | Type | Description |
|---|---|---|
customerId | string | Only this customer's events. |
end | string | ISO-8601 end of an absolute range. |
event | string | Which event type to list. |
interval | string | Relative time window. Use start/end instead for an absolute range. |
limit | integer | Page size, 1-100. |
linkId | string | Only this link's events. |
page | integer | 1-based page number. |
start | string | ISO-8601 start of an absolute range. |
dub_list_customers List customers
List the customers Dub has attributed to links, by email, external id or link. Dub: GET /customers.
| Parameter | Type | Description |
|---|---|---|
email | string | Only the customer with this email. |
externalId | string | Your own id for the customer. |
linkId | string | Only customers attributed to this link. |
page | integer | 1-based page number. |
pageSize | integer | Page size, 1-100. |
search | string | Free-text search. |
dub_get_customer Get one customer
Fetch a single customer with their attribution. Dub: GET /customers/{id}.
| Parameter | Type | Description |
|---|---|---|
customer_id * | string | The customer's Dub id. |
dub_list_tags List tags
List the tags available for organising links. Dub: GET /tags.
| Parameter | Type | Description |
|---|---|---|
page | integer | 1-based page number. |
pageSize | integer | Page size, 1-100. |
search | string | Free-text search over tag names. |
dub_list_folders List folders
List link folders and their access levels. Dub: GET /folders.
| Parameter | Type | Description |
|---|---|---|
page | integer | 1-based page number. |
pageSize | integer | Page size, 1-100. |
search | string | Free-text search over folder names. |
dub_list_domains List domains
List the short domains configured on the workspace. Dub: GET /domains.
| Parameter | Type | Description |
|---|---|---|
archived | boolean | Include archived domains. |
page | integer | 1-based page number. |
pageSize | integer | Page size, 1-100. |
search | string | Free-text search. |
dub_list_partners List partners
List the partners (affiliates) in the programme, by status, country or email. Dub: GET /partners.
| Parameter | Type | Description |
|---|---|---|
email | string | Only the partner with this email. |
page | integer | 1-based page number. |
pageSize | integer | Page size, 1-100. |
search | string | Free-text search. |
status | string | Only partners in this state, e.g. approved, pending. |
dub_get_partner_analytics Get partner analytics
Get analytics for the partner programme — clicks, leads, sales and revenue per partner. Dub: GET /partners/analytics.
| Parameter | Type | Description |
|---|---|---|
end | string | ISO-8601 end of an absolute range. |
groupBy | string | Dimension to group by, e.g. count, timeseries, top_partners. |
interval | string | Relative time window. Use start/end instead for an absolute range. |
partnerId | string | Only this partner. |
start | string | ISO-8601 start of an absolute range. |
dub_list_partner_applications List partner applications
List pending applications to join the partner programme. Dub: GET /partners/applications.
| Parameter | Type | Description |
|---|---|---|
page | integer | 1-based page number. |
pageSize | integer | Page size, 1-100. |
dub_list_commissions List commissions
List partner commissions, by partner, status, customer or time window. Dub: GET /commissions.
| Parameter | Type | Description |
|---|---|---|
customerId | string | Only commissions from this customer. |
interval | string | Relative time window. Use start/end instead for an absolute range. |
page | integer | 1-based page number. |
pageSize | integer | Page size, 1-100. |
partnerId | string | Only this partner's commissions. |
status | string | Only commissions in this state. |
type | string | Only commissions of this type, e.g. sale, lead, click. |
dub_list_payouts List payouts
List partner payouts and their status. Dub: GET /payouts.
| Parameter | Type | Description |
|---|---|---|
page | integer | 1-based page number. |
pageSize | integer | Page size, 1-100. |
partnerId | string | Only this partner's payouts. |
status | string | Only payouts in this state. |
dub_create_link Create a short link
Create a short link. Omit `key` to let Dub generate one. Dub: POST /links.
| Parameter | Type | Description |
|---|---|---|
url * | string | The destination URL. |
comments | string | An internal note. |
description | string | Custom link preview description. |
domain | string | Short domain to create it on. Defaults to the workspace default. |
externalId | string | Your own id for this link. |
folderId | string | Folder to file it under. |
key | string | The short key. Omit for a random one. |
tagNames | array | Tags to attach, by name. |
title | string | Custom link preview title. |
dub_update_link Update a short link
Change a link's destination, key, tags or archived state. Dub: PATCH /links/{linkId}.
| Parameter | Type | Description |
|---|---|---|
linkId * | string | The link to update. |
archived | boolean | Archive or unarchive the link. |
comments | string | New internal note. |
key | string | New short key. |
tagNames | array | Replace the link's tags. |
title | string | New preview title. |
url | string | New destination URL. |
dub_delete_link Delete a short link
Delete a short link. The URL stops resolving immediately and its analytics go with it. Dub: DELETE /links/{linkId}.
| Parameter | Type | Description |
|---|---|---|
linkId * | string | The link to delete. |
dub_create_tag Create a tag
Create a tag for organising links. Dub: POST /tags.
| Parameter | Type | Description |
|---|---|---|
name * | string | The tag name. |
color | string | Tag colour in the dashboard. |
dub_create_folder Create a folder
Create a folder for grouping links. Dub: POST /folders.
| Parameter | Type | Description |
|---|---|---|
name * | string | The folder name. |
accessLevel | string | Default workspace access to the folder. |
description | string | What the folder is for. |
dub_approve_partner_application Approve a partner application
Approve an application to join the partner programme. The partner gains links and starts earning commission. Dub: POST /partners/applications/approve.
| Parameter | Type | Description |
|---|---|---|
applicationId * | string | The application to approve. |
groupId | string | Place the partner in this group. |
dub_reject_partner_application Reject a partner application
Reject an application to join the partner programme. Dub: POST /partners/applications/reject.
| Parameter | Type | Description |
|---|---|---|
applicationId * | string | The application to reject. |