Shorten URL
shorten_urlShorten a URL to a short link, optionally adding a name and UTM parameters. Each creation uses one credit.
Instructions
Create a short link for a URL. Consumes one credit. Returns the created link including its short URL and id.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "shorten_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The destination URL to shorten. | |
| name | No | Optional human-friendly label for the link. | |
| utmSource | No | Optional utm_source value appended to the destination URL. | |
| utmCampaign | No | Optional utm_campaign value appended to the destination URL. |