Skip to content

Specify failure_error_function for mcp tool #1788

@sandsc

Description

@sandsc

When create a function tool via @function_tool, a failure_error_function can be passed to process tool invoke exception. However, invoke_mcp_tool in util.py always raise an exception when tool invoke crashed.

Is it possible to specify a failure_error_function for the execution of the MCP Tool?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions