text_similarity
Text similarity and overlap check (offline) — Compare two texts offline: term-frequency cosine, word-set Jaccard, shingle overlap (how much of a appears word-for-word in b and vice versa), longest common word run and the shared passages. Verdict IDENTICAL / NEAR_DUPLICATE / HIGH_OVERLAP / PARTIAL_OVERLAP / SIMILAR / RELATED / DIFFERENT with a 0-100 score. Use it for duplicate detection, copy/plagiarism screening, or checking a rewrite. a and b up to 20,000 characters each; optional shingle (2-10 words, default 5). Lexical, not semantic; for meaning use /v1/ai/similarity. Price: $0.001 USDC (Base, via x402).
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": "text_similarity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | e.g. The quick brown fox jumps over the lazy dog near the river bank today. | |
| b | Yes | e.g. Today the quick brown fox jumps over the lazy dog near the old mill. |