Skip to main content
Glama

text_fuzzy_match

Read-only

Fuzzy string match and ranking — Rank up to 1000 candidate strings against a query, or compare two strings, offline. q (or a) = the string; candidates = list separated by newlines, | or commas (or b= for one comparison). Optional scorer = score (default, WRatio-style blend) | ratio | token_sort_ratio | token_set_ratio | partial_ratio | levenshtein_similarity | jaro_winkler | trigram_jaccard; top (default 10); threshold 0-100; normalize=false to keep case, accents and punctuation. Each top row gets every metric (RapidFuzz-compatible ratio, token sort, token set and Jaro-Winkler, plus Levenshtein and Damerau-OSA distances, best-window partial ratio, trigram Jaccard) and a verdict EXACT_OR_NEAR_EXACT / STRONG_MATCH / POSSIBLE_MATCH / WEAK_MATCH / NO_MATCH, plus best_match and an ambiguous flag when the top two are within 3 points. For entity resolution, dedupe, typo-tolerant lookup and matching messy names to a master list. Limit: q length x total candidate length <= 600,000. Price: $0.002 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": {
      "q": "<q>",
      "candidates": "<candidates>"
    },
    "name": "text_fuzzy_match"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesApple Inc.
candidatesYesAPPLE INC|Apple Hospitality REIT|Applied Materials Inc|Apple Incorporated

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered; the description then adds genuinely new behavioral context: a hard limit (q length x total candidate length <= 600,000) and a price ($0.002 USDC on Base via x402). It also discloses output traits (per-row metrics, verdict bands, best_match, ambiguous flag when the top two are within 3 points). The word 'offline' sits slightly awkwardly next to an x402 payment and openWorldHint=true, but that is a mild tension rather than a contradiction.

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

Conciseness3/5

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

Front-loaded with the core operation and limits, but it is a single dense paragraph with noticeable redundancy: the scorer list is restated as a near-identical metric list in the output sentence. It is information-rich rather than padded, yet the wall-of-text format and repeated enumerations cost readability.

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

Completeness5/5

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

There is no output schema, and the description compensates by describing what each result row contains — every metric, a verdict band, best_match and the ambiguous flag. Combined with the documented limits, price and mode selection, an agent has everything needed to call this correctly and interpret the result.

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

Parameters4/5

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

Schema coverage is 100% and the two schema properties only carry bare examples, so the description does real work: it defines q/candidates semantics, the accepted candidate separators (newlines, | or commas), and defaults for scorer, top, threshold and normalize. The gap is that scorer/top/threshold/normalize/a/b are described in prose but absent from the input schema, so an agent cannot verify they are actually accepted.

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

Purpose4/5

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

States a specific verb and resource ('Fuzzy string match and ranking') and spells out the two operating modes: rank up to 1000 candidates against a query, or compare two strings. 'Offline' implicitly contrasts it with the ai_* siblings, but no sibling is named, so an agent must infer the boundary with text_dedupe or util_name_match itself.

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

Usage Guidelines4/5

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

Names concrete scenarios — entity resolution, dedupe, typo-tolerant lookup, matching messy names to a master list — and explains the two-string mode ('b=' for one comparison) versus the ranking mode. It stops short of any when-not guidance or explicit routing to an alternative tool, which is the only thing separating it from a 5.

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.

Resources