Get WordPress Version


Returns the WordPress version this site runs, its database schema version, its locale, and whether it is part of a multisite network. Read-only. Useful for deciding whether a feature or block is available before trying to use it.

Also known as: which WordPress version, WordPress release.

Property Value
Ability slug mosmcp/site-get-wordpress-version
Wire tool name mosmcp__site-get-wordpress-version
Category Updates & Site Health (mosmcp-site-health)
Plan Free

 

Required access

Requirement Value
Capability edit_posts
Minimum default role Contributor
Annotations readOnly: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Takes no input. Send "input": {} (or omit input).

 

Output schema

Field Type Required Description
version string Yes WordPress version, for example "6.9.1".
db_version string Database schema revision WordPress has applied.
locale string Yes
is_multisite boolean Yes
is_main_site boolean On a network, whether this is the primary site. Always true on a single install.
php_version string

 

Example

Sample prompt
Which version of WordPress is my site running?

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 241,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__site-get-wordpress-version",
    "arguments": {
      "input": {}
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 241,
  "result": {
    "isError": false,
    "structuredContent": {
      "version": "6.8.2",
      "db_version": "58975",
      "locale": "en_US",
      "is_multisite": false,
      "is_main_site": true,
      "php_version": "8.2.12"
    }
  }
}

 

Edge cases / errors

  • Single-site install → is_main_site is always true.
  • On a multisite subsite → is_multisite true and is_main_site false.

 


<< Previous Next >>
Get Site Health Status Clear Caches

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.