# MCP Tool Diet: Cut Per-Turn Token Tax & Tool Collisions

> Audits MCP server configs, pasted or on disk, for per-turn token tax, tool collisions and risky launches, then hands back a lean diff built from CLI replacements and tool allowlists.

MCP Tool Diet: Cut Per-Turn Token Tax & Tool Collisions is a paid AI agent skill on Agensi by Badung, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $3.99 (one-time purchase)
- Creator: [Badung](https://www.agensi.io/creators/badung)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.1
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mcp-tool-diet-cut-per-turn-token-tax-tool-collisions
- Tags: llm-ops, ai-agents, prompt-engineering, mcp, claude-code, cursor, token-optimization

## About this skill

### Your MCP setup is charging rent on every turn

Every enabled MCP server injects its full tool list — names, descriptions and JSON `inputSchema` objects — into the prompt before you type a single word. Six to ten connected servers routinely cost **12,000–35,000 tokens per turn**, often 10–20% of the active window. That is context you never get back, and it is why long sessions hit compaction early.

It also makes agents pick the wrong tool. When three servers expose `search`, `fetch` or `read_file`, the agent spends turns guessing which one you meant.

**MCP Tool Diet** audits your real configuration files, shows which servers are charging the most, and returns a lean diff you can apply in one paste.

### What it does

- **Token tax audit** — inventories every server in `.mcp.json`, `~/.claude.json`, `.cursor/mcp.json`, `claude_desktop_config.json` and `~/.codex/config.toml`, then prices the per-turn schema cost of each one.
- **Tool collision detection** — flags overlapping verbs (`search`, `fetch`, `read_file`, `query`) across servers, the most common cause of wrong-tool calls.
- **CLI replacement** — finds servers your shell already covers (`gh`, `git`, `psql`, `sqlite3`, native file tools) and scores them `REPLACE`: zero startup tokens, same capability.
- **Allowlist slimming** — when you need 2 tools out of 25, proposes `enabled_tools` (Codex) or a scoped tool permission set (Claude Code) instead of throwing the server away.
- **Scope demotion** — moves Figma, Sentry, Stripe, Notion or Kubernetes servers out of global always-on config into project-local or on-demand profiles.
- **Supply-chain hygiene** — unpinned `npx -y` launches, deprecated `sse` transports, and plaintext secrets inside `env` blocks, reported masked and never echoed.

### How it works

1. **Inventory** every config scope — project, user home, host-specific file — and table each server with its transport, launch command, secret hygiene and filter status.
2. **Classify** each server as `KEEP`, `SLIM`, `DEMOTE` or `REPLACE` against four criteria: per-turn tax, native/CLI overlap, allowlist opportunity, and scope.
3. **Report** a summary banner (servers, estimated tax, projected reduction), a server-by-server verdict table, and `[TAX]` / `[HYGIENE]` findings.
4. **Diff** the exact patched JSON or TOML for your host, plus the CLI equivalent for anything replaced.
5. **Stop at the approval gate.** No config file is rewritten until you have seen the diff and said which parts to apply.

### Why not just ask the agent yourself

A general agent treats "more servers" as "more capable" and has no reason to price the schemas it is carrying. It will read your config, summarize it, and miss the arithmetic. This skill is a fixed policy: measure first, classify against explicit criteria, label every estimate as an estimate, redact every secret, and hand over a diff instead of editing your files.

### Who it is for

- Claude Code, Codex CLI, Cursor, Claude Desktop and any other SKILL.md-compatible agent
- Developers whose sessions compact before the task is done
- Anyone collecting MCP servers faster than they retire them
- Teams auditing shared config files for hardcoded keys

### What's inside

A single `SKILL.md` — the workflow, the classification criteria, the output format, and two worked examples. No dependencies, no API keys, no network calls.

### Honest limitations

Token figures are **estimates** (`chars / 4`, or ~350–650 tokens per tool schema) unless a schema manifest can be measured, and measured counts are labelled as measured. Remote servers without a manifest cannot be priced precisely. The skill reads configuration files; it does not launch uncached servers or scan your network to count tools.

### A second session, start to finish

**You:** "Cursor keeps picking the wrong search tool. I have brave-search, fetch and firecrawl connected."

**What comes back:** `.cursor/mcp.json` — 3 servers, 14 tools, ~est. 6,300 tokens per turn. `brave_web_search` and `firecrawl_search` expose near-identical descriptions, and `fetch` overlaps `firecrawl_scrape` — that overlap, not the model, is where the wrong-tool calls come from.

| Server | Tools | Verdict | Reason |
| --- | --- | --- | --- |
| `firecrawl` | 6 | **SLIM** | Keep `firecrawl_scrape` only, for JS-rendered pages |
| `brave-search` | 2 | **KEEP** | Fast keyword search |
| `fetch` | 1 | **REPLACE** | Redundant with `firecrawl_scrape` and `curl` |

**Result:** 3 overlapping servers (14 tools) become 2 non-overlapping ones, the search/scrape ambiguity is gone, and ~2,800 tokens per turn come back.

**Next:** approve the allowlist and the skill writes the patched `.cursor/mcp.json` — or hands you the snippet to paste yourself.

### Pasted config, or no config at all

You should not have to dig up your files before you get an answer. Paste a `.mcp.json`, `~/.codex/config.toml` or `claude_desktop_config.json` snippet straight into the chat and it is audited in place, with no file paths involved.

If there is nothing to read, it does not stop to ask for your config. You still get a complete Token Tax & Verdict matrix for the servers most people run (`github`, `filesystem`, `postgres`, `notion`, `sentry`, `firecrawl`, `context7`), a lean template with `enabled_tools` allowlists, and the exact shell command that dumps your local MCP configs — send that dump back whenever you like and the same section becomes a diff tailored to your machine.

Nothing waits for a second message either: a verdict table and summary banner land on the first reply, every number is labelled `~est.` unless it can be measured, every secret stays masked, and no config file is written until you approve the diff.

## Requires

Nothing to install: no dependencies, no API keys, no network calls. Drop SKILL.md into your agent's skills folder. It reads your MCP configs and shows a diff — nothing is edited until you approve it.

## Known limitations

Token figures are estimates (chars / 4, or ~350-650 tokens per tool schema) unless a manifest can be measured, and measured counts are labelled. Remote servers without a manifest cannot be priced precisely. It will not launch uncached npx/uvx servers just to count tools, and it never edits a config file before you approve the diff. It audits config files the agent can read, or a config you paste into the chat; with neither, it returns the reference matrix, the lean template and the dump command rather than asking for your files.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the MCP Tool Diet: Cut Per-Turn Token Tax & Tool Collisions skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does MCP Tool Diet actually improve my agent's performance?

Every enabled MCP server injects its full tool schemas into the prompt on every turn. Six to ten servers typically cost 12,000–35,000 tokens before you type a word, so sessions compact earlier and the agent gets slower and less accurate. The audit prices each server, replaces the ones a CLI already covers, and gives that window space back — often 70–85% of the MCP overhead.

### Which agents and IDEs does it work with?

It follows the SKILL.md standard, so Claude Code, Codex CLI, Cursor, Claude Desktop, VS Code Copilot, Gemini CLI and other compatible agents can run it. It knows each host's config file by name (.mcp.json, ~/.claude.json, .cursor/mcp.json, claude_desktop_config.json, ~/.codex/config.toml) and audits any other MCP server list you point it at.

### Will it change or delete my MCP configuration files?

Never without your approval. It reads your configs, prints the exact patched JSON or TOML, and stops. You say which parts to apply — or copy the snippet yourself — and only then is a file written. Nothing is deleted silently.

### Does it catch security problems like exposed API keys?

Yes. The hygiene pass flags plaintext API keys and connection strings inside env blocks (reported masked, never echoed), unpinned npx -y packages that cannot be verified, and deprecated sse transports. It does not execute uncached packages just to count their tools.

### What exactly do I get for $3.99?

One SKILL.md containing the five-step workflow, the KEEP / SLIM / DEMOTE / REPLACE criteria, the report format, the secret-handling rules and two worked examples. No dependencies, no scripts, no API keys. It is a one-time purchase and updates to the skill are included.

### What are the limitations?

Token figures are estimates (chars / 4, or ~350–650 tokens per tool schema) unless a manifest can be measured, and measured counts are labelled as measured. Remote servers without a manifest cannot be priced exactly. It only audits config files your agent can read.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
