Skip to main content
Glama
vuluu2k

WebCake Storefront MCP

by vuluu2k

commit_page_draft

Save a local page draft to the backend section by section to avoid request timeouts; preview with dry_run=true or persist with dry_run=false, and resume if a request fails.

Instructions

Persist a local page draft to the backend INCREMENTALLY (one section per request, 120s timeout each) so no single huge request can time out. dry_run=true (default) validates the assembled page and previews stats. dry_run=false creates the page then appends sections one at a time, saving progress after each. RESUMABLE: if a request fails mid-commit, the draft keeps its page_id + committed_count — just call commit_page_draft again to continue from where it stopped.

Input Schema

NameRequiredDescriptionDefault
dry_runNoValidate+preview only (true) or create+persist incrementally (false)
draft_idYesDraft id from start_page_draft

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.31.8

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false; the description adds substantial behavioral context: incremental one-section-per-request writes, a 120s per-request timeout, dry_run preview semantics, and full resumability via retained page_id + committed_count. This is exactly the kind of mutation/recovery detail annotations cannot convey.

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

Conciseness5/5

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

Front-loaded with the core action, then the dry_run modes, then a capped RESUMABLE block for the failure path. Three compact segments, no filler, and the escalation-worthy detail is surfaced with emphasis.

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?

For a mutation tool with no output schema and only two parameters, the description covers the write behavior, timeout risk, dry-run preview, and failure recovery. Nothing an agent needs to invoke it correctly or recover from a mid-commit failure is missing.

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 the baseline is 3, but the description goes further: dry_run=true validates the assembled page and previews stats while false creates then appends sections, adding meaning beyond the schema's terse wording. draft_id origin is only noted in the schema, so no extra credit there.

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 (persist/commit), resource (local page draft), and distinguishing mechanism (incremental, one section per request). The dry_run paragraph clarifies both modes, and the resumable note tells the agent exactly what the tool does on failure. It is clearly separable from start_page_draft and add_draft_section.

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?

Explains the dry_run default and what each mode does, which implicitly guides usage, but never explicitly states when to call this versus start_page_draft/add_draft_section or that it must follow draft construction. Usage is inferable from the workflow but not spelled out.

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