Function call validation
Function call validation is the server-side check that ensures an LLM-emitted function call has a valid name, schema-compliant arguments, and acceptable value ranges — before the tool actually runs.
In more detail
What it means
Strict mode catches schema violations at decode time, but models still emit function calls with bad business logic — out-of-range values, references to nonexistent IDs, action requests on resources the user doesn't own. Function call validation runs after decode and before execution: schema check (probably auto), value range check, authorisation check, business-rule check. Failed validation either rejects (model retries) or asks the user for clarification. Production agentic systems in 2026 treat validation as the difference between a working agent and one that does damage when it gets confused.
Part 1 of 2
When to use it, and when not
Use it for
- Any production agent with destructive tools.
- Multi-tenant systems where tool access must be scoped per user.
Part 2 of 2
Common mistakes
- Validating only the schema, not the business logic.
- No clear error message back to the model — model can't recover without knowing why validation failed.
FAQ
Questions readers ask.
What is function call validation?
Function call validation is the server-side check that ensures an LLM-emitted function call has a valid name, schema-compliant arguments, and acceptable value ranges — before the tool actually runs.
When should you use function call validation?
Any production agent with destructive tools. Multi-tenant systems where tool access must be scoped per user.
What are the common mistakes with function call validation?
Validating only the schema, not the business logic. No clear error message back to the model — model can't recover without knowing why validation failed.
Last updated: 2026-06-01. Raw markdown: https://promtable.com/glossary/function-call-validation.md. Found a mistake? Tell us.