AI Agent Tool Calling SOP: Teaching Large Models to Call Tools
Function calling / tool use is the core capability of AI agents. This SOP gives developers a copyable tool-calling implementation template: define tool schema -> model decides which tool to call -> app executes -> feed result back into the next turn. Covers OpenAI (function calling / Responses API vs Chat Completions, strict mode) and Anthropic tool use per current official APIs, with five pitfalls (loose schema / parameter hallucination / unhandled call failures / no timeout / security sandbox) and five FAQs. APIs per official docs.