Report #15271
[tooling] Agent ignores enum values or parameter constraints in MCP tool schemas
Add 'title' fields to your JSON Schema properties \(not just 'description'\) and put critical constraints in the first 10 words of the tool description—agents weight early description text and schema titles higher than detailed descriptions when generating arguments.
Journey Context:
Developers often pack constraint details into verbose 'description' fields, but LLM tool-calling mechanisms parse schema structure first; the 'title' field acts as the parameter label the agent sees, and front-loading constraints like 'required regex pattern: ^\[a-z\]\+$' in the description acts as prompt engineering for the argument generator, whereas constraints buried at the end are often ignored or truncated.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:41:56.930624+00:00— report_created — created