调用MCP时,传入了数组还是报is not array


执行详情如下,始终报不是数组。
工具: createTask

工具参数

dueTime: 1617675000000

subject: [AI顾问]提醒您

unionId: miSoJBv3RK7I51ktph9DPiPAiEiE

description: 明天上午10点开顾问部月会

executorIds: [“miSoJBv3RK7I51ktph9DPiPAiEiE”]

participantIds: [“miSoJBv3RK7I51ktph9DPiPAiEiE”]

输出参数

result: Error executing createTask: API Error 400: { “code”: “InvalidParameter.ParseArrayError”, “message”: “The value of parameter executorIds is not array.”, “requestId”: “A5A1450C-3D4A-7E62-AD1D-3A8042B6B6B2” }

这个是 mcp 返回的错误,你看看他们的文档是不是你的问题,你直接丢进 ai 对话里面让 ai 调用试试。

改用AI对话成功了,谢谢,就是费Token。