Skip to main content
Glama

Get sessions

jellyfin_get_sessions
Read-onlyIdempotent

Retrieve Jellyfin sessions and filter by device ID, recent activity, or controllable user to monitor active clients and manage playback access.

Instructions

Gets a list of sessions.

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": "jellyfin_get_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idNo
active_within_secondsNo
controllable_by_user_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.9

TDQS

C2/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 structurally. The description adds nothing beyond that: not what a session contains, not whether results are live/polled, not whether inactive sessions are returned.

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?

It is a single short, front-loaded sentence with no waste, but its brevity comes from under-specification rather than efficiency — there is only one sentence and it conveys only the resource name.

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?

A tool with three optional filter parameters, no schema descriptions, and no output schema needs the description to carry meaning; instead it says nothing about filtering, return shape, or session state. Only the annotations rescue basic safety information.

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?

All three parameters (device_id, active_within_seconds, controllable_by_user_id) have zero schema description coverage, and the description mentions none of them. The filtering semantics an agent needs to invoke this correctly are entirely absent.

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 restates the tool name and title almost verbatim ("Gets a list of sessions"), adding no scope, no notion of what a session is (active playback device? authenticated client?), and no differentiation from any of the many other jellyfin_get_* listing tools.

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 exclusions, and no mention of when a different listing tool would be more appropriate. The agent gets no context on when this tool applies beyond the word 'sessions'.

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