ai_filters_test
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 (simi...
This record as markdown: /tools/io-github-saloprj-dialogbrain/ai-filters-test.md
What ai_filters_test does on Dialogbrain
AI agents call ai_filters_test to retrieve information from Dialogbrain without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
message | string | Yes | The message text to test. This is embedded and compared against the filter's reference vector via cosine similarity. |
filter_id | integer | Yes | ID of the filter to test against |
Parameters from the server's own tool schema.
Why ai_filters_test is rated Low
This tool performs a read-only similarity comparison between a message vector and a stored filter vector. It retrieves and analyzes data (similarity scores and threshold values) without creating, modifying, deleting, or executing any side-effect operations. The use cases listed (verify, tune, debug) are all diagnostic/observational in nature. This is a pure data retrieval and comparison operation.
From the tool's definition Tool description states it 'test[s] a message against an AI filter' and 'returns the similarity score, whether the message would match...and the filter's threshold value.' The verb 'test' and 'check' indicate query/verification operations.
Attacks that exploit this kind of access
The rule that runs ai_filters_test safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Dialogbrain, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For ai_filters_test, this is the rule to start with:
ai_filters_test is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Dialogbrain, apply this rule, and every ai_filters_test call is checked against it from then on.
Questions about ai_filters_test
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. It is categorised as a Read tool in the Dialogbrain MCP Server, which means it retrieves data without modifying state.
ai_filters_test accepts 2 parameters: message, filter_id. Required: message, filter_id. The full parameter table on this page comes from the server's own tool schema.
Register the Dialogbrain MCP server in PolicyLayer and add a rule for ai_filters_test: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Dialogbrain. Nothing to install.
ai_filters_test is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the ai_filters_test rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for ai_filters_test. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
ai_filters_test is provided by the Dialogbrain MCP server (https://api.dialogbrain.com/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Dialogbrain, and thousands of servers like it.
This server
Across the catalogue