Skip to main content
Glama
vuluu2k

WebCake Storefront MCP

by vuluu2k

update_page_source

Replace a page's entire source JSON after confirming changes with the user; blocks if new source is less than 50% of existing size to prevent data loss.

Instructions

Directly update the full page source JSON. IMPORTANT: Before calling this tool, you MUST:

  1. Read existing source with get_page_source first

  2. Show the user what will change and get explicit confirmation

  3. NEVER call without user approval — this replaces the ENTIRE page source Safeguarded: blocks if new source is <50% of existing size.

Input Schema

NameRequiredDescriptionDefault
sourceNoFull page source object (sections tree) or JSON string
page_idYesPage ID
custom_codeNoCustom code (CSS/JS) for this page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.31.8

TDQS

A4.4/5.0
Behavior5/5

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

With only readOnlyHint=false in annotations, the description carries the burden and discloses critical behavior: it replaces the ENTIRE page source, requires user approval, and is safeguarded against shrinking the source to <50%. These are exactly the destructive-operation details an agent needs.

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?

The description is front-loaded and well organized into a purpose statement, mandatory steps, and a safeguard note. Every sentence carries safety or scope information without padding.

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?

For a destructive mutation with no output schema and minimal annotations, the description covers the critical safety workflow and size guard. However, it does not address how the optional source parameter or custom_code behaves, which leaves a small gap in an otherwise complete operational picture.

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%, so the three parameters are already documented in the schema. The description adds only the high-level meaning of 'full page source JSON' and does not clarify optional source behavior or custom_code, so it matches the baseline 3.

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 gives a precise verb+resource ('update the full page source JSON') and scopes it to the entire source, which differentiates it from element/content update siblings. It also names get_page_source as the read counterpart, reinforcing the distinction.

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?

It lays out mandatory prerequisites (read with get_page_source, show user changes, get explicit confirmation) and an explicit prohibition ('NEVER call without user approval'), which is strong when-not guidance. It does not name alternative update tools for partial edits, so it falls short of the top score that requires alternatives.

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