Check a message for spam
check_messageDetects 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
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | IP address of the visitor, IPv4 or IPv6 | |
| name | No | Name or nickname the visitor entered | |
| No | Email address of the visitor | ||
| message | Yes | The message text written by the visitor | |
| referrer | No | Referer header: the page the form was on | |
| js_enabled | No | Whether JavaScript ran in the visitor's browser, if known | |
| user_agent | No | User-Agent header of the visitor's browser | |
| event_token | No | Bot 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_seconds | No | Seconds between page load and form submit, if known (humans take more than ~5 seconds) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codes | Yes | ||
| isSpam | Yes | true = spam, block it or send to moderation | |
| reason | Yes | ||
| requestId | No | Request id, searchable in the CleanTalk dashboard | |
| isObviousSpam | Yes | true = obvious spam, safe to drop without moderation |