Skip to main content
Glama

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

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • 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)
  • Registers all tools, including get_types, by calling register_tools(server) in the create_server function.
    register_tools(server)
  • Registers all tools, including get_types, by calling register_tools(server) in stdio mode.
    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