Analyze post content is a WordPress ability from Rank Math SEO — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Analyze post content
Read-onlyGather a post's raw content, metadata, and list of on-page SEO tests so an AI agent can run Rank Math's full on-page analysis itself.
Requires the Rank Math SEO plugin on WordPress 6.9+ for the Abilities API. AI Visibility abilities require the 'manage_options' capability; Link Genius abilities require 'rank_math_link_builder'; Post SEO abilities require 'rank_math_onpage_general'; Schema abilities require 'rank_math_onpage_snippet'; SEO Analysis abilities require 'rank_math_site_analysis'; Analytics abilities require 'rank_math_analytics'; Content Analysis abilities require 'rank_math_onpage_analysis'. Some outputs (broken-link audit data in get-link-report, extra schema types in get-post-schema) are only populated when Rank Math PRO is active.
What it does
Because Rank Math's on-page scoring engine only runs client-side in the block editor, this ability instead hands an AI agent everything needed to reproduce that analysis: for a given post_id (and an optional keyword override of the post's saved focus keyword), it returns the IDs of the on-page SEO tests registered for the post (tests_to_run), the raw content and metadata needed to evaluate each one (title, description, permalink, focus_keyword, body, word_count, the first 10% of the body for the keywordIn10Percent test, headings, images with alt text, and links with their external flag), a kb_link to Rank Math's scoring-rubric article covering all 24 on-page tests, and an instructions string telling the calling agent exactly how to score each test and where to point users who need the Table of Contents block. It returns a structured error object instead of failing outright if the post doesn't exist or is in an unsupported status. Requires the 'rank_math_onpage_analysis' capability.
See it in action
You ask your AI assistant
"Analyze the on-page SEO of post 128 and tell me which tests are failing and how to fix them."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| post_id | integer | Yes | ID of the post to analyze. |
| keyword | string | No | Optional focus keyword to analyze against, overriding the post's saved focus keyword. |
Returns
An object with post_id, keyword (the keyword actually analyzed), tests_to_run (array of on-page test IDs), content (object with title, description, permalink, focus_keyword, body, word_count, excerpt_10pct, headings, images, links), kb_link (scoring rubric URL), instructions (guidance for the calling agent on scoring each test), and error (null on success, or an object with code/message on failure).
Permission
Requires the 'rank_math_onpage_analysis' capability.
More Rank Math SEO abilities
Audit site SEO
Run Rank Math's site-wide SEO audit and get back a structured score with per-test findings and fix hints.
Create AI Visibility brand
Add a new brand to AI Visibility monitoring and automatically kick off its first analysis.
Fix site SEO
Apply an automatic fix for a single failing Rank Math SEO audit test.
Get AI Visibility brand insights
Pull the full AI Visibility analysis for a single brand — score, rank, sentiment, mentions, citations, competitor breakdown, and raw per-query AI responses.
Get AI Visibility brand queries
List the search queries being monitored for a brand's AI Visibility tracking, including which are enabled or auto-generated baselines.
Get AI Visibility overview
Retrieve the site-level AI Visibility summary and every tracked brand's current score, rank, sentiment, and analysis status.