Skip to main content
Glama

mechacut

agent_tooltrim

Which MCP tools to DISCONNECT to fit a token budget, and the exact re-count after: paste one tools/list, optionally the calls_30d your logs measured, and the budget (tokens, or a percent of the window — the published 10% auto-load rule). Drops fall in CLOSED classes in exact fractions, never floats: IDLE_30J first (paying every turn, never used — the rule practitioners publish from their own session logs), then worst cost-per-call, then NEVER what was not measured: UNKNOWN tools are cut last and flagged UNKNOWN_CUTS. keep protects names; a keep floor that misses the budget alone returns STILL_OVER with the overage chiffré, not advice. The re-count is the sister's own arithmetic — ceil of the survivor chars /4, the published floor estimator quoted — so pasting the survivors into /agent/context-tax MUST return the identical number; global vs sum-of-ceilings travel together and the divergence is stated (b101/b104 law). Ties: chars desc, then name ascending (declared). Verdicts CLOSE: FITS_AS_IS (nothing to cut — savings are zero, and the tool says so), TRIMMED_FITS, STILL_OVER. Saving repeats EVERY turn (the list is not paid once); dollars only if you pass your own decimal price — no stored price table. Ceiling 5000 tools, duplicate/empty names refused (shadowing, family); top 100 plan rows, the rest folded. Never fetches, never reads your logs: pasted listing only. Sisters: context-tax says HOW MUCH, cost-diff says the price in between — this one says WHAT TO CUT. Free under 32 KB, x402 above.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tools": "<tools>"
    },
    "name": "agent_tooltrim"
  }
}

Input Schema

NameRequiredDescriptionDefault
keepNotool names you refuse to disconnect; each must appear in tools
toolsYesthe pasted tools/list array (same shape /agent/context-tax measures)
turnsNoturns the saved listing would have ridden (default 1)
usageNotool name -> calls over the last 30 days, from YOUR logs; absent name = UNKNOWN class, never ranked ahead of measured idle
budgetNotokens the definitions may occupy — exclusive with budget_pct
windowNoyour context window in tokens, default 200000
budget_pctNobudget as a percent of the window, 1..100 (e.g. 10 — the published auto-load rule); floored, exclusive with budget
input_per_mtokNoYOUR price per million input tokens, decimal string (e.g. "2") — an argument, never a stored table

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description carries the full burden and does disclose a lot: verdicts (FITS_AS_IS, TRIMMED_FITS, STILL_OVER), flagging of UNKNOWN_CUTS, refusal of duplicate/empty names, a 5000-tool ceiling, 100-row plan folding, tie-break ordering, and the free-under-32KB/x402 pricing split. The disclosure is dense with in-group jargon ('chiffré', 'b101/b104 law', 'the sister's own arithmetic') that obscures rather than clarifies mechanism.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is genuinely front-loaded, but the body is a dense run-on packed with parentheticals and internal shorthand that a new agent cannot parse ('b101/b104 law', 'chiffré', 'the published floor estimator quoted'). The information is mostly load-bearing, yet it is delivered as a wall of text rather than ordered clauses.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with no output schema and no annotations, the definition covers a lot of the result surface through its named verdicts, flags, and re-count arithmetic. The exact shape of the returned plan rows remains undefined, which is the main residual gap before invoking.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline applies. The description adds some meaning beyond the schema — that a keep floor alone can return STILL_OVER, that keep names are protected, that input_per_mtok is an argument rather than a stored table — but most parameter behavior (usage mapping to UNKNOWN, budget vs budget_pct exclusivity) is already spelled out in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource up front — which MCP tools to DISCONNECT for a token budget, plus the re-count afterward — and explicitly separates itself from siblings ('context-tax says HOW MUCH, cost-diff says the price in between — this one says WHAT TO CUT'). An agent can distinguish it from agent_contexttax without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete operating context: paste one tools/list, optionally supply calls_30d from your logs and a budget in tokens or percent. The sister-tool sentence routes measurement to context-tax and pricing to cost-diff. It stops short of an explicit 'do not use this if' statement, but the routing conditions are clear enough.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.