Skip to main content
Glama

Match names (probabilistic)

match_names_probabilistic
Read-onlyIdempotent

Compares two counterparty names using Jaro-Winkler similarity and reports whether they meet a chosen threshold, even when legal suffixes differ (e.g., 'ACME Corp' vs 'ACME Corporation Inc').

Instructions

Score two counterparty names with Jaro-Winkler similarity and report whether they match at a given threshold. Tolerant of legal-suffix drift, e.g. 'ACME Corp' vs 'ACME Corporation Inc'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
name_aYesFirst counterparty name.
name_bYesSecond counterparty name.
thresholdNoSimilarity in [0, 1] at or above which the pair is a match.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.0.5

TDQS

A4.1/5.0
Behavior4/5

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

With readOnly/idempotent/destructive annotations already covering safety, the description adds meaningful behavior: Jaro-Winkler similarity, threshold semantics, and tolerance for legal-suffix drift with a concrete example. No contradiction with annotations.

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

Conciseness5/5

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

Two sentences with the main verb and resource front-loaded. The legal-suffix example is compact and illustrates the tool's value without wasting space.

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?

For a three-parameter primitive with full schema coverage, rich annotations, and an output schema, the description covers algorithm, input semantics, and intended tolerance. No material gap prevents correct invocation.

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 descriptions already cover all three parameters (100% coverage), so the baseline applies. The description adds only contextual color about counterparty names and 'given threshold,' but no new semantics for parameter format or defaults.

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?

Clearly identifies a specific verb (score/report) and resource (two counterparty names), and names the algorithm (Jaro-Winkler) plus threshold-based output. This separates it from amount-matching and reconciliation siblings.

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?

The description implies this is for fuzzy name matching, especially with legal-suffix variation, but it never names alternative tools or states conditions for choosing between them. Siblings like match_amounts_with_fx_drift and explain_match are left to the agent to distinguish.

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