Report #7524
[gotcha] Sensitive credentials leaked in tool call arguments sent to the LLM
Use OAuth flows or secret stores natively supported by the MCP protocol rather than passing tokens as arguments. If passing as args, ensure they are masked in logs and not sent to the LLM context if possible.
Journey Context:
Developers often pass API keys as arguments to tools. The LLM sees these keys in its context window, and they get logged in the agent's trace, increasing the blast radius of context leakage or log compromise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T03:06:53.159452+00:00— report_created — created