Skip to main content
Glama
CleanTalk MCP server

CleanTalk MCP server

Official
by CleanTalk

Check a message for spam

check_message
Idempotent

Detects spam in comments, reviews, contact forms, tickets, or chats by checking text, sender email, and IP against CleanTalk blocklists and behavior data; returns a spam verdict.

Instructions

Spam verdict for a comment, review, contact form, support ticket or chat message. Checks the text (links, stop words, spam templates), the sender's email and IP against the CleanTalk blocklist and behaviour data. Returns isSpam, codes and the request id. Use check_newuser for forms without a message.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message": "<message>"
    },
    "name": "check_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipNoIP address of the visitor, IPv4 or IPv6
nameNoName or nickname the visitor entered
emailNoEmail address of the visitor
messageYesThe message text written by the visitor
referrerNoReferer header: the page the form was on
js_enabledNoWhether JavaScript ran in the visitor's browser, if known
user_agentNoUser-Agent header of the visitor's browser
event_tokenNoBot Detector event token (hidden field ct_bot_detector_event_token) if the page loads https://fd.cleantalk.org/ct-bot-detector-wrapper.js
submit_time_secondsNoSeconds between page load and form submit, if known (humans take more than ~5 seconds)

Output Schema

NameRequiredDescriptionDefault
codesYes
isSpamYestrue = spam, block it or send to moderation
reasonYes
requestIdNoRequest id, searchable in the CleanTalk dashboard
isObviousSpamYestrue = obvious spam, safe to drop without moderation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare openWorldHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds useful mechanics (links, stop words, templates, blocklist and behaviour data lookups) and names the return fields, but says nothing about external-service failure modes, latency, or whether calls are quota-limited or billed — material for an open-world call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: what it returns and for which message types first, then what it inspects, then what comes back, then the routing rule. No filler and nothing buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value exposition is not required and the description's brief mention of isSpam/codes/request id is enough. For a 9-parameter, externally-dependent check, however, it omits operational context an agent would want — prerequisites such as an API key, expected latency, and behavior when the upstream blocklist is unreachable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so per-field semantics are already handled. The description nevertheless prioritizes the signal inputs — message text, sender email, sender IP — telling the agent which parameters actually drive the verdict, which is meaning beyond the schema's field-level text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Spam verdict for a comment, review, contact form, support ticket or chat message') and explicitly names the sibling check_newuser as the alternative for forms without a message. An agent can distinguish this tool from its siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides a concrete routing rule: 'Use check_newuser for forms without a message.' That is a genuine when-not condition, but guidance against the other siblings (spam_check, check_bot, email_check) is absent, leaving the agent to infer the boundary for message-bearing vs bot-detection calls.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.