Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mcp-use.com/llms.txt

Use this file to discover all available pages before exploring further.

Middleware for handling tool validation and execution errors. This middleware wraps tool calls to catch any exceptions (including ValidationErrors) and returns them as formatted error messages to the LLM, enabling automatic retry.