calculate_metrics
Computes compression metrics and savings for JSON data, showing reduction ratios and token counts.
Instructions
Calculate detailed compression metrics and savings
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": {
"json_data": "<json_data>"
},
"name": "calculate_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_data | Yes | Original JSON data | |
| level | No | Compression level to test |