Skip to main content
Glama

wp_v4_style

Style Editor V4 (atomic) elements natively on a page, post, component or library template: plain CSS per element, with &:hover/&:focus/&:active and @media(--tablet)/@media(--mobile) blocks, written to the element's own style class through Elementor 4.3's manage-elements; also global classes and interactions. dry_run previews before/after CSS; writes are snapshotted.

Input Schema

NameRequiredDescriptionDefault
dry_runNoPreview the resulting CSS without saving
post_idYesPage, post, component or template id
publishNoDefault true. false keeps the change as an Elementor editor draft
site_idYesThe WordPress site ID
operationsYesJSON array (1-50) of {element_id, css?, mode?: "patch"|"replace", classes?: [global class labels], interactions?: [native shape]}. Example: [{"element_id":"16f4acad","css":"background-color:#0b5fff; padding:24px; &:hover{background-color:#003cbd} @media(--mobile){padding:12px}"}]
include_pending_draftNoPublish even though the post has an unsaved editor draft (it is published too)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations declare non-read-only, non-idempotent, non-destructive, open-world, but the description adds genuinely useful behavioral context beyond them: writes are snapshotted (recoverable), and dry_run previews the before/after CSS. It does not disclose what mode:'replace' destroys or how the publish/draft flag interacts with existing editor drafts, so it is good but not complete.

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

Conciseness4/5

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

Front-loaded with the core capability, then two short sentences covering preview and snapshot behavior. Dense but every clause earns its place; the only friction is the very long first sentence that packs scoping, syntax, and mechanism together.

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?

For a mutation tool with no output schema, the description covers scope, preview, and recoverability, which the annotations do not. It still omits the publish=false draft interaction with existing unsaved drafts (only hinted at by the include_pending_draft parameter) and any note on CSS regeneration or error handling, leaving meaningful gaps.

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 description coverage is 100%, so all six parameters are already documented in the schema, including the operations JSON example and the dry_run/publish semantics. The description restates the CSS syntax (&:hover/&:focus/&:active, @media(--tablet)/(--mobile)) but adds no format detail the schema example does not already carry, so the baseline 3 applies.

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

Purpose4/5

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

The description states a specific verb+resource+mechanism: writes plain CSS per Elementor V4 atomic element through the element's own style class, plus global classes and interactions. The 'V4 (atomic)' scoping and the mention of manage-elements differentiates it from generic style siblings like wp_apply_style, though it never names an alternative explicitly.

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?

Usage is implied rather than stated: the agent can infer this is the tool for per-element CSS on a page/post/template, and that dry_run is available for previewing. There is no explicit when-to-use vs wp_apply_style, wp_style_keys, or wp_regenerate_css, and no prerequisites (e.g. writes-enabled state) are given.

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