Session
Code Mode vs. Tool Calls: When Should Your Agent Write Code Instead of Calling MCP Tools?
MCP made tool calling the default way agents interact with the world, but a growing pattern called "Code Mode" has agents write and execute code that calls MCP tools programmatically instead of invoking them one at a time.
This talk breaks down the real tradeoffs: when tool calling wins (simplicity, auditability, guardrails) and when Code Mode wins (composability, fewer round trips, handling large tool surfaces without blowing the context window). Using concrete examples, we'll look at where each pattern breaks down in practice and give developers a framework for deciding which to reach for as they design their own MCP-based agents.
Sanika Kotgire
AI & Data Engineer @ ZS | AWS Community Builder | Author | Public Speaker
Pune, India
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top