parse_url
Extract all URL components: scheme, host, domain, subdomain, TLD, port, path, query parameters, UTM tags, and fragment to analyze any link.
Instructions
Parse a URL into its components.
Extracts scheme, host, domain, subdomain, TLD, port, path, path segments, query parameters, UTM tracking tags, and fragment.
Args: url: The URL to parse (e.g. "https://example.com/path?utm_source=google#section")
Returns: dict with keys: valid, scheme, host, subdomain, domain, tld, port, path, path_segments, params, utm_tags, has_utm, fragment, cost_usd
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": "parse_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |