Skip to main content
Glama

tv_credits

Fetch cast and crew credits for TV shows using TMDB ID to analyze personnel information and support AI-driven recommendations.

Instructions

Fetches cast and crew credits for a TV show. Input: tv_id (required TMDB ID), language (optional ISO 639-1). Output: JSON with cast and crew details. Purpose: Retrieve detailed personnel information for TV show analysis and recommendations by AI agents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNoISO 639-1 code (e.g., en-US)
tv_idYesTMDB TV Show ID

Implementation Reference

  • The handler function for the 'tv_credits' tool. It fetches cast and crew credits for a given TV show ID from the TMDB API using the tmdbFetch helper and returns the JSON data as text content.
    handler: async ({tv_id, language}) => { const data = await tmdbFetch(`/tv/${tv_id}/credits`, {language}); return {content: [{type: "text", text: JSON.stringify(data, null, 2)}]}; }
  • The input schema for the 'tv_credits' tool, defining required 'tv_id' (number) and optional 'language' (string).
    inputSchema: { type: "object", properties: { tv_id: {type: "number", description: "TMDB TV Show ID"}, language: {type: "string", description: "ISO 639-1 code (e.g., en-US)"} }, required: ["tv_id"], additionalProperties: false },
  • The complete 'tv_credits' tool definition object in the tools array, which is used by the MCP server to register and handle tool calls.
    { name: "tv_credits", description: "Fetches cast and crew credits for a TV show. Input: tv_id (required TMDB ID), language (optional ISO 639-1). Output: JSON with cast and crew details. Purpose: Retrieve detailed personnel information for TV show analysis and recommendations by AI agents.", inputSchema: { type: "object", properties: { tv_id: {type: "number", description: "TMDB TV Show ID"}, language: {type: "string", description: "ISO 639-1 code (e.g., en-US)"} }, required: ["tv_id"], additionalProperties: false }, handler: async ({tv_id, language}) => { const data = await tmdbFetch(`/tv/${tv_id}/credits`, {language}); 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