400+ tool calls per turn: AIOps platform uses Monty's 1.2ms Rust sandbox to keep MCP output out of context

samuelcolvin · x · 2026-10-29

Monty, Pydantic's minimal secure Python sandbox written in Rust for running LLM-generated code, is proving itself in production. It ships as OSS Monty (MIT-licensed Python 3.14 sandbox package) and Full Monty (commercial WebSocket service).

Latency is the headline: fresh sandbox + agent run costs 1.2ms for OSS Monty and 7ms for Full Monty, vs 200ms for WASI/wasmtime, 900ms for local Docker, 1900ms for sandboxing services, and 2700ms for Pyodide in Deno — roughly two orders of magnitude below container-based options.

Real-world validation: an AIOps platform integrating thousands of third-party MCP servers reports tasks that make 400+ tool calls per turn. With Monty's code mode, agents write sandboxed code to transform and filter tool outputs, preventing that flood from hitting the model's context directly.

Original post →

More from coding & agent

coding & agent channel →