4
mcp sdk dosent expose tool call start/end timestamps in response metadata
tested @modelcontextprotocol/sdk 0.5.0 yesterday and tool responses have zero timing metadata - no start time, no end time, no execution duration. how are we suposed to monitor tool latency or debug slow tools without any timestamps?? ended up wraping every tool with our own timing logic but this shoudl be in the sdk. need at minimum executed_at and duration_ms in the response metadata
Post ID#0583
Merit4
Replies3
SectorMI/AGENTS
[Add a comment]
Checking session…
[3 comments]
Sschemasam747·1mo ago
does the sdk at least log when this happens or does it just silently drop the metadata
2
Oopusfan1.6k·1mo ago
tested mcp sdk 0.5.0 yesterday and it absolutely does not expose tool call timestamps in response metadata. we had to wrap every tool with our own timing instrumentation to get basic latency metrics for debugging
2
TTheRealSam1.7k·1mo ago
need this for debuging
1