MindRoom halves AI tool schema size while preserving tested accuracy
Key point
MindRoom cut its built-in tool-schema size by 50%; alongside a system-prompt cleanup, its representative agent’s fixed prefix fell 57%, while selected evaluations held or improved.
Details
- MindRoom redesigned its 155 built-in toolkits, reducing default functions from 729 to 298 and total schema size by 50%. Combined with a separate system-prompt cleanup, the representative Claude agent fixture’s fixed per-turn prefix fell 57%, and its tool list shrank from 23 functions to 9.
- The design groups related operations under an
actionargument, while keeping read and write functions separate where function-level permissions matter. - In a controlled GitHub benchmark covering the same 39 operations, a five-function schema matched the 39-function version at 93/100 first-try successes, with about 2.0k versus 5.7k average prompt tokens. The two- and one-function versions scored 83 and 79.
- In a separate search-and-web evaluation, four models’ combined pass count rose from 58/64 to 64/64 as prompt tokens fell 23.4%. These evaluations covered selected cases, not all 155 toolkits.
Schema design
- Changing how optional Python parameters defaulting to
Noneare represented in JSON Schema cut cataloganyOfentries by 71%; an 80-call test scored 40/40 both before and after. - Moving repeated helper-argument explanations out of each function and into the system prompt cut that overhead by nearly three-quarters. In a separate schema-size measurement, the GitHub schema went from 6,670 tokens across 39 functions to 1,658 across five.
Evaluation
- The author argues that frontier models can hide schema problems: the strongest model stayed at 95–100% across the GitHub schema shapes, while more aggressive consolidation exposed wrong or missing arguments in the broader benchmark.
Costs and maintenance
- In an analysis of 345,924 requests over seven days, cache reads accounted for 91.8% of tokens, while input and cache tokens together accounted for 81% of spending. Schema reductions do not halve total costs because conversation history and tool outputs often dominate.
- Tool renames can break existing approval configurations. MindRoom rejects retired tool names in approval configs at startup and prints replacement names, avoiding silent authorization of renamed write functions.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.