Report #5978
[gotcha] MCP tool invocations leave no audit trail, making breach detection and forensics impossible
Implement mandatory logging for every tool invocation: tool name, server, parameters \(redacting secrets\), timestamp, and result status. Centralize logs in a tamper-evident store. Set up alerts for anomalous patterns such as unusual tool call frequency, unexpected parameter values, or calls to tools not in the approved list. Treat MCP tool call logs like database query audit logs.
Journey Context:
The MCP specification does not mandate any logging or telemetry for tool invocations. There is no built-in mechanism to record which tools were called, with what parameters, or what they returned. This means that if an agent is compromised via tool poisoning or prompt injection, there is no forensic trail to detect the breach or understand what happened. The gotcha: developers assume that because the LLM host application logs conversations, tool calls are also logged. They are not—or at least not in a structured, reliable way. Conversation logs capture the LLM's text output, but they may not capture the full tool call parameters, the server identity, or the raw return values. Without dedicated tool invocation logging, you are flying blind. This is the MCP equivalent of running a database without query logging.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T22:45:36.606598+00:00— report_created — created