Skip to content

Type error #384

@zemul

Description

@zemul

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"]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions