Get post robots settings is a WordPress ability from SEOPress — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get post robots settings

Read-only
SEOPress SEO seopress/get-post-robots-settings

Retrieve the robots/indexing directives of a post (noindex, nofollow, canonical URL, primary category, breadcrumbs, etc.).

Requires the SEOPress plugin on WordPress 6.9+ for the Abilities API — abilities are registered only when wp_register_ability() exists, gated by the plugin's own seopress_abilities_api_available() check. Each per-post ability additionally requires the current user to hold the WordPress 'edit_post' capability for the target post (and the post must exist); the global title settings ability instead requires the SEOPress capability for managing title settings, which defaults to manage_options and is filterable via seopress_capability().

What it does

This ability wraps SEOPress's RobotSettings REST controller (processGet) to return the full set of robots and indexing directives SEOPress stores for a post, such as index/follow flags, the canonical URL override, the assigned primary category/term, and the breadcrumbs title. The data comes back as a list of raw { key, value } meta entries rather than a fixed object shape, mirroring exactly what SEOPress's own 'Advanced' post metabox reads and writes. This lets an AI assistant check whether a post is accidentally set to noindex or has a stray canonical URL before recommending changes.

See it in action

You ask your AI assistant

"Show me the current robots settings for post 128 — is it set to noindex, and what canonical URL is configured?"

Inputs

Name Type Required Description
post_id integer Yes The ID of the post, page or custom post type entry.

Returns

An array of { key, value } entries listing the post's SEOPress robots meta, such as index/follow flags, canonical URL, primary term and breadcrumbs title.

Permission

The current user must be able to edit the target post (the WordPress 'edit_post' capability for that post ID); the ability also verifies the post exists and returns a WP_Error otherwise.

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.