get_calendar_episodes
Retrieve upcoming TV show episodes from MyShows calendar to track air dates and episode details for viewing planning.
Instructions
Retrieves the calendar episodes from MyShows with information about the next episodes. This method fetches the next episodes scheduled to air, including their details. :return: A dictionary containing the calendar episodes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/myshows_mcp/server.py:105-112 (handler)MCP tool handler for 'get_calendar_episodes'. Decorated with @mcp.tool() for registration and @tool_handler for error handling. Delegates execution to the MyShowsAPI client.@mcp.tool() @tool_handler async def get_calendar_episodes(): """Retrieves the calendar episodes from MyShows with information about the next episodes. This method fetches the next episodes scheduled to air, including their details. :return: A dictionary containing the calendar episodes. """ return await api_client.get_calendar_episodes()
- Core implementation of get_calendar_episodes in MyShowsAPI class. Makes a JSON-RPC call to 'lists.Episodes' with params {"list": "next"} to fetch upcoming episodes.async def get_calendar_episodes(self) -> Dict[str, Any]: """Retrieves the calendar episodes from MyShows with information about the next episodes. This method fetches the next episodes scheduled to air, including their details. :return: A dictionary containing the calendar episodes. """ return await self._make_request( method="lists.Episodes", id=86, params={"list": "next"} )