Skip to main content
Glama

URL parser, parse a URL: split a URL into scheme, host, port, path, query parameters and fragment

url_parse
Read-only

Split a URL into protocol, host, port, path, query parameters (as an object), hash and origin, and report whether the host is an IP address. Use to read query parameters or check a link's host. Example: url=https://example.com:8080/a/b?x=1&y=2#top. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL to parse

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations it discloses commercial/access behavior an agent cannot infer: $0.01/call via x402 USDC or card key, first 25 free, failed calls free, and repeats are charged (consistent with idempotentHint=false). The 'reads or computes only and changes nothing' clause largely restates readOnlyHint=true and destructiveHint=false, so that part is redundant rather than additive.

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?

Purpose is front-loaded, followed by usage, an example, then pricing and safety. Every sentence is functional, though the pricing/payment sentence is long and the 'changes nothing' clause partly duplicates the annotations.

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?

There is no output schema, and the description compensates by listing the returned fields explicitly, including the query-parameters-as-object detail and the IP-address flag. Combined with the payment note, an agent has everything needed to call it and interpret the result.

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?

Schema coverage is 100% and there is only one parameter, so the schema already carries the semantics. The description still adds a worked example ('url=https://example.com:8080/a/b?x=1&y=2#top') that shows the accepted full-URL format including port, query and fragment, which is mild but real added value.

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 opens with a specific verb ('Split') and resource ('a URL') and then enumerates exactly what is returned: protocol, host, port, path, query parameters as an object, hash, origin, plus an IP-host flag. That level of output detail makes it unmistakably distinct from the encode/decode siblings in the same family.

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

Usage Guidelines4/5

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

It gives concrete usage contexts: 'Use to read query parameters or check a link's host.' That tells an agent when the tool is the right pick, but it does not name alternatives or exclusions (e.g., use url_decode for a single encoded value), so it stops short of full routing guidance.

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.