{
  "openapi": "3.1.0",
  "info": {
    "title": "Knowledge Made Fun public API",
    "version": "1.0.0",
    "summary": "Read-only JSON about the public lessons, grade guides, worksheet skills and classroom tools of Knowledge Made Fun.",
    "description": "Every route is read-only, needs no key or account, allows any origin and holds nothing personal. The same data is offered as Model Context Protocol tools at https://knowledgemadefun.com/mcp (POST only) and as text at https://knowledgemadefun.com/llms.txt. Lists and items are cached for an hour; errors are never cached. Each item carries the url of its public page: cite and link it.",
    "contact": {
      "name": "Knowledge Made Fun",
      "url": "https://knowledgemadefun.com/contact",
      "email": "hello@knowledgemadefun.com"
    },
    "license": {
      "name": "Public content: read, quote and link; videos stream only",
      "url": "https://knowledgemadefun.com/developers"
    }
  },
  "servers": [
    {
      "url": "https://knowledgemadefun.com"
    }
  ],
  "x-rate-limit": "120 requests a minute per address",
  "paths": {
    "/api/public/v1/site": {
      "get": {
        "operationId": "getSiteFacts",
        "summary": "The facts about the site",
        "description": "The name, address, paragraph, facts, free actions and the addresses of llms.txt, the OpenAPI document and the MCP endpoint.",
        "responses": {
          "200": {
            "description": "The site facts.",
            "headers": {
              "Cache-Control": {
                "description": "public, s-maxage=3600, stale-while-revalidate=86400",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteFacts"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/public/v1/lessons": {
      "get": {
        "operationId": "listLessons",
        "summary": "List or search the lessons",
        "description": "The lessons in catalogue order, filtered by grade and subject; with q, the hub's search and its ranking.",
        "parameters": [
          {
            "name": "grade",
            "in": "query",
            "required": false,
            "description": "A grade slug.",
            "schema": {
              "type": "string",
              "enum": [
                "k",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10",
                "11",
                "12"
              ]
            }
          },
          {
            "name": "subject",
            "in": "query",
            "required": false,
            "description": "A subject slug.",
            "schema": {
              "type": "string",
              "enum": [
                "mathematics",
                "english-language-arts",
                "applied-design-skills-and-technologies",
                "physical-and-health-education",
                "social-studies",
                "science",
                "arts-education",
                "career-education",
                "core-french"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Words to look for.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "The page, from 1.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items a page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of lessons.",
            "headers": {
              "Cache-Control": {
                "description": "public, s-maxage=3600, stale-while-revalidate=86400",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LessonsPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/public/v1/lessons/{id}": {
      "get": {
        "operationId": "getLesson",
        "summary": "One lesson",
        "description": "The lesson with its transcript, placements, practice questions as the public page shows them, related lessons and captions.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The lesson's id.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,119}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The lesson.",
            "headers": {
              "Cache-Control": {
                "description": "public, s-maxage=3600, stale-while-revalidate=86400",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Lesson"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/public/v1/grades": {
      "get": {
        "operationId": "listGrades",
        "summary": "The grade guides",
        "description": "Every grade with a guide, in grade order.",
        "responses": {
          "200": {
            "description": "The grade guides.",
            "headers": {
              "Cache-Control": {
                "description": "public, s-maxage=3600, stale-while-revalidate=86400",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeSummary"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/public/v1/grades/{grade}": {
      "get": {
        "operationId": "getGradeGuide",
        "summary": "One grade guide",
        "description": "The grade's subjects, strands and lessons, its worksheet skills and the free actions.",
        "parameters": [
          {
            "name": "grade",
            "in": "path",
            "required": true,
            "description": "A grade slug: k, or 1 to 12.",
            "schema": {
              "type": "string",
              "enum": [
                "k",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10",
                "11",
                "12"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The grade guide.",
            "headers": {
              "Cache-Control": {
                "description": "public, s-maxage=3600, stale-while-revalidate=86400",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradeGuide"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/public/v1/subjects": {
      "get": {
        "operationId": "listSubjects",
        "summary": "The subjects",
        "description": "Every subject with lessons and its count per grade.",
        "responses": {
          "200": {
            "description": "The subjects.",
            "headers": {
              "Cache-Control": {
                "description": "public, s-maxage=3600, stale-while-revalidate=86400",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Subject"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/public/v1/worksheets": {
      "get": {
        "operationId": "listWorksheetSkills",
        "summary": "The worksheet skills",
        "description": "Every maths worksheet skill, or one grade's, in catalogue order.",
        "parameters": [
          {
            "name": "grade",
            "in": "query",
            "required": false,
            "description": "A grade slug: k, or 1 to 7.",
            "schema": {
              "type": "string",
              "enum": [
                "k",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The skills.",
            "headers": {
              "Cache-Control": {
                "description": "public, s-maxage=3600, stale-while-revalidate=86400",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorksheetSkillSummary"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/public/v1/worksheets/{skill}": {
      "get": {
        "operationId": "getWorksheetSkill",
        "summary": "One worksheet skill",
        "description": "The skill's levels, codes, worked example, reference sheets and where to print it. Never a question or an answer key.",
        "parameters": [
          {
            "name": "skill",
            "in": "path",
            "required": true,
            "description": "The skill's id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The skill.",
            "headers": {
              "Cache-Control": {
                "description": "public, s-maxage=3600, stale-while-revalidate=86400",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorksheetSkill"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/public/v1/tools": {
      "get": {
        "operationId": "listClassroomTools",
        "summary": "The classroom tools",
        "description": "The free projector tools: a timer, a random name picker, dice, a noise meter and a scoreboard.",
        "responses": {
          "200": {
            "description": "The tools.",
            "headers": {
              "Cache-Control": {
                "description": "public, s-maxage=3600, stale-while-revalidate=86400",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Tool"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "LessonSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The lesson's id, as in its page address."
          },
          "title": {
            "type": "string",
            "description": "The lesson's title."
          },
          "url": {
            "type": "string",
            "description": "The public lesson page, with the transcript.",
            "format": "uri"
          },
          "grade": {
            "type": [
              "string",
              "null"
            ],
            "description": "The grade slug of the lesson's first curriculum placement: k, or 1 to 12."
          },
          "grades": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "A grade slug."
            }
          },
          "subject": {
            "type": "string",
            "description": "The subject slug, such as mathematics."
          },
          "subject_label": {
            "type": "string",
            "description": "The subject's display name."
          },
          "topic": {
            "type": "string",
            "description": "The topic within the subject."
          },
          "question": {
            "type": "string",
            "description": "The question the lesson answers."
          },
          "summary": {
            "type": "string",
            "description": "One or two sentences on the lesson."
          },
          "duration_seconds": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The video's length in whole seconds."
          },
          "poster_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The poster picture.",
            "format": "uri"
          },
          "outcome": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "The curriculum item's code, such as BC7-MA-33."
              },
              "text": {
                "type": "string",
                "description": "The outcome in the curriculum's words."
              }
            },
            "required": [
              "code",
              "text"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "title",
          "url",
          "grade",
          "grades",
          "subject",
          "subject_label",
          "topic",
          "question",
          "summary",
          "duration_seconds",
          "poster_url",
          "outcome"
        ],
        "additionalProperties": false
      },
      "Lesson": {
        "allOf": [
          {
            "$ref": "#/components/schemas/LessonSummary"
          },
          {
            "type": "object",
            "properties": {
              "transcript": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "start": {
                      "type": "integer",
                      "description": "Where the line starts, in whole seconds."
                    },
                    "seconds": {
                      "type": "integer",
                      "description": "How long it runs, in whole seconds."
                    },
                    "text": {
                      "type": "string",
                      "description": "The words."
                    }
                  },
                  "required": [
                    "start",
                    "seconds",
                    "text"
                  ],
                  "additionalProperties": false
                }
              },
              "transcript_text": {
                "type": "string",
                "description": "The transcript's lines joined with a space."
              },
              "placements": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "curriculum": {
                      "type": "string",
                      "description": "The curriculum's id, such as bc-grade-7."
                    },
                    "name": {
                      "type": "string",
                      "description": "The curriculum's name."
                    },
                    "grade": {
                      "type": "string",
                      "description": "The grade slug."
                    },
                    "subject": {
                      "type": "string",
                      "description": "The subject slug."
                    },
                    "strand": {
                      "type": "string",
                      "description": "The strand."
                    },
                    "outcome": {
                      "type": "string",
                      "description": "The outcome in the curriculum's words."
                    },
                    "code": {
                      "type": "string",
                      "description": "The curriculum item's code."
                    }
                  },
                  "required": [
                    "curriculum",
                    "name",
                    "grade",
                    "subject",
                    "strand",
                    "outcome",
                    "code"
                  ],
                  "additionalProperties": false
                }
              },
              "questions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The question's id."
                    },
                    "type": {
                      "type": "string",
                      "description": "mcq, true_false or short.",
                      "enum": [
                        "mcq",
                        "true_false",
                        "short"
                      ]
                    },
                    "prompt": {
                      "type": "string",
                      "description": "The question."
                    },
                    "choices": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "A choice, as the page lists them."
                      }
                    },
                    "correct": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "A right answer, in words, as the page shows it."
                      }
                    },
                    "explanation": {
                      "type": "string",
                      "description": "Why, when the question says."
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "prompt",
                    "choices",
                    "correct",
                    "explanation"
                  ],
                  "additionalProperties": false
                }
              },
              "related": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The lesson's id."
                    },
                    "title": {
                      "type": "string",
                      "description": "Its title."
                    },
                    "url": {
                      "type": "string",
                      "description": "Its public page.",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "id",
                    "title",
                    "url"
                  ],
                  "additionalProperties": false
                }
              },
              "captions_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The captions file (WebVTT).",
                "format": "uri"
              }
            },
            "required": [
              "transcript",
              "transcript_text",
              "placements",
              "questions",
              "related",
              "captions_url"
            ],
            "additionalProperties": false
          }
        ]
      },
      "LessonsPage": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "description": "How many lessons match, across every page."
          },
          "page": {
            "type": "integer",
            "description": "This page, from 1."
          },
          "per_page": {
            "type": "integer",
            "description": "How many items a page holds."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LessonSummary"
            }
          }
        },
        "required": [
          "total",
          "page",
          "per_page",
          "items"
        ],
        "additionalProperties": false
      },
      "GradeSummary": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "The grade slug: k, or 1 to 12."
          },
          "label": {
            "type": "string",
            "description": "Kindergarten, or Grade 1 to Grade 12."
          },
          "url": {
            "type": "string",
            "description": "The grade guide page.",
            "format": "uri"
          },
          "summary": {
            "type": "string",
            "description": "One paragraph on the grade, from the catalogue's counts and subjects."
          },
          "lesson_count": {
            "type": "integer",
            "description": "How many lessons the grade has."
          },
          "subject_labels": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "A subject with lessons in this grade."
            }
          }
        },
        "required": [
          "slug",
          "label",
          "url",
          "summary",
          "lesson_count",
          "subject_labels"
        ],
        "additionalProperties": false
      },
      "GradeGuide": {
        "allOf": [
          {
            "$ref": "#/components/schemas/GradeSummary"
          },
          {
            "type": "object",
            "properties": {
              "subjects": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The subject slug."
                    },
                    "label": {
                      "type": "string",
                      "description": "The subject's display name."
                    },
                    "url": {
                      "type": "string",
                      "description": "The grade and subject lesson hub.",
                      "format": "uri"
                    },
                    "lesson_count": {
                      "type": "integer",
                      "description": "How many lessons the subject has in this grade."
                    },
                    "strands": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The strand's name."
                          },
                          "lessons": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "The lesson's id."
                                },
                                "title": {
                                  "type": "string",
                                  "description": "Its title."
                                },
                                "question": {
                                  "type": "string",
                                  "description": "The question it answers."
                                },
                                "url": {
                                  "type": "string",
                                  "description": "Its public page.",
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "id",
                                "title",
                                "question",
                                "url"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "name",
                          "lessons"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "official_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The Province's own curriculum page for the subject.",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "id",
                    "label",
                    "url",
                    "lesson_count",
                    "strands",
                    "official_url"
                  ],
                  "additionalProperties": false
                }
              },
              "worksheet_skills": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The skill's id."
                    },
                    "url": {
                      "type": "string",
                      "description": "Its public page.",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "id",
                    "url"
                  ],
                  "additionalProperties": false
                }
              },
              "free_actions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Something a family can do at home without paying."
                }
              }
            },
            "required": [
              "subjects",
              "worksheet_skills",
              "free_actions"
            ],
            "additionalProperties": false
          }
        ]
      },
      "Subject": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The subject slug."
          },
          "label": {
            "type": "string",
            "description": "The subject's display name."
          },
          "lesson_count": {
            "type": "integer",
            "description": "How many lessons the subject has."
          },
          "grades": {
            "type": "object",
            "description": "Lessons per grade slug.",
            "additionalProperties": {
              "type": "integer",
              "description": "The count for that grade."
            }
          }
        },
        "required": [
          "id",
          "label",
          "lesson_count",
          "grades"
        ],
        "additionalProperties": false
      },
      "WorksheetSkillSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The skill's id."
          },
          "title": {
            "type": "string",
            "description": "The skill's title."
          },
          "url": {
            "type": "string",
            "description": "The skill's public page.",
            "format": "uri"
          },
          "grade": {
            "type": "string",
            "description": "The grade slug: k, or 1 to 7."
          },
          "grade_label": {
            "type": "string",
            "description": "Kindergarten, or Grade 1 to Grade 7."
          },
          "strand": {
            "type": "string",
            "description": "The strand."
          },
          "one_line": {
            "type": "string",
            "description": "One line on the skill."
          },
          "levels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "level": {
                  "type": "integer",
                  "description": "1, 2 or 3."
                },
                "title": {
                  "type": "string",
                  "description": "What the level practises."
                }
              },
              "required": [
                "level",
                "title"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "title",
          "url",
          "grade",
          "grade_label",
          "strand",
          "one_line",
          "levels"
        ],
        "additionalProperties": false
      },
      "WorksheetSkill": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The skill's id."
          },
          "title": {
            "type": "string",
            "description": "The skill's title."
          },
          "url": {
            "type": "string",
            "description": "The skill's public page.",
            "format": "uri"
          },
          "grade": {
            "type": "string",
            "description": "K, or 1 to 7."
          },
          "grade_slug": {
            "type": "string",
            "description": "k, or 1 to 7."
          },
          "grade_label": {
            "type": "string",
            "description": "Kindergarten, or Grade 1 to Grade 7."
          },
          "strand": {
            "type": "string",
            "description": "The strand."
          },
          "one_line": {
            "type": "string",
            "description": "One line on the skill."
          },
          "levels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "level": {
                  "type": "integer",
                  "description": "1, 2 or 3."
                },
                "title": {
                  "type": "string",
                  "description": "The level's name."
                },
                "practises": {
                  "type": "string",
                  "description": "One sentence on what the level practises."
                }
              },
              "required": [
                "level",
                "title",
                "practises"
              ],
              "additionalProperties": false
            }
          },
          "standards": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "A BC curriculum code the skill maps to."
            }
          },
          "worked_example": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "level": {
                  "type": "integer",
                  "description": "1, 2 or 3."
                },
                "steps": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "description": "One explained step."
                  }
                }
              },
              "required": [
                "level",
                "steps"
              ],
              "additionalProperties": false
            }
          },
          "reference_sheets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The sheet's id."
                },
                "title": {
                  "type": "string",
                  "description": "Its title."
                }
              },
              "required": [
                "id",
                "title"
              ],
              "additionalProperties": false
            }
          },
          "print_url": {
            "type": "string",
            "description": "Where a signed-in teacher prints the sheet (the dashboard).",
            "format": "uri"
          }
        },
        "required": [
          "id",
          "title",
          "url",
          "grade",
          "grade_slug",
          "grade_label",
          "strand",
          "one_line",
          "levels",
          "standards",
          "worked_example",
          "reference_sheets",
          "print_url"
        ],
        "additionalProperties": false
      },
      "Tool": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The tool's id."
          },
          "title": {
            "type": "string",
            "description": "The tool's title."
          },
          "url": {
            "type": "string",
            "description": "The tool's page.",
            "format": "uri"
          },
          "one_line": {
            "type": "string",
            "description": "One line on the tool."
          },
          "paragraph": {
            "type": "string",
            "description": "The paragraph under the title."
          },
          "how_teachers_use_it": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "One way a teacher uses it."
            }
          },
          "storage": {
            "type": "string",
            "description": "none, or browser when a typed list stays in that browser only.",
            "enum": [
              "none",
              "browser"
            ]
          },
          "microphone": {
            "type": "boolean",
            "description": "Whether the tool asks for the microphone (used in the browser only, never recorded)."
          },
          "dashboard_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The signed-in version on the teacher dashboard.",
            "format": "uri"
          }
        },
        "required": [
          "id",
          "title",
          "url",
          "one_line",
          "paragraph",
          "how_teachers_use_it",
          "storage",
          "microphone",
          "dashboard_url"
        ],
        "additionalProperties": false
      },
      "SiteFacts": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Knowledge Made Fun."
          },
          "url": {
            "type": "string",
            "description": "The site's address.",
            "format": "uri"
          },
          "description": {
            "type": "string",
            "description": "One paragraph on the platform."
          },
          "facts": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "One fact the site states."
            }
          },
          "free_actions": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Something anyone can do without paying."
            }
          },
          "links": {
            "type": "object",
            "properties": {
              "llms": {
                "type": "string",
                "description": "llms.txt.",
                "format": "uri"
              },
              "llms_full": {
                "type": "string",
                "description": "llms-full.txt, the whole public text.",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "description": "This document.",
                "format": "uri"
              },
              "mcp": {
                "type": "string",
                "description": "The Model Context Protocol endpoint (POST only).",
                "format": "uri"
              },
              "developers": {
                "type": "string",
                "description": "The developers page.",
                "format": "uri"
              },
              "sitemap": {
                "type": "string",
                "description": "The sitemap index.",
                "format": "uri"
              }
            },
            "required": [
              "llms",
              "llms_full",
              "openapi",
              "mcp",
              "developers",
              "sitemap"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "name",
          "url",
          "description",
          "facts",
          "free_actions",
          "links"
        ],
        "additionalProperties": false
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "bad_request, not_found, rate_limited or unavailable.",
            "enum": [
              "bad_request",
              "not_found",
              "rate_limited",
              "unavailable"
            ]
          },
          "param": {
            "type": "string",
            "description": "For bad_request: the parameter that was wrong (its value is never echoed)."
          },
          "retry_after": {
            "type": "integer",
            "description": "For rate_limited: seconds to wait."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      }
    },
    "responses": {
      "BadRequest": {
        "description": "A query parameter is not allowed. The body names the parameter.",
        "headers": {},
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "No such item.",
        "headers": {},
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "RateLimited": {
        "description": "The address has made more than 120 requests a minute per address.",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unavailable": {
        "description": "The API is switched off or the lesson library could not be read. Try again in a minute.",
        "headers": {},
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  }
}