Skip to main content
Glama
CleanTalk MCP server

CleanTalk MCP server

Official
by CleanTalk

Check a sign-up for spam

check_newuser
Idempotent

Checks 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

NameRequiredDescriptionDefault
ipNoIP address of the visitor, IPv4 or IPv6
nameNoName or nickname the visitor entered
emailNoEmail address of 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.4/5.0
Behavior4/5

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

Annotations already provide the safety profile (readOnly=false, destructive=false, idempotent=true, openWorld=true), and the description adds that it consults the CleanTalk blocklist, verifies domain and mailbox, and uses behaviour data when event_token is supplied. It does not discuss rate limits or privacy, but the added behavioral detail is adequate alongside the annotations.

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 short sentences are front-loaded with the purpose and the minimum-parameter rule, with no filler. The description is dense but readable and appropriately sized for the tool.

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

Completeness4/5

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

The definition covers the essential purpose, minimum inputs, and verification behavior, while the output schema handles return values and annotations cover safety properties. With eight optional parameters fully documented in the schema, the remaining gaps are minor.

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 the schema documents all eight fields; the description still adds the important constraint to pass at least email or ip and explains that event_token enables behaviour data. This adds meaning beyond the schema, though it does not elaborate on the remaining fields.

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?

The description gives a specific verb and resource ("Spam verdict for a registration...") and scopes the tool to registrations, newsletter subscriptions, orders, bookings, and poll votes. It explicitly excludes anything with a message text, which helps distinguish it from a message-oriented sibling such as check_message.

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?

It tells the agent to pass at least email or ip and identifies the event types where this check applies. It implies the no-message-text boundary, but it does not explicitly name check_message or spell out when to use another sibling, so it provides clear context rather than a full routing rule.

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