Update SureRank Sitemap Settings is a WordPress ability from SureRank — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Update SureRank Sitemap Settings
DestructiveUpdate SureRank's XML sitemap toggles and excluded post types/taxonomies.
Requires the SureRank plugin on WordPress 6.9+ for the Abilities API. Abilities are only registered when SureRank's admin 'enable_mcp' setting is turned on, and every ability requires the current user to have the 'manage_options' capability.
What it does
This ability accepts a settings object, restricts it to the four known sitemap keys (enable_xml_sitemap, enable_xml_image_sitemap, sitemap_excluded_post_types, sitemap_excluded_taxonomies), coerces booleans and sanitizes the excluded-type arrays, then saves the result. It fails if none of the supplied keys are recognized. An AI assistant can use it to exclude a noisy custom post type from the XML sitemap or toggle the image sitemap on or off; SureRank marks it destructive since it changes what's exposed to search engines.
See it in action
You ask your AI assistant
"Exclude the 'attachment' post type from SureRank's XML sitemap and make sure the image sitemap stays enabled."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| settings | object | Yes | Sitemap settings to update. |
Returns
An object with success (boolean) and message (string) describing the result of the save.
Permission
Requires the 'manage_options' capability; the ability is only registered when SureRank's admin 'enable_mcp' setting is turned on.
More SureRank abilities
Get SureRank Global Settings
Retrieve SureRank's global SEO settings, in full or filtered to specific keys.
Get SureRank Post SEO
Read a specific post's SureRank SEO metadata alongside the global defaults it falls back to.
Get SureRank Post SEO Checks
Run SureRank's SEO checks for one or more posts and return the pass/fail results.
Get SureRank Robots.txt
Read the custom robots.txt content currently managed by SureRank.
Get SureRank Sitemap Settings
Read SureRank's XML sitemap settings, including which post types and taxonomies are excluded.
Get SureRank Term SEO
Read a taxonomy term's SureRank SEO metadata alongside the global defaults it falls back to.