Shorten a URL
shorten_urlCreates a new hrva.cc short link in the signed-in user's account. Each call makes a new link, so calling it again makes a second one; use list_links to find links that already exist. The destination gets the same safety checks as a link made on the hrva.cc website. Returns the full short URL and its destination, plus the visit limit and expiry when set. Every link created here gets the tag ai. A refused call creates nothing and returns the reason, for example "This destination is on a blocklist and can't be shortened. If you think that's a mistake, write to support@hrva.cc.", "Links to hrva.cc can't be shortened again. Use the final destination instead.", "This short URL is already taken. Try another." or "Custom short URL can only contain letters, numbers, hyphens and underscores". Once the visit limit is used up or the expiry has passed, the short link stops redirecting and visitors are told it is no longer available; the owner can turn it back on by editing it on hrva.cc.
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, for example https://example.com/page | |
| tags | No | Tags for the link. The tag ai is always added, and a link keeps at most 10 tags of up to 30 characters each. | |
| alias | No | Custom alias for the short link: letters, numbers, hyphens and underscores, up to 32 characters. A random alias is generated when omitted. | |
| expiresAt | No | When the link stops working, as an ISO-8601 date-time with a time zone, for example 2026-12-31T23:59:00Z or 2026-12-31T23:59:00+01:00 | |
| visitLimit | No | Number of clicks after which the link stops working; every click counts, not counting bots |