hamming_distance
Calculate the Hamming distance between two equal-length strings to count positions where corresponding characters differ.
Instructions
Calculate Hamming distance between two equal-length strings.
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_a": "<text_a>",
"text_b": "<text_b>"
},
"name": "hamming_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text_a | Yes | First string. | |
| text_b | Yes | Second string (must be same length). |