Skip to main content
Glama

Duo Data Utilities: IBAN, ISIN, VAT & Tax ID, Barcode, Timezone, Geo APIs

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).

Input Schema

TableJSON 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. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world), so the description's contributions are the ones that matter here: the $0.05 per successful call price, the x402/USDC-on-Base payment mechanism, and the fact that folds are applied *before* comparison. It does not describe the output shape or error behavior on over-length input, which keeps it below 5.

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?

Front-loaded with the core action, then the metrics, then preprocessing, then price — a sensible priority order. The metric list is long but each name is load-bearing for selecting this tool, and the only slack is the somewhat dense enumeration.

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?

For a pure computation tool with no output schema, the description lists every measure returned so the agent knows the response contents, plus cost before committing to a paid call. Only the result format and input-validation failure behavior are left unspecified, which is a minor gap for a deterministic calculator.

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 the schema already documents all four parameters including the full 'fold' and 'only' value lists. The description adds only the ordering nuance that folding happens before comparison; otherwise it recapitulates what the schema already states, so the baseline 3 is correct.

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?

The description states a specific action (compare two strings) and exhaustively enumerates the resource/measures returned (Levenshtein, Damerau-Levenshtein, Jaro, Jaro-Winkler, LCS, Dice, Soundex, Metaphone, NYSIIS). No sibling tool overlaps with string similarity, so the agent can immediately tell what this does and that nothing else in the list competes.

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 only implied through the enumerated measures and preprocessing options; there is no explicit when-to-use statement, no conditions selecting it over alternatives (e.g. unicode_confusables_check or hash_generate), and no stated exclusions. Adequate for a self-evidently scoped utility, but guidance is left to inference.

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.