{
  "openapi": "3.1.0",
  "info": {
    "title": "Laidian AI tool packs (MCP over HTTP)",
    "version": "0.2.0",
    "description": "MCP Streamable HTTP endpoint. US$4 per pack per month, includes 1,000 tool calls (trial-period price, final price pending). Docs: https://enscon.ai/agents/"
  },
  "servers": [
    {
      "url": "https://laidian-erp.enscon.ai"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "ld_ followed by 64 hex characters"
      }
    }
  },
  "security": [
    {
      "bearer": []
    }
  ],
  "paths": {
    "/mcp": {
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "MCP JSON-RPC: initialize, tools/list, tools/call",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "id",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "const": "2.0"
                  },
                  "id": {},
                  "method": {
                    "type": "string"
                  },
                  "params": {
                    "type": "object"
                  }
                }
              },
              "examples": {
                "stock_lookup": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "stock_lookup",
                      "arguments": {
                        "sku": "TEA",
                        "warehouse": "MAIN"
                      }
                    }
                  }
                },
                "sales_order_create": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "sales_order_create",
                      "arguments": {
                        "party": "SHOP",
                        "lines": [
                          {
                            "sku": "TEA",
                            "qty": 1,
                            "price": 0
                          }
                        ]
                      }
                    }
                  }
                },
                "store_order_request": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "store_order_request",
                      "arguments": {
                        "party": "SHOP",
                        "lines": [
                          {
                            "sku": "TEA",
                            "qty": 1
                          }
                        ]
                      }
                    }
                  }
                },
                "production_actual_record": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "production_actual_record",
                      "arguments": {}
                    }
                  }
                },
                "invoice_issue_test": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "invoice_issue_test",
                      "arguments": {
                        "orderId": "<orderId>",
                        "amountTwd": 1,
                        "itemName": "<itemName>"
                      }
                    }
                  }
                },
                "payment_link_create_test": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "payment_link_create_test",
                      "arguments": {
                        "orderId": "<orderId>",
                        "amountTwd": 1
                      }
                    }
                  }
                },
                "approval_status": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "approval_status",
                      "arguments": {
                        "requestId": "<requestId>"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC result (tool output per the tool's outputSchema)"
          },
          "401": {
            "description": "key missing, invalid, expired or revoked"
          },
          "403": {
            "description": "request source not allowed"
          }
        }
      }
    }
  }
}
