Logo van Tool Budget Audit

Tool Budget Audit

Organisatie
MiniMax-AI
tool-budget-audit

Audit how much context an agent's tools consume, through tool definitions and tool results, and decide whether to trim the catalog, add tool search, or add programmatic tool calling. Use when an agent has many tools or MCP servers, picks the wrong tools, or burns context on tool output.

Overzicht

UitgeverMiniMax-AI
Repositorymcode-stack
Skillnaamtool-budget-audit
Sterren
464
Forks
36
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door MiniMax-AI op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Tool Budget Audit in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/tool-budget-audit
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiniMax-AI/mcode-stack.git /tmp/mcode-stack
mkdir -p .claude/skills
cp -r /tmp/mcode-stack/stacks/ronny/skills/tool-budget-audit .claude/skills/tool-budget-audit
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Tool Budget Audit in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Tool Budget Audit automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Tool Budget Audit niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Tool Budget Audit

Tools cost context in two ways, plus one side effect:

  • Definitions. Every tool's name, description and parameter schema sits in context whether or not it is used this turn.
  • Intermediate results. Every call puts its full output back into the conversation, and every round trip is another full model request.
  • Side effect: wrong picks. Similar names and vague descriptions make the model choose the wrong tool or pass wrong arguments.

Tool search mainly saves the first cost. Programmatic tool calling (the model writes a small program that calls tools) mainly saves the second.

Companion to MCode Engineering Notes 02, "Too many tools will eat your context". Plain-text checklist: checklists/tool-budget.md.

1. Measure first

Work from the target project's code and real requests, not from guesses:

  1. List every tool exposed to the model, grouped by source (built-in, each MCP server, plugins).
  2. Estimate the token size of each tool definition with a tokenizer and sum it. Say which tokenizer you used; it is a relative measure.
  3. For one or two representative tasks, record how many tool calls were made, how many model requests that caused, and how large the tool results were.
  4. Note which tools are used almost every turn and which are rarely used.

Report the numbers you measured. If you cannot measure something, say so instead of estimating.

2. Step 0 - subtract

  • Merge by user intent. Do not map APIs one to one. "List issues", "filter issues by label" and "filter by author" can be one tool with parameters.
  • Make names and descriptions distinguishable. Two tools whose descriptions read alike will be confused. State the return format.
  • Group. Put tools into namespaces by domain, keeping each group small.
  • Decide what stays resident. Read, edit, search and run-command style tools used nearly every turn should always be loaded.

3. Step 1 - deferred loading and tool search

Consider it when there are many tools and most are rarely used.

  • Keep core high-frequency tools resident; make low-frequency tools searchable.
  • If a search miss means a tool "does not exist", check descriptions again: vague descriptions break recall.
  • Test tool search recall on your own tool set. Results on clean benchmarks do not transfer to messy real catalogs.
  • Tools whose catalog must be fetched over the network every turn can slow the first token. Consider keeping them resident instead.
  • When debugging, check what the model had actually seen at that moment, not just what the request listed.

4. Step 2 - programmatic tool calling

Consider it when there is a lot of data to filter or aggregate, three or more dependent calls, or batch operations that could run in parallel.

  • Actually move tools into the program. Offering a code tool next to all the normal tools tends to go unused.
  • Keep at top level: tools that interact with the user, change session state, need their result read before deciding the next step (tool search, loading a skill), browser and publishing tools, and spawning subagents.
  • Calls from inside the program must go through the same validation, hooks, permission prompts and UI as direct calls.
  • Tool failures should return an error result, not throw, so one failure does not discard the whole program.
  • Prefer structured tool output so the program can pick the fields it needs. A program that returns raw output saves nothing.
  • Search the codebase for logic keyed on tool names (reminders, counters, analytics). It silently stops firing once a tool moves into the program.

5. Decide

BottleneckFirst move
Too many or too similar toolsSubtract, merge, rename, group
Definitions take too much contextTool search
Results take too much context, too many round tripsProgrammatic tool calling
Arguments often wrongBetter descriptions and examples

The steps stack. A clean catalog makes tool search work; working tool search makes programmatic calling work. Run an end-to-end eval before and after each step and look at score, request count and tokens together (see harness-experiment).

Output

A short report: measured numbers, the main bottleneck, the recommended next step with concrete tool names, and what to measure afterwards.

Veelgestelde vragen

Wat doet de AI-skill Tool Budget Audit?

Audit how much context an agent's tools consume, through tool definitions and tool results, and decide whether to trim the catalog, add tool search, or add programmatic tool calling. Use when an agent has many tools or MCP servers, picks the wrong tools, or burns context on tool output.

Waarom Tool Budget Audit gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Tool Budget Audit bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Tool Budget Audit in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/tool-budget-audit. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Tool Budget Audit gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Tool Budget Audit gebruiken?

Zoveel als je wilt. Je kunt Tool Budget Audit gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Tool Budget Audit gratis?

Ja. Deze skill is door MiniMax-AI op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇