When tool search (progressive discovery) is enabled, MCP clients use the
call_tool proxy instead of individual tools. The logging middleware now
resolves the actual tool name from the proxy arguments and stores it as
mcp_tool in the curated payload, restoring analytics granularity.
Additionally, on failure the error_type (exception class name) is captured
in the curated payload so analysts can distinguish failure modes without
cross-referencing the separate mcp_tool_error log entries.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>