get_types
Retrieve all available media types from IMDb data including movies, TV shows, and upcoming releases to understand the full range of content categories available.
Instructions
Get all types. Returns: JSON object containing all types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/imdb_mcp_server/tools.py:148-158 (handler)The handler function for the get_types tool. It makes an API request to fetch available types and returns them as JSON.@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)Registers all tools, including get_types, by calling register_tools(server) in the create_server function.register_tools(server)
- src/imdb_mcp_server/main.py:61-61 (registration)Registers all tools, including get_types, by calling register_tools(server) in stdio mode.register_tools(server)