Skip to main content
Glama

Web Reader & Search (Tanod)

parse_url

Read-onlyIdempotent

utilpeek: parse a URL. To fetch the page use render_page. The URL is parsed, never fetched. Public-suffix split from the Public Suffix List snapshot bundled with the parser (dated 2025-04-07; suffixes added later are not known), with and without the PSL private section; credentials in the URL are never echoed. A URL that cannot be parsed is a 422 (not charged). Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/url-parser-api.html

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

NameRequiredDescriptionDefault
urlYesURL to parse (never fetched).

Output Schema

NameRequiredDescriptionDefault
hostNo
pathNo
portNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
is_ipNo
queryNo
paramsNo
schemeNo
sourceNo
fragmentNo
usernameNo
subdomainNo
host_asciiNo
idna_validNo
ip_versionNo
normalizedNo
domain_labelNo
has_passwordNo
host_scriptsNo
host_unicodeNo
icann_suffixNo
known_suffixNo
path_segmentsNo
public_suffixNo
effective_portNo
scheme_assumedNo
params_truncatedNo
suffix_is_privateNo
mixed_script_labelNo
registrable_domainNo
path_segments_truncatedNo
icann_registrable_domainNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / properties / url / title
      Removed value: -"Url"
    • removedInput schema / title
      Removed value: -"parse_urlArguments"
    • removedOutput schema / properties / host_scripts / items
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / params / items
      Removed value: -{
      -  "items": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "type": [
      -    "array",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / path_segments / items
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / source / properties
      Removed value: -{
      -  "library": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "license": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "url": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "domain_label": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "effective_port": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "fragment": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "has_password": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "host": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "host_ascii": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "host_scripts": {
      +      "items": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "host_unicode": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "icann_registrable_domain": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "icann_suffix": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "idna_valid": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "ip_version": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "is_ip": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "known_suffix": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "mixed_script_label": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "normalized": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "params": {
      +      "items": {
      +        "items": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "params_truncated": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "path": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "path_segments": {
      +      "items": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "path_segments_truncated": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "port": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "public_suffix": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "query": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "registrable_domain": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "scheme": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "scheme_assumed": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "properties": {
      +        "library": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "license": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "url": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "subdomain": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "suffix_is_private": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "username": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses what an agent actually needs: no network fetch occurs, credentials are never echoed, the PSL snapshot is dated 2025-04-07 with the explicit consequence that newer suffixes are unknown, and the private-section variant is available. It also gives error semantics (422, not charged), latency, price, and the free-tier limit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose and the sibling redirect before operational detail, and nearly every clause carries information (date-bounded PSL, 422-not-charged, price, rate limit). The parenthetical PSL clause is dense and slightly run-on, costing a point on readability rather than on waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return structure need not be explained; the description instead covers the things structured fields do not: fetch-vs-parse semantics, PSL data currency, credential safety, failure mode, cost, and latency. Nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and there is only one parameter, so the schema already carries maxLength 2048, minLength 1, and the "never fetched" note. The description's only added meaning is behavioral (no credential echo), not parameter-level, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"parse a URL" gives a specific verb and resource, and the definition immediately narrows the scope ("parsed, never fetched") and names the sibling it is not (render_page). An agent can distinguish it from render_page without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the alternative explicitly ("To fetch the page use render_page") and the condition that selects it, plus the inverse rule that this tool never fetches. The only gap is an exhaustive list of non-URL-inputs, which is not needed for a single-parameter parser.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.