Update Yoast Advanced Robots Directives


Controls the advanced robots directives for a post: noimageindex (keep its images out of image search), noarchive (no cached copy) and nosnippet (no description excerpt in results). These are separate from noindex and nofollow, which the robots-meta ability handles. Any directive left out keeps its current setting.

Property Value
Ability slug mosmcp/update-robots-advanced
Wire tool name mosmcp__update-robots-advanced
Category Yoast SEO (mosmcp-yoast)
Plan Free

 

Required access

Requirement Value
Capability edit_posts, edit_post (checked against the specific post)
Minimum default role Contributor
Requires Yoast SEO
Annotations readOnly: false · destructive: false · idempotent: true · openWorld: true

 

Input schema

Field Type Required Default Description
post_id integer Yes — ID of the post/page/CPT entry.
noimageindex boolean — True to keep this post's images out of image search results.
noarchive boolean — True to stop search engines showing a cached copy of the page.
nosnippet boolean — True to stop search engines showing a text snippet or preview for the page.

 

Output schema

Field Type Required Description
success boolean
noimageindex boolean
noarchive boolean
nosnippet boolean
directives string The stored value as Yoast keeps it: a comma-separated list, empty when none are set.
warnings object[]
warnings[].code string
warnings[].message string

 

Example

Sample prompt
Stop Google from showing a cached copy of post 42.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 395,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__update-robots-advanced",
    "arguments": {
      "input": {
        "post_id": 42,
        "noarchive": true
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 395,
  "result": {
    "isError": false,
    "structuredContent": {
      "success": true,
      "noimageindex": false,
      "noarchive": true,
      "nosnippet": false,
      "directives": "noarchive",
      "warnings": []
    }
  }
}

 

Edge cases / errors

  • No directive given -> refused with ysoa_nothing_to_update, listing the directives the site accepts.
  • Setting nosnippet true -> saved with a nosnippet_hides_description warning (the meta description won't show in results).
  • Omitted directives keep their current value; the stored string is kept in Yoast's declared order.

 


<< Previous Next >>
Mark Post as Cornerstone Content Update Yoast Breadcrumb Title

For more information about the Secure MCP Server for WordPress plugin, explore the following resources:

Product Overview | Pricing | Try for Free | Documentation

If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.