Skip to main content
Glama

Get item segments

jellyfin_get_item_segments
Read-onlyIdempotent

Retrieve all media segments for a specific Jellyfin item by item ID, optionally filtering by segment type, so you can inspect intros, outros, or other markers tied to that item.

Instructions

Gets all media segments based on an itemId.

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>"
    },
    "name": "jellyfin_get_item_segments"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYes
include_segment_typesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.9

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so the safety profile is fully covered by structured data. The description adds nothing beyond that — it does not say what a segment object contains, whether results are empty for non-video items, or whether the list is ordered. For a read tool with complete annotations, this is minimal added value.

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?

A single front-loaded sentence with no filler, which is structurally clean. However, the brevity reflects under-specification rather than economy: nothing is wasted because almost nothing is said.

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

Completeness2/5

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

With no output schema, an undocumented filter parameter, and a domain term ("segments") that is never defined, the description leaves the agent unable to predict the return shape or how filtering behaves. Given only two parameters this is a modest but real gap that a single clarifying sentence could have closed.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the burden and largely fails it: item_id is mentioned only by name with no format hint, and include_segment_types — an untyped anyOf array with a null default — is never mentioned at all, leaving its accepted values and filtering behavior completely undefined.

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?

"Gets all media segments based on an itemId" names a specific verb (gets), a specific resource (media segments), and the keying input (itemId), which separates it from siblings like jellyfin_get_item or jellyfin_get_item_image. It stops short of 5 because "media segments" is never explained — an agent must infer whether these are intro/outro markers, chapters, or playback ranges.

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 when-to-use guidance, no statement of when this is preferable to jellyfin_get_item or jellyfin_get_instant_mix_from_item, and no prerequisites such as requiring the item to be a video. The agent is left to infer the trigger condition entirely from the name.

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