{
  "openapi": "3.1.0",
  "info": {
    "title": "Nest at Number 20 furniture data",
    "version": "1.0.0",
    "description": "Read-only data about Nest at Number 20's handmade furniture: the full product range with prices, options and measurements, and the answers from the site's FAQs. Static JSON, no authentication. Prices are in GBP as shown on the website; orders are placed by requesting a quote, not through this API.",
    "contact": {
      "name": "Nest at Number 20",
      "url": "https://www.nestatnumber20.com/contact.html",
      "email": "info@nestatnumber20.com"
    }
  },
  "servers": [
    {
      "url": "https://www.nestatnumber20.com"
    }
  ],
  "externalDocs": {
    "url": "https://www.nestatnumber20.com/api/"
  },
  "paths": {
    "/api/products.json": {
      "get": {
        "operationId": "listProducts",
        "summary": "Every product in the range",
        "responses": {
          "200": {
            "description": "The product range",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductList"
                }
              }
            }
          }
        }
      }
    },
    "/api/faq.json": {
      "get": {
        "operationId": "listFaqs",
        "summary": "Every FAQ answer on the site",
        "responses": {
          "200": {
            "description": "Questions and answers",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FaqList"
                }
              }
            }
          }
        }
      }
    },
    "/api/status.json": {
      "get": {
        "operationId": "getStatus",
        "summary": "API status",
        "responses": {
          "200": {
            "description": "The API is being served",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "mcp",
        "summary": "MCP server (Model Context Protocol, Streamable HTTP, JSON-RPC 2.0)",
        "description": "Tools: search_furniture, get_product, get_faq, request_quote. See /.well-known/mcp/server-card.json.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "202": {
            "description": "Notification accepted"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Product": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdown_url": {
            "type": "string",
            "format": "uri"
          },
          "summary": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "price": {
            "type": "string",
            "description": "As shown on the product page, e.g. \"£890.00 – £990.00\"."
          },
          "price_from": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_to": {
            "type": [
              "number",
              "null"
            ]
          },
          "currency": {
            "type": "string",
            "const": "GBP"
          },
          "option_choice": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the options choose between, e.g. \"Select a Worktop\"."
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "price": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "price_label": {
                  "type": "string"
                }
              }
            }
          },
          "measurements": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "part": {
                  "type": "string"
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "rooms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "size_band": {
            "type": "string"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "quote_url": {
            "type": "string",
            "format": "uri",
            "description": "The quote request form, prefilled with this product."
          }
        }
      },
      "ProductList": {
        "type": "object",
        "properties": {
          "site": {
            "type": "object"
          },
          "count": {
            "type": "integer"
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Product"
            }
          }
        }
      },
      "Faq": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string"
          },
          "page": {
            "type": "string",
            "format": "uri"
          },
          "question": {
            "type": "string"
          },
          "answer": {
            "type": "string",
            "description": "Markdown."
          }
        }
      },
      "FaqList": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "faqs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Faq"
            }
          }
        }
      },
      "Status": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "ok"
          },
          "products": {
            "type": "integer"
          },
          "faqs": {
            "type": "integer"
          }
        }
      }
    }
  }
}
