calculate_text_similarity
Compare two text strings and return a similarity score using Levenshtein or Jaccard algorithms.
Instructions
Calculate similarity between two text 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": {
"text1": "<text1>",
"text2": "<text2>"
},
"name": "calculate_text_similarity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text1 | Yes | First text string | |
| text2 | Yes | Second text string | |
| method | No | Algorithm - "levenshtein" or "jaccard" (default: levenshtein) | levenshtein |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |