Skip to main content
Glama

watched_movies

Retrieve your watched movie history from MyShows to track viewing progress and manage your personal film collection.

Instructions

Retrieves a list of watched movies from MyShows. :param page: The page number to retrieve (default is 0). :return: A dictionary containing the list of watched movies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo

Implementation Reference

  • Registration of the 'watched_movies' tool using @mcp.tool() decorator
    @mcp.tool()
  • Handler function for the 'watched_movies' tool, delegates to MyShowsAPI
    async def watched_movies(page: int = 0): """Retrieves a list of watched movies from MyShows. :param page: The page number to retrieve (default is 0). :return: A dictionary containing the list of watched movies. """ return await api_client.get_watched_movies(page=page)
  • Helper method in MyShowsAPI that performs the RPC call to profile.WatchedMovies
    async def get_watched_movies(self, page: int = 0) -> Dict[str, Any]: """Retrieves a list of watched movies from MyShows.""" return await self._make_request( method="profile.WatchedMovies", id=80, params={ "page": int(page), "pageSize": 20, "login": "", "search": {"sort": "watchedAt_desc"}, }, )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zeloras/myshows_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server