TAN TokenDiet
v1.4.0Audit and compact MCP tool schemas & AGENTS.md to cut LLM token burn and fix prompt-cache misses.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
audit_agent_context
Audit AGENTS.md, CLAUDE.md, GEMINI.md, SKILL.md, or system prompt text for token bloat, prompt-cache busters, and monthly LLM cost.
| Parameter | Type | Description |
|---|---|---|
text * | string | Raw markdown or prompt text to audit. |
cache_hit_rate | number | |
cache_write_ttl | string | |
model_id | string | |
source | string | |
team_size | integer | |
turns_per_day | integer |
audit_mcp_schema
Audit an MCP tools JSON array or mcp.json payload across 12 diagnostic rules for token burn and 5m/1h prompt-cache safety.
| Parameter | Type | Description |
|---|---|---|
payload * | MCP tools array, {tools:[...]} object, or JSON string. | |
cache_hit_rate | number | |
cache_write_ttl | string | |
model_id | string | |
source | string | |
team_size | integer | |
turns_per_day | integer |
estimate_context_cost
Compare monthly USD and GBP input token burn across frontier LLM models with prompt-cache hit and TTL write multipliers.
| Parameter | Type | Description |
|---|---|---|
tokens_per_turn * | integer | |
cache_hit_rate | number | |
cache_write_ttl | string | |
team_size | integer | |
turns_per_day | integer |
minify_mcp_schema
Compact MCP tool schemas deterministically with 100% JSON Schema structural invariant verification and sorted keys.
| Parameter | Type | Description |
|---|---|---|
payload * | MCP tools array, {tools:[...]} object, or JSON string. | |
aggressive | boolean | |
sort_tools | boolean |