Skip to main content
Glama

wp_elementor_set_template_conditions

Set display conditions for an Elementor Theme Builder template to control its visibility, like showing on all pages or a specific page.

Instructions

Replace all display conditions on an Elementor Theme Builder template. Use 'include/general' to show on all pages, 'include/singular/page/43' for a specific page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conditionsYesCondition strings e.g. ['include/general'] or ['include/singular/page/43']
template_idYesTemplate ID from wp_elementor_list_theme_templates

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv2.3.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden, and it does disclose the most critical trait: 'Replace ALL display conditions' warns that existing conditions are overwritten, not appended. However, it does not disclose side effects (e.g., CSS regeneration, impact on published templates), whether the operation is reversible, or what happens if invalid condition strings are passed. Partial but honest disclosure of a mutating operation.

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?

Two sentences with zero filler. The core action is front-loaded in sentence one, and the examples in sentence two earn their place by teaching the condition format. No information is repeated from the schema, and no word is wasted.

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

Completeness3/5

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

Given there is no output schema and no annotations, the description should compensate by indicating what the caller can expect in return and how invalid conditions are handled; neither is addressed. The two examples cover the most common cases, so the tool is callable for typical scenarios, but the missing response/error semantics leave an agent guessing about failure modes.

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 semantic value by decoding the otherwise-opaque condition strings: 'include/general' means show on all pages and 'include/singular/page/43' targets one specific page. This domain knowledge is exactly what the raw schema examples fail to convey. It does not cover the full condition syntax space, but the added interpretation justifies a point above baseline.

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?

States a precise action ('Replace all display conditions') on a specific resource ('an Elementor Theme Builder template'). The qualifier 'all' signals the wholesale-replacement semantic, distinguishing it from additive or partial updates, and the sibling getter (wp_elementor_get_template_conditions) is clearly contrasted by the set/replace verb. No ambiguity about what the tool does.

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

Usage Guidelines3/5

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

The examples ('include/general' for all pages, 'include/singular/page/43' for a specific page) provide useful context for common intents, but the description never explicitly says when to prefer this tool over alternatives or mentions the read-before-replace flow with the sibling getter. Usage guidance is implied through examples rather than stated as selection criteria.

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/mpierre135/wp-mcp-control-server'

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