Skip to main content
Glama

util_url_parse

Read-only

URL parser + risk flags — Break any URL into parts offline: scheme, credentials (password redacted), host and host type (domain, IPv4, IPv6, punycode IDN), TLD, public suffix (built-in list of common multi-part suffixes like co.uk, com.au, github.io), registrable domain, subdomain, port and default port, path segments (decoded), file extension, every query parameter decoded with duplicate keys, tracking parameters (utm_*, gclid, fbclid, msclkid...) and a clean URL without them, and the fragment. Flags phishing-style structure: userinfo before @, raw IP host, punycode, brand or login words in a subdomain of someone else's domain, abused TLDs, open-redirect parameters, double encoding, non-standard ports, plain http, javascript:/data: schemes, giving a LOW / MEDIUM / HIGH structural risk. Price: $0.002 USDC (Base, via x402).

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": "util_url_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYese.g. https://shop.example.co.uk:8443/path/to/item.html?utm_source=news&id=42#reviews

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description adds real behavioral context beyond them: parsing is done offline with a built-in suffix list, passwords are redacted, risk is bucketed into LOW/MEDIUM/HIGH, and a per-call price of $0.002 USDC via x402 applies. The cost/paid-endpoint disclosure is the kind of operational fact an agent needs before invoking; only the lack of any note on error handling or malformed-URL behavior keeps it from a 5.

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?

The core capability is front-loaded in the first clause, and the long enumeration of parsed parts is doing real work because no output schema exists. It is a single dense run-on sentence, though, which makes scanning harder than a short bulleted structure would.

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?

With no output schema and only one input parameter, the description fully compensates by enumerating the returned fields (scheme, host type, public suffix, registrable domain, decoded query params, tracking params, clean URL, fragment) plus the risk signal set and its output scale. Nothing an agent needs to decide whether to call it 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?

There is a single parameter at 100% schema coverage with an illustrative example in the schema, so the schema carries the burden and the baseline is 3. The description adds no further constraint (e.g., whether bare hostnames without a scheme are accepted, or how non-URL input is rejected).

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

Purpose4/5

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

The opening clause names a specific verb and resource ('URL parser + risk flags') and the body enumerates exactly which parts are extracted, so the agent knows precisely what it gets. It does not, however, distinguish itself from near neighbors such as util_url_clean or url_safety, which handle overlapping concerns (cleaning, risk scoring).

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

Usage Guidelines3/5

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

Usage is implied by the tool's nature: parse a URL when you need its components or a structural risk verdict. There is no explicit when-to-use/when-not guidance, no mention of when to prefer util_url_clean for stripping trackers or url_safety for a reputation check, so the agent must infer routing.

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.

Resources