Skip to main content
Glama

get_movie_show_by_id

Retrieve detailed information about a specific TV show or movie using its MyShows ID, including episode lists and season data.

Instructions

Retrieves a show or movie by its MyShows ID. :param myshows_item_id: The MyShows ID of the show or movie to retrieve. :return: A dictionary containing the show's details, including episodes and season counts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
myshows_item_idYes

Implementation Reference

  • The MCP tool handler for 'get_movie_show_by_id', registered via @mcp.tool(), executes the core logic by calling the MyShowsAPI client.
    @mcp.tool() @tool_handler async def get_movie_show_by_id(myshows_item_id: int): """Retrieves a show or movie by its MyShows ID. :param myshows_item_id: The MyShows ID of the show or movie to retrieve. :return: A dictionary containing the show's details, including episodes and season counts. """ return await api_client.get_by_id(myshows_item_id=myshows_item_id)
  • Supporting API client method that performs the HTTP request to MyShows 'shows.GetById' endpoint to retrieve the movie/show details.
    async def get_by_id(self, myshows_item_id: int): """Retrieves a show by its MyShows ID, including episodes and season counts. :param myshows_item_id: The MyShows ID of the show to retrieve. :return: A dictionary containing the show's details, including episodes and season counts. """ return await self._make_request( method="shows.GetById", id=87, params={ "showId": int(myshows_item_id), "withEpisodes": True, "withSeasonCounts": True, }, )
  • Registers the tool with FastMCP using the @mcp.tool() decorator.
    @mcp.tool()

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