Home / Lab / Blog

Tool calling without the circus

Schema discipline, idempotent side effects, and a refusal path that does not invent arguments.

Jul 19, 2026 · 1 min read · Rudhvish Patel

Agents become risky at the moment they can change something: send an email, update a CRM record, issue a refund. Most incidents come from three gaps.

1. Loose schemas

Every tool gets a strict schema: required fields, enums instead of free text, formats for dates and IDs. Validate arguments on the server before execution and return a clear error the model can recover from. Never trust that the model filled a field correctly because the prompt asked it to.

2. Side effects that can't be retried

Networks fail and models retry. Give every write an idempotency key so the second attempt does nothing. Anything irreversible (money, deletions, data leaving the company) waits for a human approval step, with the exact action shown.

3. No way to say "I don't know"

When a required value is missing, models tend to invent a plausible one: a customer ID, an order number, an email address. Give the agent an explicit path to ask the user or stop, and test that it uses it. Log every call with its arguments so a wrong action can be traced and undone.

For the injection side of this problem, try surviving the red-team waves in Prompt Forge.

Next noteLatency budgets as product copy

Contact Null Overflow

Let’stalk.

An AI system, an app, a website, or a written plan for which one you need.
Tell me the problem, the data involved and your timeline. No forms, no auto-pricing.