word_similarity
Measure similarity between two strings using Jaccard, cosine, or Dice algorithms for word or phrase comparison.
Instructions
Calculate string similarity between two words or phrases.
Use this to compare strings using various algorithms — Jaccard index,
cosine similarity, or Sørensen-Dice coefficient.
Parameters:
a — The first string to compare.
b — The second string to compare.
method — Similarity method: "jaccard" (default), "cosine", or "dice".
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": {
"a": "<a>",
"b": "<b>"
},
"name": "word_similarity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| method | No | jaccard |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |