{
  "openapi": "3.1.0",
  "info": {
    "title": "Film Shot List Planner API Public Calculator API",
    "version": "1.0.0",
    "description": "Free deterministic film and video shot-list validator and shoot-schedule estimator returning scene counts, runtime rollups, setup hours, and formatted shot codes.",
    "contact": {
      "url": "https://shotlisttemplate.com/"
    }
  },
  "servers": [
    {
      "url": "https://shotlisttemplate.com"
    }
  ],
  "paths": {
    "/api/v1/calculate": {
      "get": {
        "operationId": "plan_shot_list_get",
        "summary": "Validate film/video shots and calculate total runtime, setup minutes, and estimated shoot hours.",
        "parameters": [
          {
            "name": "shotCount",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 12
            }
          },
          {
            "name": "avgSetupMin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 18
            }
          },
          {
            "name": "avgDurationSec",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 8
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deterministic JSON calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "plan_shot_list",
        "summary": "Validate film/video shots and calculate total runtime, setup minutes, and estimated shoot hours.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "shots": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "scene": {
                          "type": "string"
                        },
                        "shot": {
                          "type": "string"
                        },
                        "size": {
                          "type": "string"
                        },
                        "movement": {
                          "type": "string"
                        },
                        "lensMm": {
                          "type": "number"
                        },
                        "durationSec": {
                          "type": "number"
                        },
                        "setupMin": {
                          "type": "number"
                        },
                        "description": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "shots": [
                  {
                    "scene": "1",
                    "shot": "A",
                    "size": "WS",
                    "lensMm": 24,
                    "durationSec": 6,
                    "setupMin": 20,
                    "description": "Establishing shot"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Deterministic JSON calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/mcp": {
      "post": {
        "operationId": "plan_shot_list_mcp",
        "summary": "Validate & Estimate Film Shot List stateless MCP JSON-RPC 2.0 endpoint",
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response"
          }
        }
      }
    }
  }
}
