Skip to main content
Glama

wp_widget_schema

Read-onlyDestructive

The exact CONTENT fields a native Elementor widget spec accepts, so you never guess: counter's number is end (not value), accordion's answer is content (not text), etc. Returns fields, which are required, whether it needs Elementor Pro, and gotchas. Call before building with wp_create_page/wp_update_page. EDITOR V4 ATOMIC: pass e-tabs, e-div-block, e-flexbox, e-grid, e-heading, e-paragraph, e-image or e-button to get the V4 model — props, typed envelopes, child rules (tabs pair by index), the atomic spec shape and an example — all writable. (For STYLE keys use wp_style_keys instead.)

Input Schema

NameRequiredDescriptionDefault
widget_typeYese.g. counter, icon-box, accordion, form, heading, button — or 'all' for every widget's schema + the container vocabulary in ONE call (do this once per build instead of per-widget round trips)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=true), so the description is not the sole carrier. It still adds substantive behavioral context beyond structured fields: it discloses what the response contains (fields, required flags, Pro requirement, gotchas) and that V4 atomic models include props, typed envelopes, child rules and an example — a claim that 'all of these are writable'. It does not, however, address the odd destructiveHint=true/openWorldHint=true annotation set or pagination/caching behavior.

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?

Front-loaded with the core promise (exact field names, no guessing) followed by usage and the V4 special case. Dense but nearly every clause earns its place; the ALL-CAPS emphasis (CONTENT, EDITOR V4 ATOMIC) is mildly noisy but aids scanning in a long description.

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?

With no output schema, the description carries the return-value burden and does so adequately: it names fields, required flags, Pro dependency, gotchas, and the V4 model's shape. Coverage is strong for a single-param lookup tool; the only gap is any mention of response size or how 'all' behaves in practice.

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

Parameters4/5

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

Schema coverage is 100% and the schema already documents widget_type with examples and the 'all' bypass, so the baseline is 3. The description adds meaning the schema lacks: the V4 ATOMIC block enumerates the exact accepted tokens (e-tabs, e-div-block, e-flexbox, e-grid, e-heading, e-paragraph, e-image, e-button) and states what passing them yields, extending well beyond the schema's generic examples.

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?

States a specific verb+resource: returns the exact CONTENT fields a native Elementor widget spec accepts, with concrete examples (`end` vs `value`, `content` vs `text`) that make the value proposition unambiguous. It explicitly differentiates from siblings: wp_style_keys for style keys and wp_widget_controls by implication, and names wp_create_page/wp_update_page as the consumers.

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

Usage Guidelines5/5

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

Gives explicit when-to-use ('Call before building with wp_create_page/wp_update_page'), an explicit alternative for a related need ('For STYLE keys use wp_style_keys instead'), and a batching rule ('do this once per build instead of per-widget round trips'). No inference required.

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.

Resources