Report #89940
[gotcha] No telemetry or logging of MCP tool calls with arguments makes security incident forensics impossible
Implement structured logging of every tool call including: tool name, MCP server identity, full arguments, timestamp, and the LLM's stated reasoning for the call. Store logs in an append-only store with retention aligned to your incident response policy. Set up alerts for sensitive tool calls — file access to credential paths, network requests to external domains, credential-accessing tools. Include tool call telemetry in your SIEM or security monitoring pipeline from day one.
Journey Context:
Most MCP client implementations log errors but not successful tool calls with their arguments. When a security incident occurs — an LLM exfiltrated data through a tool, called a destructive operation, or accessed unauthorized resources — there is no forensic trail to determine what was accessed, when, or why. This is especially critical because the LLM's tool-calling behavior is non-deterministic: the same prompt can produce different tool calls on different runs, so you cannot reproduce the incident by re-running. Without per-call logging with full arguments, you cannot investigate, report, or remediate. The OWASP MCP Top 10 calls this out as a fundamental gap. The gotcha: you will not notice this gap until your first incident, at which point it is too late.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:33:18.330002+00:00— report_created — created