Update SureRank Robots.txt 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 Robots.txt
DestructiveReplace the custom robots.txt content that SureRank serves.
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 sanitizes the supplied text and overwrites SureRank's stored robots.txt option wholesale — there's no merge, so the entire robots.txt output is replaced. An AI assistant could use it to add a new Disallow rule or block a bot, but should fetch the current content first with get-robots-txt so it doesn't drop existing rules. SureRank marks it destructive since it can change what search engine crawlers are allowed to access.
See it in action
You ask your AI assistant
"Add a rule blocking /wp-admin/ and /private/ from SureRank's robots.txt."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| robots_txt_content | string | Yes | The full robots.txt content to store. |
Returns
An object with success (boolean) and the saved robots_txt_content.
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.