MCP Server(火山引擎 billing API)的问题,不是你的 skill 问题。
问题分析
看接口 schema 定义:
"GroupPeriod": {
"type": "integer", // 类型声明:整数
"format": "int32",
"enum": ["0", "1", "2"], // 枚举值:字符串数组
"example": 0 // 示例值:整数
}
这是火山引擎 billing API 的 schema 设计缺陷,正确的定义应该是:
// 方案1:统一用整数
"GroupPeriod": {
"type": "integer",
"enum": [0, 1, 2] // 枚举值也是整数
}
// 方案2:统一用字符串
"GroupPeriod": {
"type": "string",
"enum": ["0", "1", "2"]
}