compare
Compute token count reduction, compression ratio, and cost savings between original and distilled text to evaluate optimization effectiveness.
Instructions
Generate comparison metrics (token count reduction, compression ratio, cost savings) between uncompressed and distilled text formats.
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": {
"original": "<original>",
"distilled": "<distilled>"
},
"name": "compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original | Yes | ||
| distilled | Yes | ||
| model | No | gpt-4o |