Skip to main content
Glama

x402-url-canonical

URL Canonical: Normalizes a URL by lowercasing the host, dropping the fragment, and optionally sorting query parameters 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
urlNo
inputNo
sortQueryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / input / description
      Removed value: -"Input to process"
    • removedInput schema / properties / sortQuery / description
      Removed value: -"SortQuery to process"
    • removedInput schema / properties / url / description
      Removed value: -"Url to process"
  2. Changed1 schema field changed
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "Url to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral burden, and it does disclose the actual transformation semantics (host lowercased, fragment dropped, query sort optional) — the key trait for a normalization tool. It stops short of stating idempotency, scheme/trailing-slash handling, or error behavior for malformed input.

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 single sentence that names the tool and immediately lists the operations, with no filler. The trailing free-trial/pricing note is a small addendum but relevant payment context for this x402 family.

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

Completeness3/5

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

For a simple stateless transform with no output schema, the agent still needs to know which parameter carries the URL and what the return value looks like; neither is covered. The description is adequate for understanding the operation but incomplete for actually invoking it given two overlapping string inputs.

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 description coverage is 0% across three parameters, so the description must compensate and largely does not. "Optionally sorting query parameters" loosely maps to sortQuery, but the roles of the ambiguous 'url' vs 'input' parameters are never clarified, nor is the accepted format of sortQuery.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (normalizes) and resource (URL) and enumerates the exact canonicalization steps — lowercasing the host, dropping the fragment, optionally sorting query params. This is well beyond a tautology, but it never distinguishes itself from the many sibling URL tools (url-parse, url-inspect, url-expand, normalize), leaving the agent to infer the difference.

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 when-to-use guidance and no alternatives named. The only usage hint is the word "optionally" attached to query sorting, which gestures at an optional behavior but does not tell the agent when canonicalization is preferable to parse/inspect/normalize siblings.

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.

Resources