Skip to content
Anthropic Engineering · Frontier Labs

Code execution with MCP: Building more efficient agents

Direct tool calls consume context for each definition and result. Agents scale better by writing code to call tools instead. Here's how it works with MCP.