API & MCP
Everything a person can do on Movie & Series Marathon Planner, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://runtimemarathonplanner.usefulweb.site/api/v1/calculate– run Movie & Series Marathon PlannerGET https://runtimemarathonplanner.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Movie & Series Marathon Planner
Add movies (runtime) and series (episodes × minutes × seasons), your breaks, when you start and how many hours a day you want to watch. The planner schedules every movie and episode, tells you how many days the marathon takes and whether you finish by a date, and exports the viewing sessions as an .ics calendar.
| Field | Type | Default | Description |
|---|---|---|---|
titles (required) | table | — | Movies and series. Movie: runtime in minutes. Series: minutes per episode, episodes per season and seasons. |
start (required) | datetime | — | Start. When the marathon begins (local time). |
dailyStart | time | "18:00" | On the following days, start at |
maxHoursPerDay | number | 4 | Maximum viewing per day. Watching time only; breaks come on top. |
breakMinutes | number | 10 | Break between episodes |
titleBreakMinutes | number | 20 | Break between titles |
allowSplit | boolean | false | Allow pausing a movie or episode and continuing the next day |
finishBy | date | — | Finish by. Optional: checks whether you make it by the end of this day. |
Example request
Lord-of-the-Rings-length trilogy over a weekend
curl -X POST https://runtimemarathonplanner.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"titles":[{"title":"Part 1","minutes":178},{"title":"Part 2","minutes":179},{"title":"Part 3","minutes":201}],"start":"2026-10-23T19:00","dailyStart":"14:00","maxHoursPerDay":6,"breakMinutes":10,"titleBreakMinutes":30,"allowSplit":false,"finishBy":"2026-10-25"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://runtimemarathonplanner.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
runtime_marathon_planner - Local stdio connector:
node src/mcp-stdio.ts --tool=runtime-marathon-planner
{
"mcpServers": {
"runtime-marathon-planner": { "type": "http", "url": "https://runtimemarathonplanner.usefulweb.site/mcp" }
}
}