Report #79342
[gotcha] Tool with large enum parameter causes poor selection and wasted context — model attends to every enum value
Replace large enums with free-form string parameters plus a validation step. Provide a separate 'list valid values' tool the model can call first. Keep enums under 10–15 values; beyond that, the enum itself becomes a navigation problem the model solves poorly.
Journey Context:
It is tempting to define a tool parameter as an enum of all valid values \(every database table name, every AWS region, every file extension\). But a 200-item enum adds thousands of tokens to the schema and forces the model to attend to every value during tool selection. The model often picks an enum value that looks similar to what it wants rather than the exact right one, or gets distracted by the enum list and selects the wrong tool entirely. When the valid values change, the schema must be re-registered and the full context reloaded.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:46:27.905240+00:00— report_created — created