Skip to main content
Glama

get_upcoming_indian_movies

Retrieve upcoming Indian movies from IMDb based on real-time popularity data. Specify a starting index to get 5 anticipated films for tracking releases and planning viewing.

Instructions

Get the most anticipated Indian movies on IMDb based on real-time popularity. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 most anticipated Indian movies starting from the specified index.

Input Schema

NameRequiredDescriptionDefault
startYes

Input Schema (JSON Schema)

{ "properties": { "start": { "title": "Start", "type": "integer" } }, "required": [ "start" ], "type": "object" }

Implementation Reference

  • The handler function that implements the get_upcoming_indian_movies tool. It fetches data from the IMDb API endpoint for upcoming Indian movies, handles errors, paginates the results, and returns them as formatted JSON.
    @mcp.tool() async def get_upcoming_indian_movies(start: int, ctx: Context) -> str: """Get the most anticipated Indian movies on IMDb based on real-time popularity. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 most anticipated Indian movies starting from the specified index. """ upcoming_indian_movies_url = f"{BASE_URL}/india/upcoming" upcoming_indian_movies_data = await make_imdb_request(upcoming_indian_movies_url, {}, ctx) if not upcoming_indian_movies_data: return "Unable to fetch upcoming Indian movies data." return json.dumps(paginated_response(upcoming_indian_movies_data, start, len(upcoming_indian_movies_data)), indent=4)
  • The call to register_tools(server) in the server creation function, which registers all MCP tools including get_upcoming_indian_movies via their decorators.
    register_tools(server)
  • The call to register_tools(server) in stdio mode, registering the tool.
    register_tools(server)

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/uzaysozen/imdb-mcp-server'

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