Skip to main content
Glama

Get hls audio segment

jellyfin_get_hls_audio_segment
Read-onlyIdempotent

Fetches a specific HLS audio segment for a Jellyfin media item, enabling playback or processing of segmented audio streams.

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_audio_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
levelNo
widthNo
heightNo
staticNo
contextNo
item_idYes
profileNo
containerYes
device_idNo
framerateNo
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
max_streaming_bitrateNo
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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.9

TDQS

D1.6/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the description's only job is to add context – and it adds none. It says nothing about authentication, that the response is a binary segment payload rather than JSON, or how segment_id/playlist_id must be sequenced.

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

Conciseness2/5

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

It is a single short sentence, which is structurally lean, but the brevity is achieved by omitting everything and the one claim it does make is wrong. Shortness without accuracy is under-specification rather than conciseness.

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?

For a tool with 55 parameters, no output schema, and a multi-step HLS segment workflow, one sentence naming the wrong media type is wholly inadequate. An agent has no basis for supplying required identifiers or interpreting the returned bytes.

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?

There are 55 parameters with 0% schema description coverage, so the description carries the full explanatory burden and supplies nothing. It does not even mention the four required parameters (item_id, playlist_id, segment_id, container), let alone the many transcoding knobs.

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

Purpose2/5

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

The description says 'Gets a video stream' but the tool is named and titled as an HLS *audio* segment fetcher, and the required parameters (playlist_id, segment_id) point to segment retrieval. It states a verb+resource, but the resource is the wrong media type, so an agent cannot reliably tell it apart from jellyfin_get_hls_video_segment.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no mention of the playlist/segment workflow, and no exclusion or comparison against siblings such as jellyfin_get_hls_video_segment or the legacy AAC/MP3 variants. Worse, calling this a video-stream tool actively steers the agent toward the wrong sibling.

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