Skip to main content
Glama

Get Page CSS Sources

elementor_get_page_css
Read-onlyIdempotent

Read all CSS sources affecting a WordPress page—Customizer Additional CSS, Elementor page custom CSS, and global CSS—to inspect styling or debug conflicts.

Instructions

Read all CSS sources that affect a page: WordPress Additional CSS (Customizer), Elementor page-level custom CSS, and Elementor global CSS. Returns the full CSS text of each source.

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_page_css"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesWordPress post/page ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), so the extra burden is low, and the description adds genuine value by disclosing the return shape: the full CSS text of each source. It says nothing about size limits or behavior for pages with no custom CSS, which for a read tool is a modest gap rather than a blocker.

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, front-loaded with the action and scope, then the return value. No filler and nothing redundant with the schema.

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

Completeness4/5

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

For a one-parameter read tool with no output schema, naming the three sources and promising their full CSS text is close to sufficient. Only edge-case behavior (empty results, very large CSS payloads) is unaddressed.

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?

There is a single parameter with 100% schema description coverage, so the schema already carries the meaning and the baseline of 3 applies. The description adds no constraints such as whether postId may reference a template or revision ID.

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 specific verb and resource ("Read all CSS sources that affect a page") and enumerates exactly which three sources are covered, so scope is unambiguous. It does not name or contrast with the closest sibling, elementor_get_compiled_css, leaving the agent to infer the boundary.

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 only implied: it is obviously the read-side counterpart used to inspect CSS before editing with elementor_update_page_css, but the description never says when to use this versus the compiled-CSS tool or when not to call it. No prerequisites or exclusions are stated.

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