Skip to main content
Glama

Link cleaner and inspector

hopi_link_cleaner
Read-onlyIdempotent

Clean and inspect a URL without visiting it: strips tracking parameters (utm_*, fbclid, gclid, msclkid, mc_eid, _hsenc and many more, grouped by network), unwraps redirect wrappers whose destination is in the address itself (Outlook Safe Links, Proofpoint URL Defense v2 and v3, Google /url?q=, Facebook l.php, YouTube, LinkedIn, Reddit, Slack, Tumblr) and checks the address for phishing signs: punycode and mixed-script hosts, brand names in subdomains, embedded user:pass@, IP hosts, data: and javascript: schemes, risky TLDs, link shorteners, double encoding and overlong paths. Returns the clean link, what was removed, the real registrable domain, a list of warnings and a verdict (clean, caution or avoid). It cannot know where a shortener goes or whether a site is malicious; no DNS or HTTP requests are made. Source: https://hopi.co.uk/link-cleaner/

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe link to clean and inspect

Output Schema

NameRequiredDescriptionDefault
hostNo
inputNo
schemeNo
removedNo
summaryYes
verdictNo
cleanUrlNo
warningsNo
shortenerNo
unwrappedNo
keptParamsNo
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)
lookalikeOfNo
unicodeHostNo
unwrapChainNo
punycodeHostNo
removedCountNo
finalDestinationNo
registrableDomainNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedOutput schema / properties / host / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / lookalikeOf / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / punycodeHost / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / registrableDomain / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / unicodeHost / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cleanUrl": {
      +      "type": "string"
      +    },
      +    "finalDestination": {
      +      "type": "string"
      +    },
      +    "host": {
      +      "type": "string"
      +    },
      +    "input": {
      +      "type": "string"
      +    },
      +    "keptParams": {
      +      "type": "array"
      +    },
      +    "lookalikeOf": {},
      +    "punycodeHost": {},
      +    "registrableDomain": {
      +      "type": "string"
      +    },
      +    "removed": {
      +      "type": "array"
      +    },
      +    "removedCount": {
      +      "type": "number"
      +    },
      +    "scheme": {
      +      "type": "string"
      +    },
      +    "shortener": {
      +      "type": "boolean"
      +    },
      +    "source_url": {
      +      "description": "The tool's page on hopi.co.uk (cite or open to check the figure)",
      +      "type": "string"
      +    },
      +    "summary": {
      +      "type": "string"
      +    },
      +    "unicodeHost": {},
      +    "unwrapChain": {
      +      "type": "array"
      +    },
      +    "unwrapped": {
      +      "type": "boolean"
      +    },
      +    "verdict": {
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "source_url",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld=false, and the description goes further by stating no DNS or HTTP requests are made and that it cannot resolve shorteners or judge malice. It also discloses the verdict taxonomy (clean, caution, avoid) and provenance URL, which is exactly the contextual layer annotations cannot carry.

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 action and scope before the long parenthetical enumerations of tracking params and redirect wrappers. The lists are dense but each item is substantive; only the trailing source URL is arguably dispensible.

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

Completeness5/5

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

For a single-parameter read-only tool with an output schema, everything an agent needs is present: what is stripped, what is unwrapped, what heuristics run, what the response contains, and the hard limitation that no network lookup occurs. No material gap remains.

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 required parameter with 100% schema description coverage, which sets the baseline at 3. The description adds mild value by framing that parameter as the 'link' that is both cleaned and inspected, but contributes no format or syntax guidance beyond the schema.

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?

Opens with a specific verb+resource+distinguishing constraint ('Clean and inspect a URL without visiting it') and enumerates three concrete capabilities: tracking-parameter stripping, redirect unwrapping, and phishing heuristics. This is clearly separable from sibling URL utilities such as hopi_url_parser (parse) and hopi_utm_link_generator (add UTMs).

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?

The description conveys the scenario implicitly (checking a link before clicking, grouping tracking params by network) but never states when to prefer this tool over hopi_url_parser or hopi_lookalike_domain_generator, nor any exclusions. Usage is inferable, not prescribed.

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