agent_contexttax
What does YOUR pasted MCP tools/list cost the context window. Exact canonical chars and bytes per tool; token_estimate = ceil(chars/4), the published floor estimator quoted with its error declared (median public server ~4.8k tokens, heaviest ~241k — larger than a 200k window by itself). Split by field — name, title, description, inputSchema, outputSchema, annotations, execution — plus pasted unknown keys NAMED (a pasted 'instructions' key is text the server makes you pay for: the tool-poisoning class now has a bill). Counterfactuals computed, not argued: names-only (the tool-search claim, 'seul le NOM est chargé') with its multiplier, and drop-descriptions (r/mcp: the cost lives in descriptions, not tool counts). Charged PER TURN (Irolla 2026: 'the tool list is not paid once'): estimate x turns; dollars ONLY if you pass your own price as a decimal-string argument — no stored model-price table. Window verdicts CLOSED FITS/OVERFLOWS_WINDOW against your window argument (default 200000, named as the cited scale, not a vendor ceiling). Flag SINGLE_TOOL_DOMINANT when one tool carries >= half the chars. Ranks chars desc, ties = pasted order; top 100 detailed, the rest folded into a named aggregate. Duplicate or empty tool names refused (spec: unique per server — shadowing); ceiling 5000 tools, family threshold with mcp-surface. Never fetches, never launches the server: pasted listing only. Sisters: /agent/mcp-audit says REJECTED, /agent/mcp-surface says CHANGED — this one says HOW MUCH. Free under 32 KB, x402 above: a 529 KB tools/list is exactly what this tool measures.
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_contexttax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tools | Yes | the pasted tools/list array, in the order the server returned it | |
| turns | No | turns the definitions ride (charged every turn), default 1 | |
| window | No | your context window in tokens, default 200000 (the scale every cited run measures against) | |
| input_per_mtok | No | YOUR price per million input tokens, decimal string (e.g. "2" for $2/M) — an argument, never a stored table |