Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

String similarity: Levenshtein, Jaro-Winkler distance and Soundex/Metaphone phonetic keys

string_similarity
Read-onlyIdempotent

String similarity: compare two strings and return every standard measure in one call: Levenshtein and Damerau-Levenshtein edit distance, normalised similarity, Jaro and Jaro-Winkler, longest common subsequence, Dice coefficient on character bigrams, and the Soundex, Metaphone and NYSIIS phonetic keys of each string. Optional case folding, accent folding and whitespace normalisation before comparison. Price: $0.05 per successful call, paid over x402 (USDC on Base).

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": "string_similarity"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesFirst string, at most 512 characters. Accepted: at most 512 characters.
bYesSecond string, at most 512 characters. Accepted: at most 512 characters.
foldNoComma-separated folds before comparing: case, accents, space, punct. Default case. Accepted: comma-separated subset of case, accents, space, punct.
onlyNoComma-separated measure names to compute: levenshtein, damerau_levenshtein, normalised_similarity, jaro, jaro_winkler, lcs_length, dice, phonetic (all three keys), soundex, metaphone, nysiis. Default all. Accepted: comma-separated subset of levenshtein, damerau_levenshtein, normalised_similarity, jaro, jaro_winkler, lcs_length, dice, phonetic, soundex, metaphone, nysiis.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent and closed-world behaviour, and the description adds genuinely new context: all measures are returned in a single call, normalisation is applied before comparison, and each successful call costs $0.05 paid over x402 (USDC on Base), which signals a payment/auth precondition plus that failed calls are apparently not charged. It stops short of describing the response envelope or the scale of the normalised values, which matters since no output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: the core action comes first and the long measure list is the substance of the tool rather than filler. The final pricing sentence is short and earns its place; the only cost is a slightly run-on enumeration that delays the normalisation and pricing details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and does so reasonably by naming every computed measure, though it never states value ranges (e.g. 0-1 similarity vs integer distances) or the result shape. Parameters are fully covered in the schema and the safety/payment profile is disclosed, so the definition is sufficient for correct invocation despite the thin return semantics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description nominally adds meaning ("optional case folding, accent folding and whitespace normalisation"), but it frames folding as optional while the schema makes `case` the default, and it omits the `punct` fold and the `only` selector entirely, so it does not fully mirror the parameter surface.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("compare two strings") and then enumerates exactly what it computes: Levenshtein, Damerau-Levenshtein, normalised similarity, Jaro/Jaro-Winkler, LCS, Dice on bigrams, and Soundex/Metaphone/NYSIIS keys. That enumeration clearly separates it from neighbouring utilities such as semver_compare or unicode_confusables_check without the agent needing to open the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the agent can infer "use this when you need a similarity/distance metric between two strings," and the mention of pre-comparison folding hints at normalisation-sensitive cases. However, there is no explicit when-not guidance, no advice on picking a subset of measures via `only`, and no routing to or away from any sibling tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.