Skip to main content
Glama

M3U8 Player

Clean, Deduplicate & Export M3U Playlist

clean_m3u_playlist
Read-onlyIdempotent

Deduplicate channels, remove invalid/non-HTTP URLs, filter by group, sort, and export clean M3U8, JSON, or CSV playlist text. Read-only stateless transform, no login required.

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": {
      "playlist": "<playlist>"
    },
    "name": "clean_m3u_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
sort_byNoSort order for cleaned channels. Defaults to "none".
playlistYesRaw #EXTM3U playlist text to clean (up to 500,000 characters).
dedupe_byNoDeduplication strategy. Defaults to "url".
output_formatNoExport format. Defaults to "m3u".
exclude_groupsNoOptional list of group-title values to remove (case-insensitive).
include_groupsNoOptional list of group-title values to keep (case-insensitive).
remove_invalid_urlsNoDrop entries whose URL is not a valid http:// or https:// URL. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, so the bar is lower. The description still adds real value beyond them by stating the operation is a stateless transform requiring no login, which addresses auth and side-effect concerns an agent would otherwise have to guess at. It stops short of describing the returned result structure or how many entries are dropped.

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?

Two tight sentences with the capability list front-loaded and the safety/statelessness note trailing. No filler, though the verb list partially duplicates what the schema and title already convey.

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 7-parameter, 100%-documented, no-output-schema transform, the description covers what the tool does and its safety profile. The main gap is a minor inconsistency: it advertises 'M3U8' output while the enum offers 'm3u', and it does not say what the exported text looks like.

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% with three enums, so the schema already carries the parameter meaning including defaults. The description restates the operations those parameters drive but adds no new syntax, precedence rules, or interaction detail (e.g., how include_groups and exclude_groups combine). Baseline 3 applies.

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?

The description uses concrete verbs (deduplicate, remove, filter, sort, export) against a specific resource (M3U playlist text) and enumerates the output formats, so an agent knows exactly what it does. It does not differentiate itself from the sibling parse_m3u_playlist, which an agent could easily confuse with a clean+export transform.

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 only implied: the description makes clear this is the tool for producing a cleaned/exported playlist, which suggests when to pick it. There is no explicit when-not guidance and no mention of parse_m3u_playlist as the alternative for plain parsing, leaving the choice to inference.

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.