Skip to main content
Glama

Update WordPress Additional CSS

elementor_update_page_css

Write CSS to WordPress Additional CSS, either appending rules or replacing all existing styles, and automatically clear the Elementor cache after each update.

Instructions

Write to WordPress Additional CSS (Customizer). Use 'append' mode to add new rules after existing CSS, or 'replace' mode to overwrite all CSS. Automatically clears Elementor cache after update.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "css": "<css>"
    },
    "name": "elementor_update_page_css"
  }
}

Input Schema

NameRequiredDescriptionDefault
cssYesCSS content to write
modeNo'append' adds to existing CSS (default), 'replace' overwrites allappend

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations, the description discloses two important behaviors: replace mode overwrites all existing CSS, and the tool automatically clears the Elementor cache after every update. The destructiveHint=false annotation sits in mild tension with the 'overwrites all CSS' behavior, but the description supplies that context rather than hiding it, so it is creditable. The description does not say whether overwritten CSS is recoverable.

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?

Three short sentences, the operation is front-loaded, mode semantics follow, and the cache-side-effect is disclosed last. No sentence is redundant and nothing is buried.

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 two-parameter mutation tool with a fully documented schema, the core write behavior, mode semantics, and cache side effect are covered. Gaps remain around scope (site-wide Customizer CSS versus page-specific despite the tool name), recoverability of replaced CSS, and any permission requirements, which matter for a mutation.

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% and both parameters are already documented in the schema, including the enum values and the append default. The description restates the mode semantics with slightly more framing about placement relative to existing CSS, but adds no syntax, size-limit, or validation details; the baseline 3 is appropriate.

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 gives a specific verb plus resource: "Write to WordPress Additional CSS (Customizer)." This clearly separates it from read-side siblings such as elementor_get_page_css or elementor_get_compiled_css. However, the name suggests page-scoped CSS while the description says site-wide Customizer CSS, leaving a residual ambiguity about scope.

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 description usefully explains the two modes, 'append' versus 'replace', and when each applies. It does not say when an agent should choose this tool instead of elementor_update_element or elementor_update_global_kit, and it states no prerequisites such as Customizer permissions; those omissions keep it at minimally viable guidance.

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