get_myshows_profile_shows_list
Retrieve your MyShows profile TV shows list to manage and track series from your account.
Instructions
Retrieves the list of tv shows from the MyShows profile. :return: A dictionary containing the list of tv shows.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/myshows_mcp/server.py:124-130 (handler)MCP tool handler and registration for 'get_myshows_profile_shows_list'. Decorated with @mcp.tool() and @tool_handler decorator, it delegates execution to the MyShowsAPI client method.@mcp.tool() @tool_handler async def get_myshows_profile_shows_list(): """Retrieves the list of tv shows from the MyShows profile. :return: A dictionary containing the list of tv shows. """ return await api_client.get_myshows_profile_shows_list()
- Core implementation in MyShowsAPI class that performs the JSON-RPC API call to 'profile.Shows' method to retrieve the list of TV shows from the user's profile.async def get_myshows_profile_shows_list(self) -> Dict[str, Any]: """Retrieves the list of shows from MyShows profile. :return: A dictionary containing the list of shows. """ # The 'login' parameter is required but can be an empty string for the current user's profile. # If you want to specify a different user's profile, replace the empty string with their login. return await self._make_request( method="profile.Shows", id=5, params={"login": ""} )