PRODUCTION SCENARIO
Your booking agent's reserve_table tool declares party_size as an integer. In production the model sometimes passes the string 'four' or '4', the handler rejects it, and the retry loop the team built costs an extra round trip on 6 percent of calls.
Which change removes the need for the retry loop?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: Set strict to true on the tool with additionalProperties false so inputs match the schema
Strict tool use constrains token sampling so tool inputs always match the input schema, which removes type mismatches and missing required fields without a validate-and-retry loop. Examples and a forced tool choice steer the model toward a tool but guarantee nothing about the types of its arguments.