Skip to main content
Glama
drakonkat

wizzy-mcp-tmdb

search_keywords

Find TMDB keywords to categorize content and optimize search results for movies and TV shows using text queries.

Instructions

Searches for TMDB keywords (tags) by text query. Input: query (required search string), page (optional page number). Output: JSON with paginated keyword results. Purpose: Discover keywords for content categorization and search optimization by AI agents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number
queryYesSearch query for keywords

Implementation Reference

  • The handler function for the search_keywords tool. It calls tmdbFetch with '/search/keyword' endpoint using query and optional page parameters, then returns the JSON-stringified data wrapped in MCP content format.
    handler: async ({query, page}) => {
        const data = await tmdbFetch('/search/keyword', {query, page});
        return {content: [{type: 'text', text: JSON.stringify(data, null, 2)}]};
    }
  • The inputSchema for search_keywords tool, specifying required 'query' string and optional 'page' number (min 1).
    inputSchema: {
        type: "object",
        properties: {query: {type: "string", description: "Search query for keywords"}, page: {type: "number", minimum: 1, description: "Page number"}},
        required: ["query"],
        additionalProperties: false
    },
  • The complete tool registration object for 'search_keywords' within the tools array, which is used by MCP server handlers for listing and calling tools.
    {
        name: "search_keywords",
        description: "Searches for TMDB keywords (tags) by text query. Input: query (required search string), page (optional page number). Output: JSON with paginated keyword results. Purpose: Discover keywords for content categorization and search optimization by AI agents.",
        inputSchema: {
            type: "object",
            properties: {query: {type: "string", description: "Search query for keywords"}, page: {type: "number", minimum: 1, description: "Page number"}},
            required: ["query"],
            additionalProperties: false
        },
        handler: async ({query, page}) => {
            const data = await tmdbFetch('/search/keyword', {query, page});
            return {content: [{type: 'text', text: JSON.stringify(data, null, 2)}]};
        }
    },

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/drakonkat/wizzy-mcp-tmdb'

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