Check a sign-up for spam
check_newuserChecks non-message form submissions such as registrations, subscriptions, orders, bookings, and poll votes for spam via email/IP reputation, domain and mailbox validation, and behavior signals.
Instructions
Spam verdict for a registration, newsletter subscription, order, booking or poll vote: anything without a message text. Pass at least email or ip. Checks the sender against the CleanTalk blocklist, verifies the email domain and mailbox, and uses behaviour data when an event_token is given.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_newuser"
}
}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 | ||
| 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 |