Skip to main content
Glama

optimize_elementor_json

Sanitize and optimize Elementor export JSON by stripping heavy JavaScript motion effects and enforcing zero-CLS image dimensions to reduce layout shift and improve Core Web Vitals.

Instructions

Sanitize and optimize Elementor export JSON (from Elementor Official MCP or Elementor Ultra MCP) by stripping heavy JS motion effects and enforcing zero-CLS image dimensions.

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": {
      "elementorJson": "<elementorJson>"
    },
    "name": "optimize_elementor_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementorJsonYesThe raw JSON string exported from Elementor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose two concrete behaviors: removing heavy JS motion effects and enforcing zero-CLS image dimensions. It still omits whether the input JSON is mutated, what the return format is, how errors are handled, and whether stripping behavior is configurable.

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?

It is one tightly written sentence that front-loads the main action and then specifies the two optimizations. Every phrase contributes useful meaning with no filler.

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 simple one-parameter transformation, the description gives enough context to select and invoke the tool correctly, including the expected input source and the two main effects. The remaining gap is that it does not describe the returned optimized JSON or edge-case handling, which matters slightly more because there is no output schema.

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?

The single parameter has 100% schema description coverage, so the schema already explains that elementorJson is the raw JSON string exported from Elementor. The description adds no parameter-level detail beyond what the schema provides, which is the expected baseline for a fully documented one-parameter tool.

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?

The description states a specific verb (sanitize and optimize) and resource (Elementor export JSON), then names two concrete transformations: stripping heavy JS motion effects and enforcing zero-CLS image dimensions. An agent can tell exactly what the tool does without opening the schema.

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?

It provides source context by naming Elementor Official MCP and Elementor Ultra MCP exports, which implies when the tool applies. However, it does not say when not to use it, what alternatives exist, or whether it should be run before import or validation.

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