Skip to main content
Glama

list_status_sessions_history_all

Read-onlyIdempotent

Retrieve Plex playback history with filters for account, time range, library, media item, or device. Sort results and include only needed fields to analyze viewing activity.

Instructions

List Playback History.

GET /status/sessions/history/all

Args: account_id: The account id to restrict view history viewed_at: The time period to restrict history (typically of the form viewedAt>=12456789) library_section_id: The library section id to restrict view history metadata_item_id: The metadata item to restrict view history (can provide the id for a show to see all of that show's view history). Note this is translated to metadata_items.id, parents.id, or grandparents.id internally depending on the metadata type. sort: The field on which to sort. Multiple orderings can be specified separated by , and the direction specified following a : (desc or asc; asc is assumed if not provided). Note metadataItemID may not be used here. exclude_elements: Comma-separated list of elements to exclude from the response exclude_fields: Comma-separated list of fields to exclude from the response include_fields: Whitelist of fields to return include_elements: Whitelist of elements to include viewed_at_query: Greater-than filter for viewedAt timestamp viewed_at_query_2: Less-than filter for viewedAt timestamp device_id: Filter by device ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortNo
device_idNo
viewed_atNo
account_idNo
exclude_fieldsNo
include_fieldsNo
viewed_at_queryNo
exclude_elementsNo
include_elementsNo
metadata_item_idNo
viewed_at_query_2No
library_section_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish the safe read-only, non-destructive profile. The description adds useful behavioral details, such as metadata_item_id being translated internally to metadata_items.id/parents.id/grandparents.id and sort restrictions (metadataItemID may not be used), but it does not disclose default scope, pagination, or result limits for an endpoint named 'history_all'.

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

Conciseness5/5

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

The description is efficiently structured: a one-line purpose, the endpoint, then a clear 'Args' list where each parameter earns its place. There is no fluff or repetition, and the front-loaded purpose makes the intent immediately obvious.

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

Completeness3/5

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

With 12 optional parameters and an output schema present, the parameter docs are complete, but high-level operation context is missing. The description does not clarify the relationship between viewed_at, viewed_at_query, and viewed_at_query_2, nor state whether the endpoint returns all history or paginated results, leaving ambiguity for a large 'history_all' listing.

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

Parameters5/5

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

The schema provides zero descriptions for its 12 parameters, and the description compensates fully by explaining each parameter with meaningful detail. It includes format examples (viewed_at as `viewedAt>=12456789`), syntax rules for sort and direction, and a special note about metadata_item_id translation.

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?

The description opens with 'List Playback History,' a clear verb and resource that identifies the operation as a read of history data, distinct from sibling list_status_sessions (active sessions). It does not explicitly name a sibling or clarify the 'all' scope, relying on the tool name for differentiation.

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 guidance is provided on when to use this tool versus alternatives such as list_status_sessions, get_status_sessions_history_by_history_id, or delete_status_sessions_history_by_history_id. The description is solely a parameter reference with no usage context or exclusions.

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