Update Yoast Meta Description


Updates the meta description for a post/page. ~155-160 characters recommended; longer values are accepted but may be truncated in search results.

Property Value
Ability slug mosmcp/update-meta-description
Wire tool name mosmcp__update-meta-description
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.
meta_description string Yes — New meta description text.

 

Output schema

Field Type Required
success boolean
meta_description string
length integer
truncation_warning boolean

 

Example

Sample prompt
Set the meta description of post 42 to 'Learn 10 quick ways to speed up your WordPress site.'

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 399,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__update-meta-description",
    "arguments": {
      "input": {
        "post_id": 42,
        "meta_description": "Learn 10 quick ways to speed up your WordPress site."
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 399,
  "result": {
    "isError": false,
    "structuredContent": {
      "success": true,
      "meta_description": "Learn 10 quick ways to speed up your WordPress site.",
      "length": 52,
      "truncation_warning": false
    }
  }
}

 

Edge cases / errors

  • Longer than 160 characters -> still saved, with truncation_warning true.
  • HTML tags in the text are stripped before saving.
  • Unknown post_id -> ysoa_invalid_post; no edit rights on the post -> ysoa_forbidden.

 


<< Previous Next >>
Update Yoast Focus Keyword Update Yoast Open Graph Tags

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.