Skip to main content
Glama

Get ancestors

jellyfin_get_ancestors
Read-onlyIdempotent

Retrieve all parent items of a specific Jellyfin media item by its ID to trace its library hierarchy and locate the collection, season, or show it belongs to.

Instructions

Gets all parents of an item.

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

Input Schema

NameRequiredDescriptionDefault
item_idYes
user_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.9

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds nothing beyond that: no ordering of the returned ancestors, no statement of whether the item itself is included, and no note on what happens for a top-level item (empty list vs. error).

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 short sentence with no filler, which is structurally clean. However, the brevity here is under-specification rather than economy: the sentence could carry ordering and return-shape details without becoming bloated.

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?

Reconsidering relative to complexity: this is a simple two-parameter read tool with a rich annotation set and no nested objects, so the burden is modest and the annotations cover the safety profile. Still, with 0% schema coverage and no output schema, an agent has no idea what the response looks like (a list of items in what order), which leaves a real gap.

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% for 2 parameters. The description vaguely implies item_id via 'an item' but says nothing about its format, and user_id is not mentioned at all despite being the parameter that likely controls user-specific visibility/ancestor data.

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 parents of an item" names a specific verb and resource, and the domain meaning (the ancestor chain, e.g. season -> series) is inferable. It does not differentiate from siblings such as jellyfin_get_attachment or jellyfin_get_artist_by_name, and 'parents' is left unglossed, so an agent must guess whether it means library hierarchy or something else.

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?

No when-to-use guidance, no prerequisites, and no mention of alternatives. It never says this requires a known item_id from another call, nor when an agent should prefer it over fetching the item itself.

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