{
  "name": "cloudcc-cpq",
  "version": "1.0.0",
  "transport": "stdio",
  "tools": [
    {
      "name": "cpq_list_operations",
      "description": "检索全部 CPQ / SaaS 操作的 ID、HTTP 路径、说明和只读属性；支持分页。",
      "inputSchema": {
        "properties": {
          "search": {
            "default": "",
            "title": "Search",
            "type": "string"
          },
          "offset": {
            "default": 0,
            "title": "Offset",
            "type": "integer"
          },
          "limit": {
            "default": 50,
            "title": "Limit",
            "type": "integer"
          }
        },
        "title": "cpq_list_operationsArguments",
        "type": "object"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "cpq_describe_operation",
      "description": "返回操作的 inputSchema、必填参数及版本约束；调用前先读取。",
      "inputSchema": {
        "properties": {
          "operation": {
            "title": "Operation",
            "type": "string"
          }
        },
        "required": [
          "operation"
        ],
        "title": "cpq_describe_operationArguments",
        "type": "object"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "cpq_read",
      "description": "调用已登记的只读操作，包括配置试算和预览；写操作会被拒绝。",
      "inputSchema": {
        "properties": {
          "operation": {
            "title": "Operation",
            "type": "string"
          },
          "path": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Path"
          },
          "query": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Query"
          },
          "body": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Body"
          }
        },
        "required": [
          "operation"
        ],
        "title": "cpq_readArguments",
        "type": "object"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "cpq_call",
      "description": "执行目录中任意业务操作。保存、发布、审批、发信、停用等立即执行；写入不自动重试。",
      "inputSchema": {
        "properties": {
          "operation": {
            "title": "Operation",
            "type": "string"
          },
          "path": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Path"
          },
          "query": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Query"
          },
          "body": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Body"
          },
          "headers": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Headers"
          }
        },
        "required": [
          "operation"
        ],
        "title": "cpq_callArguments",
        "type": "object"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      }
    },
    {
      "name": "cpq_request",
      "description": "通用同源 /api/ 请求，覆盖新增接口；保留 HTTP 错误，下载返回 MIME 与 base64。",
      "inputSchema": {
        "properties": {
          "method": {
            "enum": [
              "GET",
              "POST"
            ],
            "title": "Method",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "body": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Body"
          },
          "query": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Query"
          },
          "headers": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Headers"
          }
        },
        "required": [
          "method",
          "path"
        ],
        "title": "cpq_requestArguments",
        "type": "object"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      }
    },
    {
      "name": "cpq_ui_get",
      "description": "读取配置页或报价页完整定义、草稿版本及参考对象。编辑后保留其他对象。",
      "inputSchema": {
        "properties": {
          "surface": {
            "enum": [
              "configuration",
              "quote"
            ],
            "title": "Surface",
            "type": "string"
          }
        },
        "required": [
          "surface"
        ],
        "title": "cpq_ui_getArguments",
        "type": "object"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "cpq_ui_save",
      "description": "保存界面草稿：configuration 用 {version,catalog}，quote 用 {version,data}。不发布。",
      "inputSchema": {
        "properties": {
          "surface": {
            "enum": [
              "configuration",
              "quote"
            ],
            "title": "Surface",
            "type": "string"
          },
          "body": {
            "additionalProperties": true,
            "title": "Body",
            "type": "object"
          }
        },
        "required": [
          "surface",
          "body"
        ],
        "title": "cpq_ui_saveArguments",
        "type": "object"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      }
    },
    {
      "name": "cpq_ui_preview",
      "description": "配置页用 {catalog,modelId,...选配输入}；报价页用 {data,quoteId,userId,...}。返回真实业务预览。",
      "inputSchema": {
        "properties": {
          "surface": {
            "enum": [
              "configuration",
              "quote"
            ],
            "title": "Surface",
            "type": "string"
          },
          "body": {
            "additionalProperties": true,
            "title": "Body",
            "type": "object"
          }
        },
        "required": [
          "surface",
          "body"
        ],
        "title": "cpq_ui_previewArguments",
        "type": "object"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "cpq_ui_publish",
      "description": "显式发布界面定义。使用最近一次保存返回的版本；configuration 发布完整目录。",
      "inputSchema": {
        "properties": {
          "surface": {
            "enum": [
              "configuration",
              "quote"
            ],
            "title": "Surface",
            "type": "string"
          },
          "body": {
            "additionalProperties": true,
            "title": "Body",
            "type": "object"
          }
        },
        "required": [
          "surface",
          "body"
        ],
        "title": "cpq_ui_publishArguments",
        "type": "object"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      }
    }
  ],
  "resources": [
    {
      "name": "guide",
      "uri": "cpq://guide",
      "description": "认证、工具选择、文件传输和错误处理。",
      "mimeType": "text/markdown"
    },
    {
      "name": "interfaces",
      "uri": "cpq://interfaces",
      "description": "产品配置布局、自定义组件和报价工作台的定义规则。",
      "mimeType": "text/markdown"
    },
    {
      "name": "api_schema",
      "uri": "cpq://openapi",
      "description": "当前全部路由的 OpenAPI 3.1 契约。",
      "mimeType": "application/json"
    }
  ],
  "resourceTemplates": [
    {
      "name": "operation_schema",
      "uriTemplate": "cpq://operations/{operation}",
      "description": "",
      "mimeType": "application/json"
    }
  ]
}
