Skip to main content
Glama

Get hls video segment

jellyfin_get_hls_video_segment
Read-onlyIdempotent

Retrieve a specific HLS video segment from Jellyfin using item, playlist, and segment identifiers to support playback or transcoding workflows.

Instructions

Gets a video stream using HTTP live streaming.

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": {
      "item_id": "<item_id>",
      "playlist_id": "<playlist_id>",
      "segment_id": "<segment_id>",
      "container": "<container>"
    },
    "name": "jellyfin_get_hls_video_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
levelNo
widthNo
heightNo
staticNo
contextNo
item_idYes
profileNo
containerYes
device_idNo
framerateNo
max_widthNo
max_heightNo
segment_idYes
audio_codecNo
playlist_idYes
require_avcNo
video_codecNo
de_interlaceNo
min_segmentsNo
max_framerateNo
runtime_ticksNo
stream_paramsNo
audio_bit_rateNo
audio_channelsNo
cpu_core_limitNo
live_stream_idNo
max_ref_framesNo
segment_lengthNo
stream_optionsNo
subtitle_codecNo
video_bit_rateNo
copy_timestampsNo
media_source_idNo
play_session_idNo
subtitle_methodNo
start_time_ticksNo
audio_sample_rateNo
device_profile_idNo
segment_containerNo
transcode_reasonsNo
audio_stream_indexNo
max_audio_channelsNo
video_stream_indexNo
max_audio_bit_depthNo
max_video_bit_depthNo
subtitle_stream_indexNo
require_non_anamorphicNo
allow_audio_stream_copyNo
allow_video_stream_copyNo
break_on_non_key_framesNo
enable_auto_stream_copyNo
enable_mpegts_m2_ts_modeNo
enable_audio_vbr_encodingNo
actual_segment_length_ticksNo
transcoding_max_audio_channelsNo
always_burn_in_subtitle_when_transcodingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.9

TDQS

C2.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds nothing beyond that: it does not say the result is a binary media segment, whether transcoding parameters affect the output, or what happens with invalid segment ids. For a 57-parameter streaming endpoint, this is thin.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of padding, so there is no wasted wording. However, its brevity reflects under-specification rather than efficiency given the tool's complexity.

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

Completeness1/5

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

With 57 parameters, no output schema, and 0% schema coverage, the definition is far too sparse to call this endpoint correctly. Key details — that it returns a media segment rather than JSON, how playlist_id is obtained, and how transcoding options are meant to be used — are entirely absent.

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

Parameters1/5

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

Schema description coverage is 0% across 57 parameters, so the description carries the full burden of explaining them. It explains none — not the required item_id/playlist_id/segment_id/container, and certainly not the dozens of transcoding knobs (max_width, video_codec, segment_length, enable_mpegts_m2_ts_mode) whose defaults and interactions are completely opaque.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb ('Gets') and a resource ('video stream using HTTP live streaming'), which is understandable, but it never mentions the segment aspect that the tool name and required parameters (playlist_id, segment_id) imply. It also does not distinguish this from close siblings such as jellyfin_get_video_stream or jellyfin_get_hls_video_segment_legacy, leaving the agent unsure which retrieval variant to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives, nor any prerequisites such as needing a valid playlist_id and segment_id from a variant playlist. The agent must infer the entire call sequence (playlist -> segment) from the name alone.

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

Deploy Server

Other Tools