Skip to main content
Glama

wp_create_template

Create an Elementor THEME BUILDER template as a DRAFT: header, footer, single-post, single-page, archive, search-results, error-404, loop-item, product, product-archive (Pro required for these), or page/section (free). Build content with sections (same native CONTAINER spec + style object as wp_create_page). Optionally pass conditions (Elementor include/exclude grammar, e.g. ["include/general"] = entire site, "include/singular/front_page", "include/singular/page/123", "include/archive", "exclude/singular/page/12") and publish=true to go live immediately — otherwise review the draft first, then wp_set_template_conditions. Templates render SITE-WIDE per their conditions — always screenshot-review before publishing. Requires writes enabled + Xyle Connector v0.3.0+.

Input Schema

NameRequiredDescriptionDefault
titleYesTemplate title
publishNoPublish immediately after setting conditions (default false — draft-first)
site_idYesThe WordPress site ID
sectionsNoJSON array — native Elementor CONTAINER spec (same shape as wp_create_page, incl. per-widget `style`)
conditionsNoJSON array of condition strings, e.g. ["include/general"]
page_settingsNoJSON object of Elementor page settings. For a POPUP (template_type=popup, Pro), this is the open/close triggers, e.g. {"triggers":{"page_load":"yes","page_load_delay":2}} for on-load, or {"triggers":{"exit_intent":"yes"}}. To open a popup from a BUTTON instead, build a button widget with `open_popup: <popup_id>` (no page_settings needed). Elementor renders the popup JS natively — no custom script.
template_typeYesheader | footer | single-post | single-page | single | archive | search-results | error-404 | loop-item | product | product-archive | popup | page | section
elementor_dataNoRaw _elementor_data JSON (advanced alternative to sections)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations cover the safety profile (not read-only, not destructive, open-world, non-idempotent), and the description adds meaningful behavioral context beyond them: draft-vs-publish semantics, the site-wide scope of conditions, the mandatory screenshot review, and the writes-enabled + connector-version prerequisite. It does not cover reversibility or how conditions interact on repeat runs, so not a full 5.

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?

Front-loaded with the verb and resource, then flows through content, conditions/publish, and the safety warning. Every clause carries information an agent needs; no filler or repetition of structured fields.

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

Completeness5/5

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

For a mutation tool with no output schema, the description is complete: it covers creation scope, template types, draft/publish behavior, condition grammar, prerequisites, and the review-before-publish warning. An agent has everything needed to select and invoke it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real value: it gives multiple concrete examples of the include/exclude condition grammar ('include/general' = entire site, 'include/singular/front_page', 'exclude/singular/page/12') and clarifies that sections reuse the wp_create_page CONTAINER spec.

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?

Specific verb (Create) plus a concrete resource (Elementor THEME BUILDER template) with an explicit enumeration of the supported template_type values and their free/Pro status. It clearly distinguishes itself from the closely-named sibling wp_create_page by scoping to Theme Builder templates.

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

Usage Guidelines5/5

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

Explicitly states the default draft-first workflow and the follow-up step ('review the draft first, then wp_set_template_conditions'), and names the escalation path (publish=true). It routes the agent to wp_create_page for content shape and warns that conditions govern site-wide rendering.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources