Skip to main content
Glama

URL parser

hopi_url_parser
Read-onlyIdempotent

Parse a URL into its parts: protocol, host, port, path, fragment, origin and every decoded query parameter. If no scheme is given, https:// is assumed for a bare domain. Source: https://hopi.co.uk/url-parser/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to parse

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNo
pathNo
portNo
originNo
paramsNo
summaryYes
fragmentNo
protocolNo
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)
portIsDefaultNo
schemeAssumedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / required
      Added value: +[
      +  "source_url",
      +  "summary"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already promise a safe read-only operation, so the description goes beyond them by disclosing the default-scheme behavior and the fact that query parameters are decoded. It does not mention failure modes or unsupported URL forms, but for a simple parser this is solid disclosure.

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?

Two tight sentences with the core behavior front-loaded and the edge-case default immediately after. The source URL at the end is slightly unnecessary but does not impede readability.

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?

For a one-parameter, read-only parser with an output schema to document the return shape, the description covers inputs, output parts, and the only meaningful default. Nothing required to invoke it correctly is missing.

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

Parameters4/5

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

The schema only says the parameter is 'The URL to parse', while the description adds meaning: a bare domain is accepted and defaults to https, and query parameters are decoded. That is useful semantic detail beyond the 100%-covered schema.

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?

The description states a precise verb ('Parse'), a clear resource ('a URL'), and enumerates the exact outputs (protocol, host, port, path, fragment, origin, decoded query parameters), so an agent can distinguish it from siblings like hopi_url_encoder and hopi_user_agent_parser without inspecting schemas.

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?

The use case is implied by the output list rather than stated explicitly: there is no 'use when...' or note that encoding URLs is handled elsewhere. The behavioral note about assuming https for bare domains is useful but is not when-to-use guidance versus alternatives.

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