Skip to main content
Glama

Parse Url

parse_url
Read-onlyIdempotent

Parse a URL into its components (keyless, offline): protocol, host, hostname, port, path, query (as an object), fragment, origin, and any userinfo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesA full URL, e.g. "https://user@example.com:8443/a/b?x=1&y=2#frag".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "url": "https://user@example.com:8443/a/b?x=1&y=2#frag"
      +  },
      +  {
      +    "url": "https://api.example.com/search?q=test"
      +  }
      +]
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already indicate read-only, open-world, idempotent, and non-destructive behavior. The description adds 'keyless, offline', which clarifies no API keys or network calls are needed. This extra context is valuable beyond annotations, though it could mention behavior on invalid input or edge cases.

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?

Single sentence that efficiently and clearly conveys the tool's purpose and output. No extraneous information, well-suited for quick comprehension.

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?

Given the tool's simplicity, rich annotations, and complete schema coverage, the description adequately covers purpose and behavior. However, it lacks guidance on handling invalid or relative URLs, which would complete the context for edge cases.

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?

Only one parameter ('url') with full schema description coverage (100%). The schema includes examples and a clear description. The tool description does not add further parameter details beyond what the schema already provides, so 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?

Description clearly states the tool's function: parsing a URL into its components. It lists specific output components (protocol, host, hostname, port, path, query as object, fragment, origin, userinfo), making the purpose unambiguous and distinct from siblings like 'build_url' or 'parse_query'.

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?

No explicit instructions on when or when not to use this tool. While the description implies usage for extracting URL components, it does not mention alternatives like 'parse_query' for query-only parsing, or 'build_url' for constructing URLs. The agent must infer context from sibling names.

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.