Skip to content

Describe how errors from tools should be reported #28

Description

@jspahrsummers

Errors that occur during the execution of a tool (including "expected" errors from the tool, like from a third-party API) could be reported in one of two ways to the client:

  1. As an MCP error
  2. In the result object, adding some sort of error key or annotation

The problem with 1 is that the LLM will be expecting a tool result, and will probably benefit from knowing if it failed—and treating it like a protocol error might preclude that.

We should document whatever we decide as a recommendation in the spec.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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