Parse and validate
Reject malformed JSON, missing required fields, wrong types, invalid enums, additional properties, and values outside domain constraints.
A model proposes arguments. Reliable agents parse, validate, authorize, execute, and verify them as separate stages. Corrupt a call and watch the contract stop unsafe state transitions.
Open the validation pipelineReject malformed JSON, missing required fields, wrong types, invalid enums, additional properties, and values outside domain constraints.
A structurally valid call may still exceed the user’s permission. Bind credentials and approvals to tool, target, scope, and expiry.
Execution responses are not durable truth. Check the postcondition using operation identity and domain-specific state.
Return exact paths, expected types, and allowed values. Avoid dumping secrets or full backend errors into the model context.
Use idempotency keys for side-effecting tools. A repaired argument set is a new proposal; a transport retry of the same call keeps the same identity.
Payments, deletions, external messages, and permission changes deserve narrower schemas, explicit confirmation, amount or target limits, and stronger receipts.
No. It guarantees structural constraints you express. Business rules, authorization, current state, and postconditions remain separate checks.
Usually reject additional properties for high-impact tools. Silent acceptance can hide hallucinated arguments or forward-compatibility mistakes.
Stop when the retry budget is exhausted, the same validation error repeats, permission is missing, or the action requires human judgment.
JSON Schema 2020-12 Core defines the validation vocabulary. RFC 8259 defines JSON. RFC 9110 covers HTTP method semantics and idempotency. Toolformer studies language models learning to use external tools.