text_url_canonical
RFC 3986 §6.2.2 syntax-based URL canonicalization where EVERY transformation is listed in the response: scheme/host case, default port, dot-segments (§5.2.4 algorithm), percent-encoding (uppercase hex + unreserved decode — structural %26 stays encoded, on purpose), IDN host → punycode (RFC 3492). Tracking params (utm_*, gclid, fbclid, msclkid, mc_*, _hs*, igshid — published names from platform docs) removed only when asked, each removal NAMED. Query order preserved by default — it is data; sort_params is an explicit opt-in. The canonical URL you can explain. Free.
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": "text_url_canonical"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| sort_params | No | ||
| drop_fragment | No | ||
| strip_tracking | No |