get_types
Retrieve all available media types from IMDb data to filter and categorize movies, TV shows, and upcoming releases.
Instructions
Get all types. Returns: JSON object containing all types.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/imdb_mcp_server/tools.py:148-158 (handler)The main handler function that implements the get_types tool logic. It makes an API request to fetch available types and returns a JSON string.@mcp.tool() async def get_types(ctx: Context) -> str: """Get all types. Returns: JSON object containing all types. """ types_url = f"{BASE_URL}/types" types_data = await make_imdb_request(types_url, {}, ctx) if not types_data: return "Unable to fetch types data." return json.dumps(types_data, indent=4)
- src/imdb_mcp_server/main.py:23-23 (registration)Registration of all tools, including get_types, via register_tools call in the smithery HTTP server creation.register_tools(server)
- src/imdb_mcp_server/main.py:61-61 (registration)Registration of all tools, including get_types, via register_tools call in stdio mode.register_tools(server)
- src/imdb_mcp_server/tools.py:41-41 (helper)Docstring reference to get_types tool in the search_imdb tool description.type: The type of the movie to search for. Get all possible types with get_types().