Skip to main content
Glama

Get Compiled CSS

elementor_get_compiled_css
Read-onlyIdempotent

Reads the Elementor-compiled CSS for a WordPress page and optionally filters rules by element ID to reveal the actual CSS generated from element settings.

Instructions

Read the Elementor-compiled CSS file for a page (post-{id}.css from /uploads/elementor/css/). Optionally filter to only rules matching a specific element ID. Use this to see the actual CSS Elementor generates from element settings.

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": {
      "postId": "<postId>"
    },
    "name": "elementor_get_compiled_css"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesWordPress post/page ID
elementIdNoOptional: filter CSS to only rules matching this element ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety and repeatability are covered and the description need not restate them. What it adds is the file location, but it omits material behavior for a compiled-artifact read: whether a missing/stale CSS file is possible, whether reading triggers regeneration, and what an empty result looks like when elementId matches nothing.

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?

Three short sentences, front-loaded with the resource and its exact location, then the optional filter, then the purpose. Little waste; the parenthetical path could arguably be trimmed but it earns its place by anchoring the output.

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?

With no output schema, the description carries the burden of describing returns, and it only implies raw CSS text rather than stating the response shape. Combined with the silence on missing-file and no-match behavior for a two-parameter read tool, it is adequate but leaves real gaps an agent would want closed.

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 both parameters are already documented and the baseline is 3. The description adds a little by tying postId to the post-{id}.css filename and confirming that elementId is a rule-level filter rather than a selector lookup, but it gives no format or matching semantics beyond that.

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?

States a concrete verb and resource ('Read the Elementor-compiled CSS file for a page') and even pins the on-disk artifact (post-{id}.css from /uploads/elementor/css/), so the agent knows exactly what is produced. It stops short of differentiating itself from the near-named sibling elementor_get_page_css, leaving that distinction to inference.

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?

'Use this to see the actual CSS Elementor generates from element settings' gives one legitimate use case, which is more than nothing. But there is no when-not guidance and no mention of how this differs from elementor_get_page_css or elementor_get_element_selector, which is the main selection hazard given the sibling set.

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