Skip to main content
Glama
vuluu2k

WebCake Storefront MCP

by vuluu2k

update_page_elements

Update multiple page elements in one operation: preview diffs for each element, get explicit user confirmation, then apply changes safely.

Instructions

Batch update multiple elements in one page. Two-step process: STEP 1: Call with dry_run=true (default) → returns per-element diff. STEP 2: Show all diffs to the user and ask for confirmation. NEVER proceed without explicit user approval. STEP 3: Only after user confirms, call again with dry_run=false to apply. IMPORTANT: You MUST show the diff to the user and get explicit "yes/ok/confirm" before calling with dry_run=false. Skipping confirmation risks data loss. Same merge rules: style/config/specials = shallow merge, events/bindings = replace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoPreview only (true) or apply changes (false). Defaults to confirm_mode setting.
page_idYesPage ID
updatesYesArray of element updates
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 of behavioral disclosure. It does an excellent job: it reveals the two-step dry-run/apply mechanism, mandates explicit user approval, cautions that skipping confirmation risks data loss, and specifies merge rules (shallow merge for style/config/specials, replace for events/bindings). This goes far beyond a generic update description.

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 appropriately structured with clear steps and front-loaded purpose. It is dense but not bloated. The main redundancy is that the 'IMPORTANT' section restates the confirmation requirement from STEP 2, but given the data-loss risk, this repetition is acceptable and reinforces the critical safety message.

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?

The description covers the operational lifecycle (dry-run, diff, confirmation, apply), merge rules, and safety warning. The schema fully documents parameters, so no gaps there. It does not describe the return value beyond 'per-element diff,' but with no output schema this is acceptable. It is missing some details like error handling, but overall it is complete enough for a complex batch operation.

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?

The schema covers 100% of parameters, so the baseline is 3. The description adds valuable merge-rule context for the updates field and explains dry_run's role. However, it states 'dry_run=true (default)' while the schema says 'Defaults to confirm_mode setting,' a direct contradiction that undermines the parameter's default semantics. This mixed contribution keeps the score at 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 opens with 'Batch update multiple elements in one page,' which is a specific verb (batch update), resource (elements), and scope (one page). This clearly distinguishes it from siblings like update_page_element (singular) and update_page (page-level). The two-step process further clarifies the tool's unique behavior.

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 step-by-step usage instructions, including the requirement to show diffs and get user confirmation before applying. While it does not explicitly name alternatives like update_page_element or update_page, the 'Batch update multiple elements' phrasing implies when to use this tool. It also warns about data loss when skipping confirmation, which is a strong usage guideline.

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