Skip to main content
Glama

Get a theme

get_theme
Read-only

Retrieve details about an installed WordPress theme, including its declared supports and block theme status, to determine how to build pages and templates.

Instructions

Get details about one installed theme, including what it declares support for and whether it is a block theme (which changes how you build pages and templates).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
stylesheetYesTheme directory name, e.g. "twentytwentyfour".
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds meaningful context about the data returned (theme supports and block theme status), which goes beyond the schema and helps an agent understand what the tool reveals. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence with no fluff. It states the core purpose and key detail, earning every word.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read tool with comprehensive schema and helpful annotations, the description is complete. It explains what the returned details include, which is sufficient for an agent to decide whether to call it. No output schema is needed here; the description covers the essential context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the parameters are well-documented. The description does not add parameter-specific meaning beyond what the schema already provides. Baseline 3 is appropriate since the schema handles parameter semantics fully.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Get details about one installed theme.' It also specifies the kind of details returned ('what it declares support for' and 'whether it is a block theme'), which differentiates it from sibling tools like list_themes (which lists) and activate_theme (which mutates). The purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly implies usage for fetching a single theme's details, distinguishing it from operations like listing or activating themes. It does not explicitly name alternatives or exclusions, but the context is clear enough that an agent would know when to use this over list_themes or activate_theme. No misleading guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alokemajumder/wpxmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server