Update Yoast Schema Types


Sets the schema.org page type and article type Yoast declares in its structured data, which is how search engines classify the page — a service page as an ItemPage, a help page as an FAQPage, a news story as a NewsArticle. Pass an empty string to clear either one and fall back to the default for the post type. Invalid values are refused and the response lists what Yoast accepts; use the read ability to see the current values and the full list.

Property Value
Ability slug mosmcp/update-schema-types
Wire tool name mosmcp__update-schema-types
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.
page_type string — Schema page type, for example "ItemPage", "AboutPage", "ContactPage" or "FAQPage". Empty string clears the override.
article_type string — Schema article type, for example "BlogPosting", "NewsArticle" or "TechArticle". "None" means the post is not an article. Empty string clears the override.

 

Output schema

Field Type Required
success boolean
page_type string
article_type string
updated_fields string[]
allowed_page_types string[]
allowed_article_types string[]
warnings object[]
warnings[].code string
warnings[].message string

 

Example

Sample prompt
Tell search engines that page 42 is an FAQ page.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 402,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__update-schema-types",
    "arguments": {
      "input": {
        "post_id": 42,
        "page_type": "FAQPage"
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 402,
  "result": {
    "isError": false,
    "structuredContent": {
      "success": true,
      "page_type": "FAQPage",
      "article_type": "",
      "updated_fields": [
        "page_type"
      ],
      "allowed_page_types": [
        "WebPage",
        "ItemPage",
        "AboutPage",
        "FAQPage",
        "ContactPage"
      ],
      "allowed_article_types": [
        "Article",
        "BlogPosting",
        "NewsArticle",
        "None"
      ],
      "warnings": []
    }
  }
}

 

Edge cases / errors

  • Value not in Yoast's allowed list -> refused with ysoa_invalid_schema_type, listing valid values (matching is case-insensitive, stored in Yoast's casing).
  • Neither page_type nor article_type given -> refused with ysoa_nothing_to_update.
  • Empty string clears the override with a fallback_to_post_type_default warning; article_type "None" removes Article markup entirely (article_markup_removed warning).

 


<< Previous Next >>
Update Yoast Robots Meta Update Yoast SEO 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.