Semantic Similarity
semantic_similarityMeasures semantic similarity between two texts by returning their cosine similarity score, so you can compare meaning and detect near-duplicate content.
Instructions
Return the cosine similarity (-1 to 1) between two locally embedded texts.
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": "semantic_similarity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text_a | Yes | ||
| text_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||