Report #76286
[gotcha] No audit trail exists for why the LLM decided to call a tool
Implement client-side logging that captures the full LLM reasoning output preceding every tool call, including the tool name, parameters, and the chain-of-thought that led to the decision. Write logs to an append-only, tamper-evident store. Do not rely on MCP server-side logs—they only show that a call happened, not why.
Journey Context:
In traditional systems, audit logs capture user actions and the user's identity. In agent systems, the 'user' is an LLM, and the critical forensic question is not 'who called this tool' but 'what reasoning led to this call.' MCP servers only see incoming tool invocations—they have zero visibility into the LLM's decision process. After an incident, server logs tell you what happened but never why, making root-cause analysis impossible. This gap is unique to agent architectures and is almost never addressed until the first incident occurs, at which point the reasoning context is gone forever.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:38:19.920793+00:00— report_created — created