Skip to main content
Glama

util_url_clean

Read-only

URL cleaner and tracker stripper — Clean a URL: strips tracking parameters (utm_*, fbclid, gclid, msclkid, mc_eid, HubSpot, Matomo, TikTok, YouTube si...), unwraps redirect wrappers (Google, Facebook, Outlook SafeLinks, Reddit, YouTube, LinkedIn, Slack), drops tracking fragments (keepFragment=1 to keep, sort=1 to sort params) and flags risky traits: user@host tricks, punycode, raw IP hosts, odd ports, plain HTTP, spammy TLDs. Returns clean URL, removed params and risk OK/CHECK/SUSPICIOUS. Offline. Price: $0.002 USDC (Base, via x402).

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": "util_url_clean"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttps://www.google.com/url?q=https://example.com/a?id=5%26utm_source=x

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Adds substantial context beyond the readOnly/destructive annotations: exactly which trackers and redirect wrappers are handled, the returned fields (clean URL, removed params, risk verdict OK/CHECK/SUSPICIOUS), that processing is offline, and the per-call price. However, it advertises keepFragment=1 and sort=1 options that the input schema does not expose, and "Offline" sits awkwardly against openWorldHint=true.

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 with the core purpose and outcome before the detail, and each sentence carries information (trackers, wrappers, fragments, risk flags, return shape, price). The long parenthetical enumerations of tracker and wrapper vendors add bulk without much extra decision value.

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 compensates by naming the return fields and the three risk verdicts, and it discloses the offline nature and cost. It falls short on error behavior for malformed URLs and on what criteria produce CHECK versus SUSPICIOUS, and it leaves the phantom option parameters unexplained.

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 100% for the single url parameter, which already carries its own example, so the description adds nothing for it. Worse, it references keepFragment=1 and sort=1 as options that do not exist in the schema, which could lead an agent to try parameters that will be rejected.

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?

Names a specific verb and resource — clean a URL by stripping tracking params, unwrapping redirect wrappers, and flagging risky traits — with concrete examples (utm_*, fbclid, Outlook SafeLinks). It does not explicitly differentiate itself from url_check or url_safety, which also deal in URL risk, so the overlap is left for the agent to resolve.

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 by the enumeration of transformations (strip trackers, unwrap redirects, keep fragments, sort params), so an agent can infer when the tool applies. There is no explicit when-to-use/when-not-to-use guidance and no routing statement against url_check or url_safety, which are the closest 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