Skip to main content
Glama
rollecode

Trakt MCP server

by rollecode

get_users_by_id_history

Read-onlyIdempotent

Retrieve a user's watched history with filters like date range, genres, ratings, and streaming options. Perfect for analyzing viewing activity or syncing Trakt data.

Instructions

Get watched history.

GET /users/{id}/history/

Args: id: The slug that identifies the user, or "me" for the authenticated user. extended: Extended information to include in the response. watchnow: Use "favorites" for streaming on a favorite service of the user. Use "any" for streaming on any service in the user's country. Use "any_all" for streaming on any service in all countries. Use "free" for streaming for free in the user's country. Use "free_all" for streaming for free in all countries. Use "subscriptions" for streaming on any subscription service (Netflix, Hulu, etc) in the user's country. Use "subscriptions_all" streaming on any subscription service in all countries genres: Query parameter. subgenres: Query parameter. years: Query parameter. ratings: Query parameter. start_date: Query parameter. end_date: Query parameter. runtimes: Query parameter. countries: Query parameter. certifications: Query parameter. start_at: Start date for the range. Must be formatted as "YYYY-MM-DD". end_at: End date for the range. Must be formatted as "YYYY-MM-DD". page: The page number to retrieve limit: The number of items per page. Defaults and maximums vary by endpoint. When pagination parameters are omitted, a low default limit is applied (often 10). When a limit is provided, it is capped at the endpoint maximum (often 250); higher values are clamped rather than rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
pageNo
limitNo
yearsNo
end_atNo
genresNo
ratingsNo
end_dateNo
extendedNo
runtimesNo
start_atNo
watchnowNo
countriesNo
subgenresNo
start_dateNo
certificationsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral context beyond the annotations: the GET method, the 'me' alias for the authenticated user, date formatting requirements, the watchnow value set, and detailed pagination clamping behavior.

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

Conciseness4/5

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

The description is front-loaded with the purpose and endpoint, then organized as a clear argument list. The watchnow enum is verbose but valuable. Some placeholder entries like 'Query parameter.' are terse but not wasteful, and the overall structure is scannable without filler.

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?

For a 16-parameter endpoint with an output schema and read-only annotations, the description reasonably covers auth, watchnow values, date formats, and pagination. However, it leaves the format/semantics of most filter parameters undocumented and does not mention sorting or how this endpoint relates to more specific history variants, so it is not fully complete for an agent trying to use all capabilities.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It does provide substantive semantics for id, extended, watchnow, start_at, end_at, page, and limit, including exact watchnow values and pagination rules. However, many parameters such as genres, subgenres, years, ratings, start_date, end_date, runtimes, countries, and certifications are only labeled 'Query parameter.' with no value format or allowed syntax, leaving significant gaps.

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 'Get watched history,' a specific verb and resource, and also gives the exact endpoint 'GET /users/{id}/history/'. It clearly identifies what the tool does, though it does not explicitly distinguish itself from sibling history endpoints like get_users_by_id_history_by_type_by_item_id or get_users_by_id_history_movies.

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?

The description gives no guidance about when to use this tool versus the many sibling history endpoints. There is no mention that this fetches all watched history while other tools filter by type or item, and no explicit when-not-to-use instructions. An agent would have to infer the intended usage from the endpoint 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