Skip to main content
Glama
WebCake Landing MCP

WebCake Landing MCP

by vuluu2k

get_element

Read-only

Fetch usage details, schemas, examples, and placement rules for WebCake element types so you can build valid landing page content and avoid unsupported fields.

Instructions

Returns usage details for one element type, or for several via types: [...]: a summary, when it applies, key specials fields, a sparse skeleton node (the server fills omitted boilerplate), for common types a filled example, keys (one line per specials/config/styles key the published renderer READS — meaning, value type, enum, default — plus no_effect: keys stored but never rendered) and relations (where it must sit, parents/children on real pages). types returns { elements: { [type]: details } }; type returns a single doc.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoSingle element type.
typesNoSeveral element types fetched in one call, e.g. ['section','text-block','button','form','input'].

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.11
    • changedInput schema / properties / type / description
      Previous value: -"Single element type — backward-compat. Prefer `types` when fetching more than one."New value: +"Single element type."
    • changedInput schema / properties / types / description
      Previous value: -"Multiple element types to fetch in one call (recommended for a section that needs several types, e.g. ['section','text-block','button','form','input'])."New value: +"Several element types fetched in one call, e.g. ['section','text-block','button','form','input']."
  2. First observedv1.5.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral substance beyond that: the server fills omitted boilerplate in the skeleton node, and `keys` reports only what the published renderer READS, with a `no_effect` marker for keys that are stored but never rendered — a non-obvious semantic an agent would otherwise get wrong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first clause, which is good. However, the body is a single run-on sentence packing a dozen parenthetical sub-descriptions, which makes it dense to parse and buries the `type` vs `types` distinction at the very end.

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 carries the full burden of explaining return values, and it does so field by field (summary, specials, skeleton, example, keys, relations) plus the two response envelopes. For a two-parameter lookup tool with annotations already covering safety, this is close to complete; only error and missing-type behavior 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?

Schema description coverage is 100%, so both parameters are already documented in the schema, establishing a baseline of 3. The description does add a little meaning by stating the divergent return shapes: `types` yields { elements: { [type]: details } } while `type` yields a single doc. That is genuinely useful but is the only semantic increment over the schema.

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?

The description opens with a specific verb+resource: it 'Returns usage details for one element type, or for several via `types: [...]`'. The enumeration of what a detail contains (summary, specials, skeleton node, example, keys, relations) makes the tool's output unmistakable. It stops short of naming a sibling such as list_elements or get_page_schema, so differentiation is left to inference.

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 rather than stated: an agent learns it should call this when it needs per-type detail, and that `types` batches several types in one call. There is no explicit when-not, no mention of prerequisites, and no contrast with sibling tools that also surface element information. The batching hint is the only concrete selection guidance.

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