calculate_entropy
Compute the Shannon entropy of a string to quantify its randomness. Useful for cryptography, data analysis, and compression tasks.
Instructions
Calculate Shannon entropy of a string (measure of randomness/information content).
Parameters:
text — String to calculate entropy of.
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": {
"text": "<text>"
},
"name": "calculate_entropy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |