{
    "mcp": {
        "version": "2024-11-05",
        "server": {
            "name": "RAWMID WEB MCP",
            "version": "1.2.0"
        },
        "endpoints": {
            "jsonrpc": "https://madeindream.com/index.php?route=webmcp/webmcp",
            "sse": "https://madeindream.com/index.php?route=webmcp/webmcp/sse"
        },
        "capabilities": {
            "tools": { "listChanged": true },
            "resources": { "subscribe": true, "listChanged": true },
            "prompts": { "listChanged": true },
            "logging": {},
            "sampling": {},
            "roots": { "listChanged": true }
        },
        "tools": [
            {
                "name": "rawmid_search",
                "description": "Универсальный поиск по сайту RAWMID. Поддерживает поиск товаров, рецептов и статей. Доступен всем посетителям сайта.",
                "inputSchema": {
                    "type": "object",
                    "properties": {
                        "query": {
                            "type": "string",
                            "description": "Search query (e.g. coffee machine)"
                        },
                        "type": {
                            "type": "string",
                            "enum": ["product", "recipe", "article"],
                            "description": "Type of search: product, recipe, or article"
                        },
                        "limit": {
                            "type": "integer",
                            "description": "Max results (1-50)",
                            "default": 10
                        }
                    },
                    "required": ["query", "type"],
                    "additionalProperties": false
                }
            },
            {
                "name": "reward_balance",
                "description": "Получение остатка бонусных баллов в личном кабинете. Требует авторизации покупателя на сайте.",
                "inputSchema": {
                    "type": "object",
                    "properties": {},
                    "required": [],
                    "additionalProperties": false
                }
            },
            {
                "name": "product_stock",
                "description": "Получение остатков товара по складам. Можно искать по product_id, артикулу (model) или названию товара.",
                "inputSchema": {
                    "type": "object",
                    "properties": {
                        "product_id": {
                            "type": "integer",
                            "description": "ID товара (если известен)"
                        },
                        "model": {
                            "type": "string",
                            "description": "Артикул товара (model)"
                        },
                        "limit": {
                            "type": "string",
                            "description": "Название товара (частичное совпадение)"
                        }
                    },
                    "required": [],
                    "additionalProperties": false
                }
            }
        ]
    }
}
