Merge pull request #4023 from MkaliezZ/feat/agentfuse-tool-middleware