validate_url
Verify a URL before fetching or storing by parsing it with the WHATWG URL standard and checking that the host's TLD is a real IANA suffix. Returns protocol, hostname, port, path, and TLD validity.
Instructions
USE THIS to verify a URL before fetching or storing it — parses it with the WHATWG URL standard and additionally checks that the host's TLD is a real IANA suffix. Returns protocol, hostname, port, path and whether the TLD is known.
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": "validate_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The absolute URL to validate (e.g. https://example.com/path). |