Skip to main content
Glama

M3U8 Player

Parse HLS / M3U8 Manifest

parse_hls_manifest
Read-onlyIdempotent

Parse an HLS .m3u8 Master or Media Playlist from raw #EXTM3U text or an authorized public HTTP/HTTPS URL. Extracts bandwidth variants, resolutions, codecs, audio/subtitle renditions, total duration, segment count, encryption (#EXT-X-KEY), and common playback diagnostics. Read-only, no login required.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "parse_hls_manifest"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoAuthorized public HTTP/HTTPS .m3u8 manifest URL to fetch and parse (SSRF-protected, max 256 KB).
base_urlNoOptional base URL used to resolve relative variant/segment URIs when passing raw `manifest` text.
manifestNoRaw #EXTM3U / .m3u8 manifest text (up to 500,000 characters). Provide either `manifest` or `url`.
max_segmentsNoMaximum number of sample resolved segment entries to include for Media Playlists (default 20, max 100).

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 the safety profile (readOnly, idempotent, non-destructive, open-world), so the description's added value is the disclosure that it surfaces encryption via #EXT-X-KEY and 'common playback diagnostics', plus the auth note 'no login required' and the public-URL-only constraint. It does not describe pagination or how truncated results are signaled, which keeps it below a 5.

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?

Three sentences, front-loaded with the action and input modes, then the extracted fields, then the safety/auth note. The field enumeration is long but every item tells the agent what it will get back, so it earns its space; no filler sentences.

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 takes on the burden of describing return content and does so by listing variants, renditions, duration, segment count, and encryption state. Combined with rich parameter documentation and full annotations, this is nearly complete; only failure modes and truncation behavior for large playlists are unaddressed.

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 all four parameters are already documented in the schema, including the either/or relationship between manifest and url. The description reinforces the URL authorization constraint and raw-text input mode but adds no syntax, format, or defaulting detail beyond the structured fields.

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?

States a specific verb and resource (parse an HLS .m3u8 Master or Media Playlist) and enumerates the two accepted input forms, raw #EXTM3U text or an HTTP/HTTPS URL. It implicitly separates itself from the generic M3U sibling by scoping to HLS/.m3u8 and master-vs-media playlists, but never names parse_m3u_playlist, check_stream_url, or clean_m3u_playlist as alternatives.

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 rather than stated: an agent can infer this is the tool for HLS manifests and that either a URL or raw text is acceptable. There is no explicit when-to-use versus check_stream_url, no stated preconditions beyond 'authorized public' URL, and no exclusions or failure guidance.

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.