Bas Nijholt trimmed the default function count across MindRoom’s 155 built-in toolkits from 729 to 298 and says the size of the tool schemas fell by 50%. MindRoom is his open-source agent project. He described the work on his personal blog on 28 November 2026, and every figure below is his own measurement.
The target was a cost most teams overlook. Each request an agent sends to a model carries a block of tool schemas, the descriptions of every function the model may call. Those schemas ride along on every turn, so a bloated set is paid for again and again. Nijholt argues that converting a REST API into one tool per endpoint, a common route to an MCP server, probably wastes the most tokens of any way to hand a model its tools.
His fix was to group related verbs under one function with an action argument. Email is his example: separate read, write, draft, star, and archive functions each repeat arguments like recipient and subject, while a single email tool pays for them once. Across the catalog, services such as GitHub, Gmail, and Docker went from twenty to forty functions each to far fewer. By his count the GitHub schema dropped from 6,670 tokens to 1,658, and the calculator went from eight functions to one. The rebuild became possible after he removed the Agno framework underneath MindRoom, which had dictated the one-function-per-endpoint layout.
He did not go all the way to one tool per service. Permissions and approvals attach to the function, so a single tool that both reads and writes cannot be locked down to read-only without relying on a prompt. For GitHub’s 39 actions he settled on five functions: two for reading and three for writing, split by risk. Repository deletion sits in its own write tier, apart from issue comments.
The benchmark behind that choice is the most useful part of the post. Nijholt ran 400 trials of 20 GitHub tasks across five models, four of them small open-weight models and one a stronger hosted reference. The five-function design and the 39-function design each passed 93 of 100 first-try attempts, but the five-function schema used about a third of the tokens (1,488 against 4,480). Squeezing down to two functions saved only a few hundred more tokens and dropped the pass count to 83. One mega-tool scored 79. Wrong-operation calls doubled from four to eight at two functions. The strongest model stayed at 95 to 100% on every shape, which is why he tests on weaker ones: a top model hides schema flaws.
Two smaller changes added to the savings. Removing a redundant null option from optional parameters cut the schema’s anyOf blocks by 71%, with a five-model check scoring 40 of 40 before and after. Moving two repeated helper-argument descriptions into the system prompt trimmed that cost by nearly 75%. Combined with a tighter system prompt, the prefix a representative agent sends each turn fell 57%, and its toolset went from 23 functions down to 9.
Nijholt also addresses the objection that prompt caching makes this moot. Across 345,924 of his own requests over seven days, 91.8% of tokens were cache reads, yet input and cache charges still made up 81% of estimated spend. He is careful to add that smaller schemas will not halve a bill. In long coding sessions, history dominates the prefix.
The limits are his own to state. He counted tokens for all 155 toolkits but tested accuracy only on GitHub, the search and web group, and the null change. Renaming also carries a risk: an approval rule tied to an old write function could miss its renamed successor, so he added a startup check that rejects retired names.
For anyone shipping an MCP server this quarter, the practical test is cheap: count the tokens your schemas cost per turn, then run the same tasks on the weakest model you would actually deploy before merging any functions.
Reported by Bas Nijholt on his personal blog (nijho.lt), 28 November 2026.