Skip to main content
Glama

clean_qr_tracking_url

Read-onlyIdempotent

Strips tracking parameters such as utm_* and fbclid from URLs, optionally upgrades http:// to https://, and reports byte savings plus QR version reduction for lower-density printing.

Instructions

Strips 25+ tracking parameters (utm_*, fbclid, gclid, spm, _hsenc) and optionally upgrades cleartext http:// to https://, returning exact byte savings and ISO/IEC 18004 QR version reduction.

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

Input Schema

NameRequiredDescriptionDefault
urlYesInput HTTP/HTTPS URL to sanitize for lower-density QR printing.
ecLevelNoError correction level used to compare before/after QR matrix versions (defaults to "H").
upgradeHttpsNoWhen true (default), upgrades public cleartext http:// URLs to https://.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish this as a read-only, idempotent, closed-world, non-destructive operation, so the bar is lower. The description still adds real value: it discloses the scope of removal (25+ parameters), that the https upgrade is optional and defaulted, and that the response reports exact byte savings plus an ISO/IEC 18004 QR version delta – none of which is in the annotations.

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?

A single sentence with zero filler: the parameter examples, the optional https upgrade, the return values, and the QR version metric are all front-loaded and each clause carries information. Splitting it would not improve comprehension.

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 states what comes back (byte savings, QR version reduction), and safety behavior is covered by annotations. Gaps remain around failure modes – malformed URLs, URLs already clean of tracking parameters, or non-public hosts for the https upgrade – but the core contract is legible.

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

Parameters3/5

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

Schema description coverage is 100%, so url, ecLevel, and upgradeHttps are already documented and the baseline is 3. The description reinforces the tracking-parameter and https-upgrade semantics but says nothing about ecLevel or how the error-correction level affects the reported comparison, so it adds little beyond the schema.

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 ("Strips") and a specific resource (tracking parameters), with concrete examples (utm_*, fbclid, gclid, spm, _hsenc) and a secondary action (http→https upgrade). It is unmistakably a URL-hygiene tool, though it never contrasts itself with the sibling audit_qr_url_and_prepress, which likely examines the same input.

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 intended use is only implied via the schema phrase "sanitize for lower-density QR printing" and the return of QR version reduction; the description itself states no when-to-use, prerequisites, or when-not conditions. It does not tell an agent whether to clean first and then audit, or which sibling handles non-clean-up cases.

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