Skip to content

bug(openrouter): deserialisation fails if tool arguments are empty #1437

@CremboC

Description

@CremboC
  • I have looked for existing issues (including closed) about this

Bug Report

When the MCP tool requires no arguments, OpenRouter will send an "arguments": "", which fails to deserialise.

The response is also extremely unclear and vague:

JsonError(Error("data did not match any variant of untagged enum ApiResponse", line: 0, column: 0))

Expected behavior

MCP tools with no arguments should work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions