Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)
  • Registration of all tools, including get_types, via register_tools call in the smithery HTTP server creation.
    register_tools(server)
  • Registration of all tools, including get_types, via register_tools call in stdio mode.
    register_tools(server)
  • 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().

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