Skip to main content
Glama

URL parser

url_parse
Read-onlyIdempotent

Split any URL into its protocol, credentials, host, port, path, query parameters, and fragment. Use it to inspect and debug URL structure before parsing, validating, or rebuilding links.

Instructions

Split a URL into protocol, credentials, host, port, path, query parameters and fragment. (Same as IT-Tools /url-parser.)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "url_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety is covered. The description's real addition is enumerating the parsed fields, which substitutes for the missing output schema, but it says nothing about malformed/invalid URL handling or whether absent components come back as null or are omitted.

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?

Two short sentences, action and result front-loaded, with no filler. The IT-Tools reference is a compact, useful provenance note rather than padding.

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, pure, single-parameter transform with full safety annotations, this is nearly complete: the output fields are named even though no output schema exists. The remaining gap is edge-case behavior on invalid or partial URLs, which the description leaves silent.

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?

Only one parameter and schema description coverage is 0%, but the requirement is effectively self-documenting: "url" of type string, and the description confirms it takes a URL to split. Almost nothing is left ambiguous for the caller despite the absent schema annotation.

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?

Uses a specific verb ("Split") against a specific resource ("a URL") and enumerates the components produced: protocol, credentials, host, port, path, query parameters, fragment. An agent can immediately tell this apart from url_encode or user_agent_parse without opening the schema.

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?

Usage is implied rather than stated: the tool is obviously for decomposing a URL, and the parenthetical IT-Tools reference gives a familiar analogue. However, it never says when to prefer this over a sibling like url_encode, nor does it set preconditions or exclusions.

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