get_calendar_episodes
Retrieve upcoming TV show episodes from your 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 and registration for get_calendar_episodes using @mcp.tool(). Delegates to the API 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 in MyShowsAPI client: calls JSON-RPC method 'lists.Episodes' with {'list': 'next'} to fetch next 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"} )