Check comment for spam is a WordPress ability from Akismet — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Check comment for spam

Read-only
Akismet Security & Privacy akismet/comment-check

Run a comment's author details and content through Akismet's spam filter to see whether it's flagged as spam.

Requires the Akismet plugin (v5.7+) on WordPress 6.9+, with a configured Akismet API key. Both abilities require the current user to have the 'moderate_comments' capability, and are only exposed over MCP when the 'akismet_enable_mcp_access' option is enabled.

What it does

This ability sends comment data — author name, email, URL, content, comment type, associated post ID, permalink, commenter IP, user agent, referrer, and user role — to the Akismet API for spam evaluation, without submitting or storing the comment. It returns whether the comment was identified as spam, an optional 'pro_tip' recommendation from Akismet (such as suggesting the comment be discarded as obvious spam), and a guid identifying the check. The ability requires a configured Akismet API key and returns an error if the plugin isn't set up or the API call fails.

See it in action

You ask your AI assistant

"Check whether this comment looks like spam: author 'John', email john@example.com, content 'Check out my amazing deals at...' posted on post ID 42."

Inputs

Name Type Required Description
comment_author string No Name of the comment author.
comment_author_email string No Email address of the comment author.
comment_author_url string No URL/website of the comment author.
comment_content string No The comment content/text.
comment_type string No The comment type (e.g., "comment", "trackback", "pingback"). Defaults to "comment".
comment_post_ID integer No The ID of the post the comment is being submitted to.
permalink string No The permanent link to the post or page.
user_ip string No IP address of the commenter.
user_agent string No User agent string of the web browser submitting the comment.
referrer string No The HTTP_REFERER header.
user_role string No The user role of the comment author if logged in.

Returns

An object with success, is_spam (boolean), and optionally pro_tip (a recommendation such as 'discard'), guid (a check identifier), error, and debug_help when present in the Akismet API response.

Permission

The current user must have the 'moderate_comments' capability. Only registered/exposed over MCP when the 'akismet_enable_mcp_access' option is enabled. Execution also requires a configured Akismet API key.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.