Skip to main content
Glama
vuluu2k

WebCake Storefront MCP

by vuluu2k

update_global_source_elements

Batch update multiple elements in one global source with a dry-run preview and user confirmation before applying changes to prevent data loss.

Instructions

Batch update multiple elements in one global source. 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

NameRequiredDescriptionDefault
dry_runNoPreview only (true) or apply changes (false). Defaults to confirm_mode setting.
updatesYesArray of element updates
componentNoComponent hint for faster lookup
global_source_idYesGlobal source ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.31.8

TDQS

A4.6/5.0
Behavior5/5

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

Despite only readOnlyHint=false in annotations, the description adds critical behavior: dry_run defaults to true, returns per-element diffs, requires explicit user confirmation before applying, and risks data loss if skipped. It also documents merge semantics that go well beyond the annotation.

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?

Front-loads the purpose, then structures the required workflow in three clear steps. It is somewhat repetitive with repeated confirmation warnings, but the repetition is defensible for a destructive batch update.

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?

Given a batch mutation tool with no output schema, the description supplies the essential operating protocol, safety gates, and merge rules an agent needs to invoke it correctly. Nothing material is missing for correct use.

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 adds meaningful parameter semantics: dry_run default behavior and update-specific merge rules (style/config/specials shallow merge; events/bindings replace). The component hint parameter is not described, but schema covers it.

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?

Starts with a clear verb and resource: 'Batch update multiple elements in one global source.' The word 'batch' and 'multiple' distinguishes it from the singular sibling update_global_source_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?

Provides explicit step-by-step usage for dry_run=true preview, user confirmation, and dry_run=false apply, including strong when-not guidance ('NEVER proceed without explicit user approval'). It does not explicitly compare to the singular alternative, but the batch scope implies the distinction.

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