Skip to content

invalid argument should throw protocol error, rather than tool execution error #2162

Open

Description

@SrjAlamy

Describe the bug
According to the spec , invalid tool arguments should result in a protocol error. However, the server currently returns a tool execution error instead.

To Reproduce
Steps to reproduce the behavior:

  1. Call a tool with arguments that violate the MCP schema.
  2. Observe the returned error type.

Expected behavior
A protocol error should be returned for schema validation failures.

Activity

  1. added
    bug
    on May 28, 2026
  2. norika1207-lab commented on Jun 2, 2026

    @norika1207-lab
  3. added
    triage
    on Jul 9, 2026
  4. ghost added
    potentially close
    on Jul 9, 2026
  5. ghost removed
    triage
    on Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpotentially close

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions