Check whether two strings are visually confusable
compare_stringsCompare two strings (usernames, domains, brand or command names) with Unicode UTS #39 skeletons and say whether they can look the same to a reader: identical, confusable, confusable_ignoring_case or distinct. Also returns each string's scripts, whether it mixes scripts, and its skeleton. Up to 1024 code points each. Pure text analysis, nothing stored. Read-only. Same engine as POST /api/compare.
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": "compare_strings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First string, e.g. the trusted name "paypal". | |
| b | Yes | Second string, e.g. the name you received. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| verdict | Yes | ||
| version | Yes | ||
| identical | Yes | ||
| confusable | Yes | ||
| explanation | No | ||
| confusableIgnoringCase | No |