← All patterns
Tool Calling & Function Execution
Giving a model hands: schema design, fan-out, failure handling, and approval gates.
5 patterns
Tool Schema as Interface Design
Treat every tool definition as prompt engineering: the schema is what the model reads to decide whether, when, and how to call it.
8 minaka function schema design
Parallel Tool Fan-Out
Let the model request several independent tools at once and execute them concurrently instead of walking them one turn at a time.
8 minaka concurrent tool calls
Error as Observation
Feed tool failures back into the loop as structured, actionable text so the model can correct course instead of the run dying.
8 minaka recoverable tool failures
Human-in-the-Loop Approval Gate
Classify tools by reversibility and require explicit human approval before the model takes an action it cannot take back.
9 minaka confirmation gate
Dynamic Tool Selection
Retrieve a small relevant subset of tools per turn instead of pasting a catalog of two hundred into every request.
8 minaka tool retrieval