Skip to main content
Glama
vuluu2k

WebCake Storefront MCP

by vuluu2k

start_page_draft

Initiate a page draft to build multi-section pages safely, caching sections and committing progressively to enable resumable, timeout-resistant publishing.

Instructions

Start a page draft (no network). Build a multi-section page safely: cache each section with add_draft_section, then commit_page_draft persists it to the backend INCREMENTALLY (resumable on timeout). Use this instead of build_page for large/multi-section pages. The draft cache is DISPOSABLE (Redis on the remote server when REDIS_URL is set, in-memory otherwise; sliding ~2h TTL) — if a draft is ever lost, just re-send the sections, never a failure. ONE page per site for type main (homepage) / error / maintain, and slugs are unique per site: the draft is refused up-front with the existing page_id to edit instead. Only 'custom' pages can be created over and over.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seoNoSEO for this page → settings.seo (applied on commit).
nameYesPage name
slugYesURL slug WITHOUT a leading slash, e.g. 'about', 'collections', 'cart'. A leading '/' is stripped automatically (the storefront matches the bare path segment, so '/cart' would 404). Store pages MUST use: category='collections', product='products', cart='cart', checkout='checkout', thank-you='complete'. Homepage needs no slug (is_homepage:true).
typeNoPage kind. SPECIAL pages need a site data-source enabled on commit: store→use_store, member→use_member, blog→use_blog, error→use_error, maintain→use_maintain. 'main'/'custom' need nothing.
is_homepageNoSet as the site homepage on commit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.31.8

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it delivers: no network on start, disposable cache backend (Redis vs in-memory), sliding ~2h TTL, incremental persistence on commit, resumability on timeout, up-front refusal semantics for special page types, and side effects deferred to commit (SEO applied on commit, data-source enabled on commit). Failure modes and state transitions are fully disclosed.

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 text is dense and front-loaded, with the purpose and workflow in the first sentence and constraints in a clean second paragraph. However, ALL-CAPS emphasis ('INCREMENTALLY', 'DISPOSABLE', 'ONE page per site') reads as shouting and slightly hurts readability, and a few notions are repeated (no network / disposable cache). Every sentence carries value, but the formatting is not ideal.

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?

The tool sits in a multi-step workflow, and the description fully orients the agent: it names the companion tools (add_draft_section, commit_page_draft), explains the cache lifecycle, covers refusal conditions for unique/special pages, specifies which page types need data-sources on commit, and handles the no-output-schema gap by describing behavior rather than return values. Nothing essential is missing for a correct invocation.

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

Parameters5/5

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

Schema coverage is 100%, yet the descriptions add substantial meaning beyond type definitions: the slug field explains leading-slash stripping, bare-path matching ('/cart' would 404), per-store-type slug requirements, and the homepage exemption; the type enum maps each special kind to its required data-source on commit; seo indicates it maps to settings.seo applied on commit. These are rich, decision-relevant semantics, well above the baseline.

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?

The description opens with a precise verb and resource: 'Start a page draft (no network)'. It explicitly distinguishes itself from a sibling: 'Use this instead of build_page for large/multi-section pages', and frames a clear two-phase workflow ('cache each section with add_draft_section, then commit_page_draft persists it to the backend'). The purpose and place among the page-building tools is unambiguous.

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?

The description names its alternative (build_page) with a concrete selection condition ('for large/multi-section pages'), gives step-by-step workflow guidance, prescribes failure recovery ('if a draft is ever lost, just re-send the sections, never a failure'), and states when the tool refuses with redirection ('the draft is refused up-front with the existing page_id to edit instead'). An agent knows exactly when and how to use it.

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

Deploy Server

Other Tools