Get Theme by Slug


Returns full detail about one installed theme, named by its folder. Read-only. Use mosmcp/theme-list to find the folder names installed on this site.

Also known as: theme details, theme version, theme info.

Property Value
Ability slug mosmcp/theme-get
Wire tool name mosmcp__theme-get
Category Themes (mosmcp-themes)
Plan Free

 

Required access

Requirement Value
Capability switch_themes
Minimum default role Administrator
Annotations readOnly: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
stylesheet string Yes — The theme folder name, for example "twentytwentyfour". This is what mosmcp/theme-list returns as "stylesheet".

 

Output schema

Field Type Required Description
stylesheet string Yes Theme folder name.
template string Folder of the theme providing the templates. Differs from stylesheet only for a child theme.
name string Yes
version string
author string
description string
theme_uri string
status string Yes Either "active" or "inactive".
is_child boolean
parent object
parent.stylesheet string
parent.name string
parent.version string
is_block_theme boolean True for a block (full site editing) theme, false for a classic theme.
requires_wp string
requires_php string
tags string[]
screenshot string
update_available boolean
new_version string
page_templates object[] Page templates this theme offers. Only populated for the active theme, because WordPress reads them from the theme in use.
page_templates[].slug string
page_templates[].label string
supports string[] Theme features the active theme declares support for. Only populated for the active theme.
notes string[] Anything about this theme the caller should know before acting on it.

 

Example

Sample prompt
Tell me about the Astra theme installed on my site.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 234,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__theme-get",
    "arguments": {
      "input": {
        "stylesheet": "astra"
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 234,
  "result": {
    "isError": false,
    "structuredContent": {
      "stylesheet": "astra",
      "template": "astra",
      "name": "Astra",
      "version": "4.8.1",
      "status": "inactive",
      "is_child": false,
      "is_block_theme": false,
      "update_available": true,
      "new_version": "4.8.3",
      "page_templates": [],
      "supports": [],
      "notes": [
        "This theme is not active, so its page templates and supported features are not listed. WordPress resolves both from the theme currently in use."
      ]
    }
  }
}

 

Edge cases / errors

  • No theme in that folder → refused with mosmcp_theme_not_found; the folder rarely matches the display name, so use mosmcp/theme-list.
  • Empty stylesheet → refused with mosmcp_theme_reference_empty.
  • Inactive theme → page_templates and supports are empty, with a note explaining why.

 


<< Previous Next >>
Get Active Theme List Themes

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.