You're viewing a demo portfolio

Join the waitlist
PRSM

ai_filters_test

Active

Tool of io.github.saloprj/dialogbrain

declared in 1.17.0

Test a message against an AI filter to check whether it would match. This tool embeds the provided message using Voyage AI and computes the cosine similarity between the message vector and the filter's stored reference vector. It returns the similarity score, whether the message would match (similarity >= threshold), and the filter's threshold value. Use this to: - Verify a filter works as intended before using it in a trigger - Tune the threshold by testing borderline messages - Debug why a message did or did not match a filter in production Returns: {similarity: float, matched: bool, threshold: float} Note: This tool calls the Voyage AI embedding API to embed the test message.

Parameters schema

{
  "type": "object",
  "required": [
    "filter_id",
    "message"
  ],
  "properties": {
    "message": {
      "type": "string",
      "description": "The message text to test. This is embedded and compared against the filter's reference vector via cosine similarity."
    },
    "filter_id": {
      "type": "integer",
      "description": "ID of the filter to test against"
    }
  }
}

What this tool wraps· 2 endpoints

min confidence0.700.50

Parent server

io.github.saloprj/dialogbrain

https://github.com/saloprj/dialogbrain-mcp

1/7 registries
View full server →
ai_filters_test — io.github.saloprj/dialogbrain — PRSM MCP