fuzzy_match
Score candidate strings against a query using the Sorensen-Dice coefficient over character bigrams, returning best matches in descending order. Use for deduplication, record linkage, typo-tolerant lookup.
Instructions
Score every candidate string against a query using the Sorensen-Dice coefficient over character bigrams and return the best matches in descending order. Deterministic. Useful for deduplication, record linkage, typo-tolerant lookup and confirming which of several candidates was meant.
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": {
"needle": "<needle>",
"haystack": "<haystack>"
},
"name": "fuzzy_match"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | How many results (default 5) | |
| needle | Yes | The string to match against the list | |
| haystack | Yes | Candidate strings | |
| threshold | No | Minimum score to include (default 0) |