Back to Search

neo_util_semantic_similarity

0.1.0

Calculates the mathematical cosine similarity between two texts.

$0.002 / call (Standard Tier)
Updated: Apr 29, 2026

Overview

An advanced NLP utility that compares two strings (or internal resource URIs) to determine their semantic similarity. It calculates a score between -1.0 (completely opposite) and 1.0 (identical meaning), making it ideal for data deduplication, zero-shot classification, and intent matching.

Example Input

JSON payload sent to this tool:

  {
    "text_1": "Hello world",
    "text_2": "Hi earth"
  }


  {
    "text_1": "Hello world",
    "resource_uri_2": "neonia://some_id/content"
  }

Example Output

Formatted JSON response returned by this tool:

{
  "similarity_score": 0.852
}

Setup Configuration

Add the following configuration to your MCP general settings or mcp_config.json:

{
  "mcpServers": {
    "neonia": {
      "serverUrl": "https://mcp.neonia.io/mcp?tools=neo_util_semantic_similarity",
      "headers": {
        "Authorization": "Bearer API_KEY"
      }
    }
  }
}