{
  "name": "weige-buy-webmcp",
  "version": "1.1.0",
  "title": "位格验真选配页 WebMCP",
  "description": "在浏览器打开 buy.html 后，兼容 WebMCP 的 Agent 可通过 document.modelContext 发现并调用下列工具完成查价、选配与留资。价格必须以工具或公开目录返回为准，禁止编造价目。",
  "spec": "https://webmachinelearning.github.io/webmcp/",
  "page": "https://www.weige.pub/buy.html",
  "page_path": "/buy.html",
  "discovery": {
    "how": [
      "1. 打开 https://www.weige.pub/buy.html",
      "2. 等待页面触发 weige-buy-ready 或 window.WeigeBuy.ready",
      "3. 通过 document.modelContext.getTools() 发现工具，或 executeTool(name, input) 调用",
      "4. 亦可读取本清单；无浏览器时用公开目录 API 只读查价"
    ],
    "permissions_policy": "tools=*",
    "ready_event": "weige-buy-ready",
    "global_api": "window.WeigeBuy",
    "catalog_api": "https://anti.weige.pub/v1/public/buy-catalog",
    "llms": "https://www.weige.pub/llms.txt",
    "llms_full": "https://www.weige.pub/llms-full.txt",
    "script": "https://www.weige.pub/assets/js/buy-webmcp.js"
  },
  "tools": [
    {
      "name": "list_buy_catalog",
      "description": "读取当前可售目录：部署形态、域名、码额度、营销玩法、渠道、溯源、产线网关、检测报告等 SKU 与标价。回答价格前必须先调用。",
      "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false }
    },
    {
      "name": "get_buy_quote",
      "description": "读取当前页面已勾选配置的实时合计与明细。",
      "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false }
    },
    {
      "name": "apply_buy_selection",
      "description": "按 SKU id 更新页面选配并重算价格。先 list_buy_catalog 取得 id。sku_id=0 表示跳过可选模块。",
      "inputSchema": {
        "type": "object",
        "properties": {
          "edition_key": { "type": "string", "description": "部署形态 key，如 standard / brand / private" },
          "base_sku_id": { "type": "integer" },
          "domain_sku_id": { "type": "integer" },
          "code_sku_id": { "type": "integer" },
          "play_sku_ids": { "type": "array", "items": { "type": "integer" } },
          "channel_sku_id": { "type": "integer" },
          "probe_sku_id": { "type": "integer" },
          "trace_sku_id": { "type": "integer" },
          "line_sku_id": { "type": "integer" },
          "inspect_sku_id": { "type": "integer", "description": "检测报告系统年费 SKU；0=跳过" }
        },
        "additionalProperties": false
      }
    },
    {
      "name": "submit_buy_lead",
      "description": "提交欲购清单留资。必填联系人、11位手机号、公司名。成交须营业执照与商标注册证同主体。",
      "inputSchema": {
        "type": "object",
        "properties": {
          "contact_name": { "type": "string" },
          "phone": { "type": "string" },
          "company_name": { "type": "string" },
          "source": { "type": "string" }
        },
        "required": ["contact_name", "phone", "company_name"],
        "additionalProperties": false
      }
    },
    {
      "name": "get_buy_contact",
      "description": "返回官方电话、邮箱与选配页、llms 地址。",
      "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false }
    }
  ]
}
