tokscale_cost_analysis
Calculate per-developer and per-model AI coding spend from tokscale data. Get per-client and per-model cost breakdowns to identify costly tools and value per token.
Instructions
Cost analysis per developer per model from your local tokscale data. Returns a per-client × per-model cost breakdown with cost_per_million_tokens, cost_per_message, and share_cost. Includes a per-client cost rollup and totals: total_cost, total_tokens, avg_cost_per_million_tokens, most_expensive_model, cheapest_per_token. Use this to see exactly where your AI spend goes — which tools and models cost the most and which give the best value per token. Do NOT use this for market share — use tokscale_market_share for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present if tokscale is unavailable | |
| totals | No | Aggregate cost totals and extremes | |
| entries | No | Per-client×per-model cost rows sorted by cost desc | |
| client_rollup | No | Per-client cost summary with share_cost and cost_per_million_tokens |