Skip to main content
Glama
WebCake Landing MCP

WebCake Landing MCP

by vuluu2k

get_page

Read-only

Fetches an existing page's source tree, with compact or outline modes for structure inspection, and can return one element's subtree or a cached draft.

Instructions

Fetches an existing page's source tree { page, popup, settings, options, cartConfigs } with its name, organization_id and source_version. By default the tree is compacted: boilerplate shared by every element (properties, runtime, empty events/children, per-breakpoint config and factory-default style keys) is stripped, giving the same sparse shape the save tools accept and re-hydrate. compact:false returns the raw stored tree. outline:true returns only a one-line-per-element tree (id type "text…" d:left,top,w×h m:left,top,w×h [hidden-on-mobile] [events:n], indented by depth) — read it first, then fetch one element with element_id (its subtree + parent_id + path). draft_id reads a cached draft instead of a live page. Requires Webcake credentials for page_id.

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_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
compactNoDefault TRUE — strip factory-default boilerplate from every element (sparse shape, far fewer tokens). false returns the raw stored tree.
outlineNotrue → only the compact element tree (ids, types, text, desktop/mobile boxes), far smaller than the source.
page_idNoThe page id (from list_pages or a URL). Provide page_id OR draft_id.
draft_idNoRead a cached draft (from create_page / add_section / update_page / patch_page) instead of a live page.
element_idNoReturn just this element's subtree, with its parent_id, root and path of ids.
organization_idNoOrganization the page(s) belong to: an organization id, or 'personal' (= no organization). Settle it first (list_organizations; ask the user when the account has 2+). When omitted: the org remembered for this page_id (from get_page), else WEBCAKE_ORG_ID / x-webcake-org-id, else the account's only organization, else ok:false reason:'organization_required' with the list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.16.1
    • addedInput schema / properties / organization_id
      Added value: +{
      +  "description": "Organization the page(s) belong to: an organization id, or 'personal' (= no organization). Settle it first (list_organizations; ask the user when the account has 2+). When omitted: the org remembered for this page_id (from get_page), else WEBCAKE_ORG_ID / x-webcake-org-id, else the account's only organization, else ok:false reason:'organization_required' with the list.",
      +  "type": "string"
      +}
  2. Changed5 schema fields changedv1.13.6
    • addedInput schema / properties / draft_id
      Added value: +{
      +  "description": "Read a cached draft (from create_page / add_section / update_page / patch_page) instead of a live page.",
      +  "type": "string"
      +}
    • addedInput schema / properties / element_id
      Added value: +{
      +  "description": "Return just this element's subtree, with its parent_id, root and path of ids.",
      +  "type": "string"
      +}
    • addedInput schema / properties / outline
      Added value: +{
      +  "description": "true → only the compact element tree (ids, types, text, desktop/mobile boxes), far smaller than the source.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / page_id / description
      Previous value: -"The page id (from list_pages or a URL)."New value: +"The page id (from list_pages or a URL). Provide page_id OR draft_id."
    • removedInput schema / required
      Removed value: -[
      -  "page_id"
      -]
  3. First observedv1.5.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only and non-destructive, but the description adds substantive context beyond them: the default compaction and what specifically gets stripped, that the compact shape is re-accepted by the save tools, that compact:false returns the raw stored tree, the exact outline line format, and that Webcake credentials are required for page_id. This is exactly the behavioral detail annotations cannot express.

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?

A single dense paragraph that front-loads the resource and return shape before covering modes; nearly every clause carries information. It is long and slightly repetitive with the schema's own parameter descriptions, which keeps it off a 5.

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

Completeness5/5

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

There is no output schema, and the description compensates fully by describing the returned tree, the sparse vs raw variants, the outline projection and the element_id subtree with parent_id and path. Credentials and org resolution are also covered, so an agent has everything needed to call it correctly.

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%, so baseline is 3; the description still adds value the schema lacks, notably the concrete outline line grammar (`id type "text…" d:left,top,w×h ...`) and the re-hydration relationship with the save tools. Most other parameter meaning (compact, draft_id, element_id) is already mirrored in the schema descriptions, so it does not clear the bar for a 5.

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 and resource ("Fetches an existing page's source tree") and enumerates the returned top-level shape { page, popup, settings, options, cartConfigs } plus name, organization_id and source_version. The compact/outline/element_id/draft_id modes make it distinguishable from list_pages, get_element and get_page_schema without opening a schema.

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

Usage Guidelines4/5

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

Gives an explicit workflow ("read it first [outline], then fetch one element with element_id") and states that draft_id reads a cached draft rather than a live page, which is the key branch an agent needs. It does not explicitly name sibling alternatives such as get_element or get_page_schema, so it stops short of full when-not guidance.

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