{"uid":"cap_3ADIyW4PG_hkaLga1rGK8","slug":"agent402-tools-string-similarity-b48bf922","name":"agent402.tools String Similarity","description":"Compute multiple similarity metrics between two strings at once: Dice coefficient, Jaccard index, overlap coefficient (all bigram-based), and normalized length difference. All values 0–1. Deterministic, pure CPU.","url":"https://agent402.tools/api/string-similarity","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","description":"First string"},"b":{"type":"string","description":"Second string"}}},"responseSchema":{"type":"json","example":{"dice":0.8,"jaccard":0.666667,"overlap":0.8,"lengthDiff":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OKZqTOfBI9qb1C6FE7doY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes four string similarity metrics at once (Dice, Jaccard, overlap coefficient, normalized length difference) for two input strings","exampleAgentPrompt":"Can you compute all the similarity metrics — Dice, Jaccard, overlap coefficient, and length difference — between the strings 'customer service' and 'customer support'?","exampleUseCases":null,"resultDescription":"Returns four numeric scores (each 0–1): Dice coefficient, Jaccard index, overlap coefficient (all bigram-based), and normalized length difference, allowing multi-dimensional comparison of the two input strings.","failureModes":["Missing 'a' or 'b' parameter returns a validation error","Empty strings may produce edge-case scores (e.g. 0 or undefined similarity)","Very long strings may increase latency slightly but still process","Non-UTF-8 or malformed input may result in a 400 error"],"whenToPreferThis":"Use this endpoint when you need multiple bigram-based string similarity metrics computed in a single call rather than calling separate endpoints. Ideal for fuzzy deduplication, record linkage, typo detection, or any scenario requiring a multi-faceted similarity profile rather than a single distance score.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.630Z","isFirstParty":false}