Skip to main content
Glama

url-parser

Read-onlyIdempotent

Parse a URL into its components: protocol, host, port, path, query parameters, hash. Returns the query string parsed into a key-value map.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to parse. Must include the protocol (http:// or https://).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hashYesFragment identifier including leading '#', or empty.
hostYesHostname plus port if present.
pathYesPathname including leading slash.
portYesPort number as a string, or null.
queryYesRaw query string including leading '?', or empty.
originYesOrigin (protocol + host).
paramsYesParsed query parameters.
hostnameYesHostname only.
protocolYesURL protocol without trailing colon (e.g. 'https').

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the agent knows this is a safe, non-mutating operation. The description adds return-format context (query string as key-value map) but does not disclose error behavior for invalid URLs, which is a minor gap given the schema's protocol requirement.

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

Conciseness5/5

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

The description is two sentences, front-loaded with the primary action, and contains no redundant information. Every phrase contributes meaning.

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

Completeness4/5

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

For a simple, single-parameter tool with rich annotations and an output schema, the description is largely complete. It explains what the tool returns and the key constraint (protocol required). It does not discuss edge-case errors, but given the tool's simplicity and existing schema, this is acceptable.

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%; the 'url' parameter is described with the protocol requirement. The description adds output-related semantics but does not deepen parameter understanding beyond what the schema already provides, so the baseline score of 3 is appropriate.

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 clearly states the action (parse), the resource (URL), and the specific output components (protocol, host, port, path, query parameters, hash). It distinguishes itself from siblings like url-encoder by focusing on decomposition rather than transformation.

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 description implies the tool is used when a URL needs to be broken down into its components, but it does not explicitly state when to use this tool versus alternatives, nor does it mention any exclusions or prerequisites beyond the protocol requirement in the schema.

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.

TDQS

A3.9/5.0
Disambiguation4/5

Most tools have distinct purposes. However, 'hex-to-rgb' is redundant with 'color-converter', which already handles hex-to-RGB conversion, causing potential confusion.

Naming Consistency4/5

Names follow a consistent lowercase-with-hyphens style, but vary in pattern (e.g., 'angle-converter', 'average-calculator', 'dedup-lines'). One tool ('internal-do-not-call') deviates from the descriptive norm.

Tool Count2/5

With 46 tools, the server is heavily populated. Many converters could be merged into a generic unit converter, and there is redundancy, making the surface unnecessarily large for a single server.

Completeness4/5

The server covers a broad range of utility domains: converters, text processing, math, cryptography, etc. Minor redundancies exist (e.g., hex-to-rgb vs color-converter), but the set is otherwise comprehensive.

Resources