Skip to main content
Glama

parse_url

Breaks a URL into scheme, hostname, port, path, query, and fragment. Extracts specific components for debugging, routing, or data validation.

Instructions

Break a URL down into scheme, hostname, port, path, query, and fragment.

Args: url: The URL to parse.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are present, so the description carries the full burden. It discloses the output components but says nothing about error behavior for malformed URLs, handling of relative vs absolute URLs, or whether it is a pure side-effect-free operation.

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?

Front-loaded and free of filler; the purpose sentence leads and the argument note is short. The brief Args block is somewhat redundant stylistically but adds negligible bloat.

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?

With no output schema, the description usefully enumerates the return components, which is the key missing piece an agent would need. For a low-complexity single-parameter tool this is nearly complete, though error handling is unmentioned.

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

Parameters2/5

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

Schema coverage is 0% and the single parameter's description ("url: The URL to parse") merely restates the parameter name. It does not clarify accepted formats, whether a scheme is required, or how relative URLs are treated.

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 uses a precise verb ("Break a URL down") and enumerates the exact components returned (scheme, hostname, port, path, query, fragment). This decomposition makes it functionally distinguishable from validate_url, build_url, and fetch_url without opening any schema.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over validate_url (validity checking) or build_url (construction), nor any stated preconditions. Usage must be entirely inferred from the one-line purpose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.