Learn

Does compressing MCP tool results save money?

Quick answer. In a two-tool Git task, Tashan cut GPT-4.1 mini API cost by 23.6% at standard rates, from $0.0023140 to $0.0017684. With simple JSON minification the task cost $0.0019236. All three runs returned the correct commit and every changed file.

What did the whole agent task cost?

On 29 November 2026 we asked the model to find a commit by subject and list every changed file. It called the Git history tool, read the matching commit’s changed paths and returned its answer.

Each run took three model requests and two tool calls. All three included cache hits. The totals include cached input, fresh input and output across the complete run.

At this workload and rate, 10,998 comparable tasks per month cover the $6 fee. If you already minify JSON, the added saving was $0.0001552 per task, so break-even rises to 38,660 tasks. Per-request usage.

This was one run per format on public repository data. It measures one workflow and does not establish a typical customer saving.

What did each lookup cost?

Tashan ran this experiment on 2026-11-29. Each request asked for the exact date and subject of one commit in a public Git history.

The same prompt, records, model snapshot and grading rule were used within each group. All seven answers matched both fields.

Cost of one completed lookup in USD at standard API rates
RecordsTool resultInput tokensOutput tokensCost (USD)Exact answer
1Minified JSON129340.0001060Yes
1Tashan table option129340.0001060Yes
20Minified JSON1,074320.0004808Yes
20Tashan table option984320.0004448Yes
60Indented JSON3,958350.0016392Yes
60Whitespace removed3,184350.0013296Yes
60Tashan table option2,894350.0012136Yes

How much can one tool response save?

At $0.0004256 saved per 60-record lookup, 14,098 similar lookups in a month cover $6.

If your tool already removes JSON whitespace, Tashan saved $0.0001160 more per lookup. That takes 51,725 such lookups to cover $6. A single-record lookup yielded no savings.

For your own workflow, compare the total API cost of completing the same task with and without compression. Count cached input, output, extra calls and retries, check the final answer, then subtract the subscription fee.

With a fixed-price plan, fewer tokens can extend your usage allowance while the monthly bill stays the same.

How can I reproduce the comparison?

These were single-completion lookups with a supplied tool result. The first two inputs were already minified.

The largest was indented and also tested with whitespace removed. The opt-in Tashan format stores repeated column names once. Use your own model and workflow to check the result.

The seven single-lookup requests had zero cached tokens. The agent task above used cached input. We priced those counts at $0.40, $0.10 and $1.60 per million respectively.

OpenAI model rates · Download the measurements · Run the benchmark.

To check one of your own JSON results locally, try the token counter.

See the ranked Index ›

tashan Pro$6/mo

This article and every score it links to are free, no account. Check your own config free too. Pro adds the series behind each row, and names a replacement when one is dying.

Start a 7-day trial ›