generate_hash
Generate a cryptographic hash of text using MD5 or SHA algorithms (SHA-1 through SHA-512), returning the digest in hex, base64, or both.
Instructions
Hash text using a cryptographic hash function.
Supports MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512. Returns the digest in hex, base64, or both.
Args: text: The string to hash algorithm: Hash function — md5 | sha1 | sha224 | sha256 | sha384 | sha512 (default sha256) encoding: Output format — hex | base64 | both (default hex)
Returns: dict with keys: hex and/or base64, algorithm, input_length, digest_bits, cost_usd
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": "generate_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| encoding | No | hex | |
| algorithm | No | sha256 |