Skip to content

Invalid input: expected object, received undefined #321

@Dreampip

Description

@Dreampip

0.4.2
data: {"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"MCP error -32602: Input validation error: Invalid arguments for tool get_message_quota: [\n {\n "expected": "object",\n "code": "invalid_type",\n "path": [],\n "message": "Invalid input: expected object, received undefined"\n }\n]"}],"isError":true}}

request:
{
"method": "tools/call",
"params": {
"name": "get_message_quota",
"arguments": null,
"_meta": {
"progressToken": 2
}
},
"jsonrpc": "2.0",
"id": 2
}

When the "arguments" field is empty, this error will be reported.

{
"method": "tools/call",
"params": {
"name": "get_message_quota",
"arguments": {},
"_meta": {
"progressToken": 2
}
},
"jsonrpc": "2.0",
"id": 2
}
If the "arguments" is an empty JSON, that's fine... Could you please modify the validation logic? Actually, the functions "get_message_quota", "get_rich_menu_list", and "cancel_rich_menu_default" don't require any parameters, right? Whether it's an empty string or an empty JSON.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions