{"openapi":"3.1.0","info":{"title":"TMDB TV Seasons (BYOK) API","version":"0.1.0","description":"TMDB TV Seasons (BYOK) lets an AI assistant read your own TMDB TV Seasons data through the TMDB TV Seasons API with a key you supply (API read access token). Read-only: 11 tools (get_season, get_episode, get_season_cast, get_series_aggregate_cast, list_series_content_ratings, list_episode_groups, get_episode_group, list_airing_today, list_on_the_air, list_top_rated_shows, list_popular_shows). The...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-tmdb-tv-seasons.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-tmdb-tv-seasons/docs"},"termsOfService":"https://connectorbay.com/byok-tmdb-tv-seasons/terms"},"servers":[{"url":"https://byok-tmdb-tv-seasons.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-tmdb-tv-seasons/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/get_season":{"post":{"operationId":"get_season","summary":"Get one TV season: name, air date and the list of its episodes with number, title, air date, runtime and rating. Use for","description":"Get one TV season: name, air date and the list of its episodes with number, title, air date, runtime and rating. Use for \"List the episodes of Breaking Bad season 1\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"series_id":{"description":"Numeric TMDB TV series id (the id of a search result), for example 1396 for Breaking Bad.","minimum":1,"title":"Series Id","type":"integer"},"season_number":{"description":"Season number within the series; 0 is the specials season.","minimum":0,"title":"Season Number","type":"integer"},"language":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":"en-US","description":"Language of text as an ISO 639-1 code with optional region, for example 'en-US' or 'de-DE'.","title":"Language"}},"required":["series_id","season_number"],"title":"get_seasonArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_episode":{"post":{"operationId":"get_episode","summary":"Get one TV episode: title, overview, air date, runtime, production code and rating (guest stars and crew are left out). ","description":"Get one TV episode: title, overview, air date, runtime, production code and rating (guest stars and crew are left out). Use for \"What is episode 3 of season 2 of Breaking Bad about\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"series_id":{"description":"Numeric TMDB TV series id (the id of a search result), for example 1396 for Breaking Bad.","minimum":1,"title":"Series Id","type":"integer"},"season_number":{"description":"Season number within the series; 0 is the specials season.","minimum":0,"title":"Season Number","type":"integer"},"episode_number":{"description":"Episode number within the season, starting at 1.","minimum":0,"title":"Episode Number","type":"integer"},"language":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":"en-US","description":"Language of text as an ISO 639-1 code with optional region, for example 'en-US' or 'de-DE'.","title":"Language"}},"required":["series_id","season_number","episode_number"],"title":"get_episodeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_season_cast":{"post":{"operationId":"get_season_cast","summary":"List the cast of one TV season with character names and billing order. Use for \"Who is in the cast of Breaking Bad seaso","description":"List the cast of one TV season with character names and billing order. Use for \"Who is in the cast of Breaking Bad season 2\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"series_id":{"description":"Numeric TMDB TV series id (the id of a search result), for example 1396 for Breaking Bad.","minimum":1,"title":"Series Id","type":"integer"},"season_number":{"description":"Season number within the series; 0 is the specials season.","minimum":0,"title":"Season Number","type":"integer"},"language":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":"en-US","description":"Language of text as an ISO 639-1 code with optional region, for example 'en-US' or 'de-DE'.","title":"Language"}},"required":["series_id","season_number"],"title":"get_season_castArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_series_aggregate_cast":{"post":{"operationId":"get_series_aggregate_cast","summary":"List the whole series cast aggregated over all seasons, with total episode count per person. Use for \"Who appeared in th","description":"List the whole series cast aggregated over all seasons, with total episode count per person. Use for \"Who appeared in the most episodes of Breaking Bad\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"series_id":{"description":"Numeric TMDB TV series id (the id of a search result), for example 1396 for Breaking Bad.","minimum":1,"title":"Series Id","type":"integer"},"language":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":"en-US","description":"Language of text as an ISO 639-1 code with optional region, for example 'en-US' or 'de-DE'.","title":"Language"}},"required":["series_id"],"title":"get_series_aggregate_castArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_series_content_ratings":{"post":{"operationId":"list_series_content_ratings","summary":"List a TV series' age ratings by country (for example TV-MA in US). Use for \"What age rating does Breaking Bad have in e","description":"List a TV series' age ratings by country (for example TV-MA in US). Use for \"What age rating does Breaking Bad have in each country\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"series_id":{"description":"Numeric TMDB TV series id (the id of a search result), for example 1396 for Breaking Bad.","minimum":1,"title":"Series Id","type":"integer"}},"required":["series_id"],"title":"list_series_content_ratingsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_episode_groups":{"post":{"operationId":"list_episode_groups","summary":"List the alternative episode orderings of a series (DVD order, absolute order, production order) with episode and group ","description":"List the alternative episode orderings of a series (DVD order, absolute order, production order) with episode and group counts. Use for \"Does Breaking Bad have alternative episode orders\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"series_id":{"description":"Numeric TMDB TV series id (the id of a search result), for example 1396 for Breaking Bad.","minimum":1,"title":"Series Id","type":"integer"}},"required":["series_id"],"title":"list_episode_groupsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_episode_group":{"post":{"operationId":"get_episode_group","summary":"Get one episode group: its name and ordered groups (such as seasons) with their order and locked flag. Use for \"Show the","description":"Get one episode group: its name and ordered groups (such as seasons) with their order and locked flag. Use for \"Show the structure of episode group 5acf93e60e0a26106f0007fe\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"episode_group_id":{"description":"Episode group id (a 24-character string) from list_episode_groups.","maxLength":40,"title":"Episode Group Id","type":"string"}},"required":["episode_group_id"],"title":"get_episode_groupArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_airing_today":{"post":{"operationId":"list_airing_today","summary":"List TV shows with an episode airing today. Use for \"Which TV shows air today\".","description":"List TV shows with an episode airing today. Use for \"Which TV shows air today\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"language":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":"en-US","description":"Language of text as an ISO 639-1 code with optional region, for example 'en-US' or 'de-DE'.","title":"Language"},"page":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1 (20 results per page).","title":"Page"},"timezone":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"IANA timezone used to decide what 'today' or the next 7 days mean, for example 'America/New_York'.","title":"Timezone"}},"title":"list_airing_todayArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_on_the_air":{"post":{"operationId":"list_on_the_air","summary":"List TV shows with an episode airing in the next 7 days. Use for \"Which TV shows have new episodes this week\".","description":"List TV shows with an episode airing in the next 7 days. Use for \"Which TV shows have new episodes this week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"language":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":"en-US","description":"Language of text as an ISO 639-1 code with optional region, for example 'en-US' or 'de-DE'.","title":"Language"},"page":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1 (20 results per page).","title":"Page"},"timezone":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"IANA timezone used to decide what 'today' or the next 7 days mean, for example 'America/New_York'.","title":"Timezone"}},"title":"list_on_the_airArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_top_rated_shows":{"post":{"operationId":"list_top_rated_shows","summary":"List TV shows ordered by TMDB user rating. Use for \"What are the best rated TV shows on TMDB\".","description":"List TV shows ordered by TMDB user rating. Use for \"What are the best rated TV shows on TMDB\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"language":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":"en-US","description":"Language of text as an ISO 639-1 code with optional region, for example 'en-US' or 'de-DE'.","title":"Language"},"page":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1 (20 results per page).","title":"Page"}},"title":"list_top_rated_showsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_popular_shows":{"post":{"operationId":"list_popular_shows","summary":"List TV shows ordered by current TMDB popularity. Use for \"What are the most popular TV shows on TMDB right now\".","description":"List TV shows ordered by current TMDB popularity. Use for \"What are the most popular TV shows on TMDB right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"language":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":"en-US","description":"Language of text as an ISO 639-1 code with optional region, for example 'en-US' or 'de-DE'.","title":"Language"},"page":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1 (20 results per page).","title":"Page"}},"title":"list_popular_showsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}