callcheck // a tool call reliability layer built on ai gateway

built callcheck, validates ai tool call responses against a schema and auto repairs the ones that fail before an agent acts on them.

→ zod based validation, no new schema language
→ repair loop sends errors back to a model, retries up to a limit
→ wrap a tool once, every call after is protected
→ free repair calls through ai gateway, no separate subscription
→ cli and npm package, same core

would love feedback, especially on the repair prompt and retry strategy

here’s X post: Abhi Varde on X: "introducing callcheck validates ai tool call responses against a schema, auto repairs the ones that fail 𝚗𝚙𝚖 𝚒𝚗𝚜𝚝𝚊𝚕𝚕 𝚌𝚊𝚕𝚕𝚌𝚑𝚎𝚌𝚔 → zod based validation → auto repair via any model → wrap a tool once → free via vercel ai gateway 🖤 https://t.co/tY3pwrUq6O" / X

also you can explore at callcheck.abhivarde.in