concept

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.

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.

When to use function call validation

Common mistakes

FAQ

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 I use function call validation?

Any production agent with destructive tools. Multi-tenant systems where tool access must be scoped per user.

What are the most 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.