{
  "openapi": "3.1.0",
  "info": {
    "title": "PaintDial connector",
    "version": "1.0.0",
    "description": "Model Context Protocol endpoint for PaintDial. Find the closest UK paints to a named colour or a hex value, or look up one paint. Read-only, no sign-in.",
    "termsOfService": "https://www.paintdial.co.uk/developers/",
    "contact": {
      "url": "https://www.paintdial.co.uk/contact/"
    }
  },
  "externalDocs": {
    "description": "How to connect",
    "url": "https://www.paintdial.co.uk/developers/"
  },
  "servers": [
    {
      "url": "https://www.paintdial.co.uk"
    }
  ],
  "paths": {
    "/mcp": {
      "post": {
        "operationId": "mcp",
        "summary": "Model Context Protocol (JSON-RPC 2.0 over Streamable HTTP)",
        "description": "Methods: initialize, tools/list, tools/call. Tools: find_closest_paints, get_paint.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "integer"
                    ]
                  },
                  "method": {
                    "type": "string"
                  },
                  "params": {
                    "type": "object"
                  }
                }
              },
              "example": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "tools/call",
                "params": {
                  "name": "find_closest_paints",
                  "arguments": {
                    "colour": "Hague Blue",
                    "limit": 3
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC reply",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "202": {
            "description": "Notification accepted"
          },
          "429": {
            "description": "Too many requests"
          }
        }
      }
    }
  }
}