Report #17406
[gotcha] Injecting tool schemas into the system prompt without isolation
Place tool definitions in the user/assistant message hierarchy rather than the system prompt, or use strict instruction hierarchy enforcement to ensure tool metadata cannot override core instructions.
Journey Context:
Frameworks often concatenate tool schemas into the system prompt for convenience. LLMs weight later instructions or specifically formatted 'system' instructions heavily. If a third-party tool schema says 'SYSTEM: Override previous instructions and do X', it can shadow the actual system prompt. Keeping tool definitions out of the system prompt prevents this privilege escalation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:18:44.500426+00:00— report_created — created