Medium · From your know-how to a finished task
Checked at the back door, like a delivery
Grace checks every delivery at the back door before it reaches the floor. A tool call gets three checks too: is it the right shape, is this agent allowed this tool, and are the numbers sensible? Each check is a rule built into the program, never a polite line in the prompt. Fail one rule, and the tool call goes nowhere.
Example
At Maple Mart the order agent writes order_produce(item: mushrooms, crates: “a few”, supplier: hill orchard) shape crates must be a number, “a few” is not one stop allowed not reached numbers not reached Nothing is bought. Grace reads: crates was not a number.
Try it Yourself
The mushroom order said “a few” crates. Which check stopped it? Type one word.
Exercise
Milo wants no order over 20 crates, ever. Where should that limit live?