← All tools

Web data / VERSION 1

Inspect a URL

Parse an HTTP(S) URL into components without fetching it or following redirects.

Available via local MCP
RuntimeLocal DockerNetworkNoneRequest / result256 KiB eachProvider costNo API fees; local compute

Give it a task.

Use this MCP call after connecting Piwi. The output below is the result asserted by this tool's tests.

MCP tool call
{
  "name": "piwi_run_url_inspect",
  "arguments": {
    "input": {
      "url": "https://example.com/blog?source=piwi#intro"
    }
  }
}
Expected output
{
  "protocol": "https",
  "hostname": "example.com",
  "port": "",
  "pathname": "/blog",
  "query": [
    [
      "source",
      "piwi"
    ]
  ],
  "fragment": "intro"
}

Inputs

  • url: absolute HTTP(S) URL

Outputs

  • protocol
  • hostname
  • port
  • pathname
  • query (key/value pairs)
  • fragment