Skip to main content
Glama

IA-QA — 152 QA & Dev Tools for AI Agents

embedding_similarity

Read-onlyIdempotent

Compute text similarity using local algorithms (Bag of Words, TF-IDF, Character N-grams). No API key needed — runs entirely in-process. NOT real embeddings: true vector embeddings are run_semantic_tests with mode="embeddings" and an OpenAI key. Supports single pair or batch mode with pipe-separated pairs. Useful for RAG retrieval testing, semantic search evaluation, and text deduplication.

Input Schema

NameRequiredDescriptionDefault
batchNoBatch mode: array of { text_a, text_b } pairs. Overrides text_a/text_b if provided.
text_aNoFirst text to compare (single-pair mode)
text_bNoSecond text to compare (single-pair mode)
methodsNoAlgorithms to use (default: all three). Options: "bow", "tfidf", "ngram"

Output Schema

NameRequiredDescriptionDefault
modeNo
countNo
scoresNo
text_aNo
text_bNo
resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "text_a": "the cat sat",
      +    "text_b": "quantum field theory"
      +  }
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "count": {
      +    "type": "number"
      +  },
      +  "mode": {
      +    "type": "string"
      +  },
      +  "results": {},
      +  "scores": {},
      +  "text_a": {},
      +  "text_b": {}
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  4. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.