← Tool Use & Function Calling
Argument Validation
Argument validation is the process of checking that the arguments a model supplies in a tool call conform to the tool's schema — verifying required fields are present, types match, and values fall within acceptable ranges. Validation can happen in the runtime before dispatching the call, in the tool itself, or at both layers. Returning clear, structured validation errors to the model often enables it to self-correct and retry with valid arguments.