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
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | ISO 639-1 code (e.g., en-US) | |
| tv_id | Yes | TMDB TV Show ID |
Implementation Reference
- mcp-tmdb-server.js:759-762 (handler)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)}]}; }
- mcp-tmdb-server.js:750-758 (schema)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 },
- mcp-tmdb-server.js:747-763 (registration)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)}]}; } },