Skip to main content
Glama
WebCake Landing MCP

WebCake Landing MCP

by vuluu2k

new_element

Read-only

Generates the WebCake editor node for a chosen element type, including default styling, breakpoint settings, and starter children, so you can add it to a landing page.

Instructions

Returns the node the Webcake editor drops for a type, in the sparse authoring shape: a fresh id, the editor default look (colours, font, border, size) and settings for both breakpoints, and its default children (a form with name + phone fields and a submit button, a carousel with slides, a grid with items). Images are sized placeholders to replace. properties, runtime, empty events and per-breakpoint config are omitted because the server fills them from factory defaults on validate and save.

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

Input Schema

NameRequiredDescriptionDefault
nameNoOptional properties.name override (layer label).
typeYesElement type to create.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: which fields are omitted (properties, runtime, events, per-breakpoint config), why they are omitted (server fills from factory defaults on validate and save), and that images are sized placeholders requiring replacement. It stops short of stating explicitly that nothing is persisted server-side.

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?

The key statement about what is returned is front-loaded, and the parenthetical enumerations of defaults and children are information-dense rather than filler. It is a long sentence but nearly every clause carries weight; only the breakpoint-settings mention is somewhat redundant with the later omission note.

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?

There is no output schema, so the description must carry the return-shape burden, and it does: fresh id, default look, breakpoint settings, default children per type, and which fields are deliberately absent. It is nearly complete for a two-parameter tool, with the main gap being the valid values for type and the effect of name.

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 coverage is 100% for both parameters, so the schema already documents type and the optional name override. The description adds type-dependent semantics by listing the default children produced for form, carousel, and grid types, but says nothing about the name parameter or the set of valid types, so it does not meaningfully exceed the schema baseline.

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: 'Returns the node the Webcake editor drops for a type', and clarifies it is a template/factory producer with a fresh id rather than a fetch or a mutation. That distinguishes it from get_element in substance, though it never names a sibling to contrast with.

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 implied: the agent should call this to obtain a new element node before authoring, and the note that images are placeholders signals post-processing work. There is no explicit when-to-use/when-not statement and no named alternative (e.g. get_element for existing nodes), so routing must be inferred.

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