Skip to main content
Glama

Frontman for WordPress

wp_elementor_generate_element

Read-onlyIdempotent

Generates a valid Elementor element JSON object. Supports container, row, column, heading, text, image, button, and generic widget.

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": {
      "site_id": "<site_id>",
      "type": "<type>"
    },
    "name": "wp_elementor_generate_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoh2
urlNo#
typeYes
titleNo
widthNo
contentNo
site_idYesThe connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID.
childrenNo
is_innerNo
settingsNo
button_textNoClick
widget_typeNo
attachment_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/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 the safety profile is fully covered structurally. The description adds the useful fact that the output is a valid Elementor element JSON object (important because there is no output schema), but it says nothing about determinism, validation failures, or what an invalid combination of parameters yields.

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?

Two tight sentences with the core action front-loaded and no filler. The type list partly duplicates the schema enum, but it is short enough to remain useful as a scannable capability summary.

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

Completeness2/5

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

With 13 parameters, nested objects (children, settings), no output schema, and near-zero schema coverage, the description is far too thin for the tool's complexity. An agent has no way to learn how children, is_inner, width, or widget_type combine to produce a valid element, nor what the returned JSON looks like.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 8% (only site_id is documented), so the description carries the burden and largely fails. The enumeration of supported types maps to the `type` enum but only restates it, while ten other parameters — tag, url, width, content, children, is_inner, settings, button_text, widget_type, attachment_id — receive no explanation of meaning, defaults, or interaction.

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: 'Generates a valid Elementor element JSON object', which tells the agent it produces JSON rather than mutating a page. The second sentence enumerates supported element types. It does not differentiate itself from the sibling that actually inserts elements (wp_elementor_add_element), so an agent must infer the generate-vs-add distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance is given: nothing says whether this is a pure builder step to be followed by wp_elementor_add_element, or whether it has any effect on the site. There are no exclusions or prerequisites (e.g., 'call list_sites first'), even though site_id is required and that guidance only appears buried in the schema.

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.