Skip to main content
Glama
vuluu2k

WebCake Storefront MCP

by vuluu2k

update_page_source

Update a storefront page's full source JSON. Must first read the existing source and obtain explicit user approval before replacing the entire page.

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

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

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

With no annotations, the description carries full responsibility for behavior disclosure. It thoroughly explains that this is destructive ('replaces the ENTIRE page source'), requires user approval, and has a safeguard ('blocks if new source is <50% of existing size'). This is exemplary transparency for a mutation tool.

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 description is front-loaded with the core purpose, then uses a numbered 'IMPORTANT' list to convey preconditions and safety. It is longer than strictly necessary, but each sentence serves a functional role, and the structure makes the critical caveats scannable.

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 3-parameter tool with no output schema and no annotations, the description provides strong context: purpose, mandatory preconditions, destruction scope, and a safety rule. It lacks only an explicit mention of when to use this instead of related update tools, but overall it is adequate for correct invocation.

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 the baseline is 3. The description adds limited extra parameter meaning—notably that 'source' refers to the full page source JSON and that the safeguard applies to size—but does not clarify 'page_id' or 'custom_code' beyond the schema.

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 specific verb-resource pair: 'Directly update the full page source JSON.' It clearly distinguishes this from sibling tools by emphasizing 'full page source' and 'replaces the ENTIRE page source,' contrasting with partial update tools like update_page_element.

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?

The description provides explicit preconditions and a mandatory sequence: read existing source with get_page_source first, show the user what will change, and obtain explicit confirmation. It warns against use without approval and explains the tool's scope, but does not explicitly name alternatives such as update_page_element for partial edits.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vuluu2k/webcake-storefront-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server