{
  "openapi": "3.0.1",
  "info": {
    "title": "WooCommerce MCP Connector",
    "description": "API for accessing WooCommerce store data. Allows searching products, orders, and customer information via Model Context Protocol.",
    "version": "1.1.4"
  },
  "servers": [
    {
      "url": "https://woo.webtalkbot.com",
      "description": "WooCommerce MCP Server"
    }
  ],
  "paths": {
    "/wp-json/wp/v2/wpmcp/streamable": {
      "get": {
        "operationId": "searchWooCommerce",
        "summary": "Search WooCommerce store data",
        "description": "Use this tool to search for information in the WooCommerce store. Perfect for queries about products, order status, or customers. Example queries: 'find all orders for email john.doe@example.com', 'what products are in the electronics category?', 'show product details for ID 123', 'search for laptop products', 'get recent orders'.",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "description": "Specific search query. Examples: 'latest orders', 'products under $50', 'customer John Smith', 'laptops in stock', 'orders from last week'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with found data.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "mcpJsonRpcCall",
        "summary": "MCP JSON-RPC endpoint for advanced queries",
        "description": "Advanced Model Context Protocol endpoint using JSON-RPC 2.0. Use this for complex WooCommerce operations like detailed product searches, order management, and data analysis.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["jsonrpc", "method", "id"],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "enum": ["2.0"]
                  },
                  "method": {
                    "type": "string",
                    "description": "Method to call: tools/list, tools/call, resources/list, etc."
                  },
                  "params": {
                    "type": "object",
                    "description": "Method parameters"
                  },
                  "id": {
                    "oneOf": [
                      {"type": "string"},
                      {"type": "integer"}
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful JSON-RPC response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jsonrpc": {
                      "type": "string",
                      "enum": ["2.0"]
                    },
                    "result": {
                      "type": "object"
                    },
                    "id": {
                      "oneOf": [
                        {"type": "string"},
                        {"type": "integer"}
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}