list_seasons

Pack: trakt · Endpoint: https://gateway.pipeworx.io/trakt/mcp

“How many seasons of [show]” / “list seasons of [TV series]” / “episode counts per season” — list all seasons of a show with episode counts. Pass extended=“episodes” to include each episode in the response.

Parameters

NameTypeRequiredDescription
show_idstringyestrakt ID or slug
extendedstringnofull | episodes | full,episodes

Example call

Arguments

{
  "show_id": "1391"
}

curl

curl -X POST https://gateway.pipeworx.io/trakt/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_seasons","arguments":{"show_id":"1391"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('list_seasons', {
  "show_id": "1391"
});

More examples

{
  "show_id": "breaking-bad",
  "extended": "full,episodes"
}

Response shape

Always returns: items, count

FieldTypeDescription
itemsarrayArray of seasons for the show
countintegerNumber of items returned.
Full JSON Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "description": "Array of seasons for the show",
      "items": {
        "type": "object",
        "properties": {
          "number": {
            "type": "number",
            "description": "Season number"
          },
          "ids": {
            "type": "object",
            "description": "Trakt and TVDB IDs"
          },
          "episode_count": {
            "type": "number",
            "description": "Total episodes in season"
          },
          "episodes": {
            "type": "array",
            "description": "Episode details if extended=episodes",
            "items": {
              "type": "object"
            }
          }
        },
        "required": [
          "number",
          "ids"
        ]
      }
    },
    "count": {
      "type": "integer",
      "description": "Number of items returned."
    }
  },
  "required": [
    "items",
    "count"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "trakt": {
      "url": "https://gateway.pipeworx.io/trakt/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026