Skip to main content
Glama

M3U8 Player

Parse & Filter M3U Playlist

parse_m3u_playlist
Read-onlyIdempotent

Parse raw #EXTM3U playlist text into structured channels (name, URL, group, tvg-id, tvg-logo), report group counts, duplicate URLs, and invalid entries, and optionally filter by group or keyword. Read-only, 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": "parse_m3u_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNoOptional case-insensitive group-title filter.
limitNoMaximum channels to return in the preview array (default 50, max 200).
queryNoOptional case-insensitive keyword filter matching channel name, group, or URL.
playlistYesRaw #EXTM3U playlist text (up to 500,000 characters).

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 declare readOnlyHint, idempotentHint, non-destructive, and openWorldHint=false, so the safety profile is covered. The description still adds real value by stating 'no login required' and disclosing that the result includes group counts, duplicate URLs, and invalid entries rather than just a channel list.

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?

It is a single dense sentence plus a short clause, front-loading the parse action and its outputs with no filler. It is slightly run-on, stacking parsing, reporting, and filtering into one sentence where a short list would read faster.

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 enumerates what comes back (channels with name/URL/group/tvg-id/tvg-logo, group counts, duplicates, invalid entries), which is what an agent needs to plan. The only gap is the absence of any routing guidance relative to clean_m3u_playlist.

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 coverage is 100%, with group, query, limit, and playlist all documented inline including limits and case-insensitivity. The description only restates the group/keyword filtering at a high level, adding no syntax or format meaning beyond the schema, so the 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 definition opens with a specific verb and resource ('Parse raw #EXTM3U playlist text into structured channels') and enumerates the parsed fields plus the reporting outputs. It is clearly distinct from parse_hls_manifest and check_stream_url by resource, but it never names clean_m3u_playlist, which is the closest sibling an agent might confuse it with.

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 'optionally filter by group or keyword' clause suggests when the filters matter, but there is no explicit when-to-use, when-not-to-use, or routing to clean_m3u_playlist for cleanup work. The agent must infer the boundary itself.

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.