Text Similarity
text_similarityDocument similarity and near-duplicate detection: compare two texts (a, b) or cluster up to 200 texts. Metrics: TF-IDF cosine on stemmed content words, word Jaccard, k-word shingle Jaccard and containment, 64-bit SimHash with Hamming distance, and character edit ratio for short texts, plus a verdict (identical / near-duplicate / similar / related / different). Batch mode returns the most similar pairs and duplicate clusters. Offline, deterministic. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/text-similarity
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "text_similarity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | First text | |
| b | No | Second text | |
| texts | No | Batch mode: texts to compare pairwise and cluster | |
| minScore | No | Batch: only report pairs with cosine >= this | |
| threshold | No | Shingle Jaccard needed to call two texts duplicates (batch clusters) | |
| shingleSize | No | Words per shingle |