Replacing all MCP tools with one JS-executing tool halved tokens and improved evals

dosco · x · 2026-12-01

Kaspars Dancis reports that replacing all MCP tools with a single "run" tool that lets agents execute JavaScript cut token usage by half, made the agent faster, and improved eval scores. dosco notes this is exactly the RLM setup his ax-agent has used from the start:

A reusable agent-engineering trick: let the model orchestrate functions via code instead of stuffing dozens of tool schemas into context.

Original post →

More from coding & agent

coding & agent channel →