---
title: "Declarative vs. Imperative WebMCP: A Storefront Build Guide"
canonical_url: "https://www.laioutr.com/en/blog/declarative-vs-imperative-webmcp-storefront-build-guide-2026"
locale: en
meta:
  description: "Should storefront actions be HTML annotations or JS tools? A practical WebMCP build guide with a code example and decision matrix."
  "og:description": "Should storefront actions be HTML annotations or JS tools? A practical WebMCP build guide with a code example and decision matrix."
  "og:title": "Declarative vs. Imperative WebMCP: A Storefront Build Guide"
---

![Hero owned a en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cms4ubmfnb1lr07mmr0417tux)

# Declarative vs. Imperative WebMCP: A Storefront Build Guide

Table of contents

1. [1.Two ways to make a storefront agent-actionable](#two-ways-to-make-a-storefront-agent-actionable)
2. [2.The declarative path: HTML annotation](#the-declarative-path-html-annotation)
3. [3.The imperative path: JS tool actuation](#the-imperative-path-js-tool-actuation)
4. [4.Decision matrix: which one, when?](#decision-matrix-which-one-when)
5. [5.Common mistakes when annotating](#common-mistakes-when-annotating)
6. [6.Combining both patterns in the same storefront](#combining-both-patterns-in-the-same-storefront)
7. [7.Build checklist](#build-checklist)

1. [1.Two ways to make a storefront agent-actionable](#two-ways-to-make-a-storefront-agent-actionable)
2. [2.The declarative path: HTML annotation](#the-declarative-path-html-annotation)
3. [3.The imperative path: JS tool actuation](#the-imperative-path-js-tool-actuation)
4. [4.Decision matrix: which one, when?](#decision-matrix-which-one-when)
5. [5.Common mistakes when annotating](#common-mistakes-when-annotating)
6. [6.Combining both patterns in the same storefront](#combining-both-patterns-in-the-same-storefront)
7. [7.Build checklist](#build-checklist)

Is a storefront action an HTML attribute or a JS function? With WebMCP, that is not a style question, it is an architecture decision every frontend team should make before the first sprint. This guide answers it practically: two code examples, one decision matrix, no new debate about boundaries or GEO. We already covered those in the posts linked below.

## Two ways to make a storefront agent-actionable

WebMCP makes storefront actions executable for AI agents. How an action gets exposed to the agent comes down to two patterns:

- **Declarative annotation**: the action lives as an attribute directly in the HTML markup. A WebMCP runtime script reads the attribute and exposes the action, no extra JS code per action required.
- **Imperative tool actuation**: the action is a registered JS function with its own name, parameters, and return value. The agent calls the function like an API.

Both patterns produce the same outcome (the agent performs an action in the storefront), but they differ in effort, control, and failure surface.

## The declarative path: HTML annotation

Declarative annotation fits actions that map 1:1 to a visible UI element, are short-lived, and do not need a multi-step state transition. A cart button is the standard example:

```
<button
  data-webmcp-action="cart.add"
  data-webmcp-target="product"
  data-webmcp-params='{"variantId": "{{variant.id}}", "quantity": 1}'
  data-webmcp-result="cart.summary"
>
  Add to cart
</button>
```

The annotation fully describes what happens: action name, target entity, parameters, expected result. No separate tool setup, no import, no build step. The runtime script scans the DOM, registers the action, done. The downside: any logic that cannot be expressed in an attribute value (validation, multi-step conditions, asynchronous intermediate steps) does not fit here.

## The imperative path: JS tool actuation

Imperative tool actuation fits once an action needs business logic, multiple backend calls, or error handling:

```
webmcp.registerTool({
  name: "cart.add",
  description: "Adds a product variant to the active cart.",
  parameters: {
    variantId: { type: "string", required: true },
    quantity: { type: "number", default: 1 }
  },
  async execute({ variantId, quantity }) {
    const stock = await storefront.inventory.check(variantId);
    if (stock.available < quantity) {
      throw new Error("insufficient_stock");
    }
    const cart = await storefront.cart.addLine(variantId, quantity);
    return { cartId: cart.id, itemCount: cart.itemCount, subtotal: cart.subtotal };
  }
});
```

The function encapsulates the check, the backend call, and the response shape. The agent only sees the name, the parameter schema, and the return value, not the implementation. That gives full control over error cases and state transitions, but costs setup effort per action: registration, typing, testing.

## Decision matrix: which one, when?

| Criterion | Declarative annotation | Imperative tool actuation |
| --- | --- | --- |
| Action complexity | Low, maps 1:1 to a UI element | High, multi-step logic |
| Backend calls | None or a single call | Several, possibly sequential |
| Error handling | Barely expressible | Fully in code |
| Setup effort per action | Minimal, set an attribute | Medium to high, registration, typing, tests |
| Maintenance on UI changes | Attribute travels with the element | Function is independent of markup |
| Typical example | Cart button, filter, sort | Checkout flow, discount calculation, stock check |
| Auditability | Visible directly in the HTML | Needs a tool-registry log |

Rule of thumb for the team: if the action fits in one sentence with no condition, annotate declaratively. Once an "if X then Y, else Z" enters the picture, register it imperatively.

## Common mistakes when annotating

- **Annotation overload**: too many `data-webmcp-*` attributes on one element with no clear naming convention, the agent can no longer tell priorities apart.
- **Tool without an error path**: registered tools that return no structured response on failure; the agent then reads a crash as a success.
- **Duplicate source of truth**: the same action annotated declaratively and registered imperatively at the same time; the runtime script does not know which pattern applies.
- **Missing result schema**: the agent gets no structured success or failure back and has to guess from the UI text.

## Combining both patterns in the same storefront

In practice, production storefronts mix both patterns. PDP actions like add to cart, save to wishlist, or switch variant run declaratively, because they are simple and tied to the UI. Checkout, discount, and stock logic runs imperatively, because it checks backend state and has to handle errors. That split is exactly why Laioutr, as a Frontend Management Platform, offers annotation and a tool registry in the same component layer. Component authors decide per action which pattern fits, without maintaining two separate systems. The frontend stays a [Composable Headless Frontend](https://www.laioutr.com/en/composable-headless-frontend), not two parallel stacks.

If you think of WebMCP as an operating model rather than a single feature, the broader framing lives under [Frontend as a Service](https://www.laioutr.com/en/frontend-as-a-service): annotation and tool actuation are two building blocks of the agent layer that is designed in from the start.

## Build checklist

- List every storefront action agents should be allowed to perform: cart, wishlist, checkout steps, discount code.
- Sort each action using the matrix above: declarative or imperative.
- Annotate declarative actions directly in the component template, not in separate config files.
- Register imperative tools with a full parameter schema, not just a name.
- Test both paths with real agent traffic, not only with manual clicks.
- Document return values per action so agents can reliably interpret results.

If you want the fundamentals of frontend agent actuation, read [WebMCP: When Frontends Become Agent Actions](https://www.laioutr.com/en/blog/webmcp-frontend-agent-actuation-2026). For the GEO angle, how agent-ready frontends get cited in AI overviews, see [Agent-Ready Frontend: GEO Meets WebMCP](https://www.laioutr.com/en/blog/agent-ready-frontend-geo-webmcp-2026). The boundary between WebMCP and MCP in a commerce context, browser vs. server actuation, is covered in [WebMCP vs. MCP Commerce: Browser vs. Server](https://www.laioutr.com/en/blog/webmcp-vs-mcp-commerce-browser-vs-server-2026). And how frontends let agents write safely, governance and guardrails, is the topic of [MCP Commerce Frontends: Letting Agents Write Safely](https://www.laioutr.com/en/blog/mcp-commerce-frontends-agents-write-safely-2026).

This guide is deliberately implementation-focused: the annotation pattern, the tool-actuation pattern, the decision matrix. If you want the boundary and governance questions answered, the four posts above cover them. If you want to build today, the matrix and the two code examples are the direct starting point. For the platform behind all of it, visit the [Laioutr homepage](https://www.laioutr.com/en/).

---

Share this article

[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.laioutr.com%2Fen%2Fblog%2Fdeclarative-vs-imperative-webmcp-storefront-build-guide-2026) [Share on X](https://x.com/intent/post?url=https%3A%2F%2Fwww.laioutr.com%2Fen%2Fblog%2Fdeclarative-vs-imperative-webmcp-storefront-build-guide-2026&text=) [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.laioutr.com%2Fen%2Fblog%2Fdeclarative-vs-imperative-webmcp-storefront-build-guide-2026) [Share on Pinterest](https://pinterest.com/pin/create/button/?url=https%3A%2F%2Fwww.laioutr.com%2Fen%2Fblog%2Fdeclarative-vs-imperative-webmcp-storefront-build-guide-2026&description=) [Share via email](mailto:?subject=&body=%0A%0Ahttps%3A%2F%2Fwww.laioutr.com%2Fen%2Fblog%2Fdeclarative-vs-imperative-webmcp-storefront-build-guide-2026)

## More articles on frontend and headless

Practical know-how for frontend development, smart agents, and headless

[To the blog](https://www.laioutr.com/en/blogs/insights)

[![Hero frontend operations multi agent coordination storefront 2026 en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvdnuukuo9nt06l88v0h57oj)<h3>Several AI Agents, One Storefront: Coordination Without Collisions</h3>When several AI agents work on the same storefront, conflicts rarely happen between the agents thems…](https://www.laioutr.com/en/blog/frontend-operations-multi-agent-coordination-storefront-2026)

[![Hero frontend operations measuring ai agents outcomes 2026 en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvdnthydoeap06la2ojcfoqd)<h3>Measuring AI Agents by Outcomes: Agentic Frontend Management Metrics</h3>AI agents in the frontend should be measured by outcomes, not by activity. The number of prompts, ge…](https://www.laioutr.com/en/blog/frontend-operations-measuring-ai-agents-outcomes-2026)

[![Hero frontend operations execution gap detect vs deploy 2026 en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvdns6wxo7zo06l8pq1u047r)<h3>The Execution Gap in the Frontend: Finding Is Cheap, Shipping Is Not</h3>The execution gap in the frontend is the time, and the number of handoffs, between "we know wha…](https://www.laioutr.com/en/blog/frontend-operations-execution-gap-detect-vs-deploy-2026)

[![Hero frontend operations ai layer existing stack without replatforming 2026 en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvdnq7bwo79x06l9wjxd6m4x)<h3>Adding an AI Layer to an Existing Commerce Stack Without Replatforming</h3>An AI layer can be added to an existing commerce stack without replacing the shop system. The most p…](https://www.laioutr.com/en/blog/frontend-operations-ai-layer-existing-stack-without-replatforming-2026)

[![Hero frontend operations hidden cost manual storefront changes 2026 en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvdnourdo4ln06l897y7lscd)<h3>The Hidden Cost of Manual Storefront Changes and How to Cut It</h3>Manual frontend changes are the many small edits that keep a storefront running day to day: a new ba…](https://www.laioutr.com/en/blog/frontend-operations-hidden-cost-manual-storefront-changes-2026)

[![Hero frontend operations agent task map role risk 2026 en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvbb5d3f6l5606lact6cr70s)<h3>Which Frontend Tasks Should AI Agents Take Over? Role and Risk Map</h3>AI agents should first take over the frontend tasks that come up often, involve a lot of manual work…](https://www.laioutr.com/en/blog/frontend-operations-agent-task-map-role-risk-2026)

[![Hero frontend operations monitoring beyond uptime 2026 en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvbb4h8w6kg106lagdg131h4)<h3>Frontend Monitoring Beyond Uptime: Signals a Storefront Needs</h3>Frontend monitoring beyond uptime means checking a storefront not only for availability but for what…](https://www.laioutr.com/en/blog/frontend-operations-monitoring-beyond-uptime-2026)

[![Hero frontend operations root cause revenue drop storefront 2026 en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvbb1el66i2m06laj68axyua)<h3>Root Cause in the Frontend: When Revenue Drops Start in the Storefront</h3>When revenue or conversion rate drops suddenly, the cause often is not traffic, pricing or the comme…](https://www.laioutr.com/en/blog/frontend-operations-root-cause-revenue-drop-storefront-2026)

[![Hero laioutr academy en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvba7ww4640s06l9q29b5w7w)<h3>Laioutr Academy Is Live: The Video Manual for Laioutr</h3>Since October 15, 2026, the Laioutr Academy has been live at academy.laioutr.com. It is the user man…](https://www.laioutr.com/en/blog/laioutr-academy-launch-video-manual-certification)

[![Hero tailwind alpine magento vs component based frontend 2026 en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvai9tkiw9rk06mmt53z6mt5)<h3>Tailwind + Alpine vs. Component-Based Frontends for Magento</h3>Hyvä renders Magento pages on the server with PHP templates and layout XML, adds interactivity throu…](https://www.laioutr.com/en/blog/tailwind-alpine-magento-vs-component-based-frontend-2026)

[![Hero orocommerce frontend twig layouts bottleneck en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvaiaokow8v906leia28cwal)<h3>OroCommerce Frontend: Out of the Twig and Layouts Bottleneck</h3>The OroCommerce frontend is a server-rendered storefront built from Symfony bundles, OroLayouts and …](https://www.laioutr.com/en/blog/orocommerce-frontend-twig-layouts-bottleneck)

[![Hero magento multichannel personalization web mobile voice 2026 en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvai8r4tw93u06mmzl7zm6nc)<h3>One Magento Backend, Many Channels: Personalization in Practice</h3>Personalization across web, mobile and voice on a single Magento backend does not start with a featu…](https://www.laioutr.com/en/blog/magento-multichannel-personalization-web-mobile-voice-2026)

[![Hero edge hosting storefronts peak traffic caching 2026 en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvaicbu8wamt06mmftbhsb7j)<h3>Edge Hosting for Storefronts: Caching That Holds Under Peak Load</h3>Edge hosting keeps a storefront fast under load when most requests never reach the origin: pages and…](https://www.laioutr.com/en/blog/edge-hosting-storefronts-peak-traffic-caching-2026)

[![Hero composable commerce 2027 outlook en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvai9sb4w8he06le9jw0nlqx)<h3>Composable Commerce 2027: What Shifted and What Comes Next</h3>Composable commerce enters 2027 with a different agenda than a year ago. The architecture question i…](https://www.laioutr.com/en/blog/composable-commerce-2027-outlook)

[![Hero ai engagement conversion frontend personalization en](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmvaiaieiw8qu06le7elyjd3k)<h3>AI Engagement and Conversion: Personalization on the Frontend</h3>AI-driven engagement and conversion on the frontend rests on five mechanics: segments decide who see…](https://www.laioutr.com/en/blog/ai-engagement-conversion-frontend-personalization)

## Apps for the Laioutr platform

[View all apps](https://www.laioutr.com/en/apps)

[![App Shopify](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p2kpsk1o07mljlgx3ma7)](https://www.laioutr.com/en/apps/shopify)

Laioutr

[Shopify](https://www.laioutr.com/en/apps/shopify)

Shopify is a commerce platform for selling online and in physical retail.

[![App shopware](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p2mzsmns07l8mxvvlllb)](https://www.laioutr.com/en/apps/shopware)

Laioutr

[Shopware](https://www.laioutr.com/en/apps/shopware)

Shopware is a flexible ecommerce platform from Europe for product catalogs and omnichannel commerce.

[![App adobe commerce](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p22msmn707l8yvl65rea)](https://www.laioutr.com/en/apps/adobe-commerce)

Laioutr

[Adobe Commerce](https://www.laioutr.com/en/apps/adobe-commerce)

Adobe Commerce is an enterprise commerce platform for complex, global B2C and B2B scenarios.

Planned

[![App B2B sellers suite](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmno8wnogmesx08l8ogxv3gid)](https://www.laioutr.com/en/apps/b2b-sellers)

Laioutr

[B2Bsellers](https://www.laioutr.com/en/apps/b2b-sellers)

B2B suite for Shopware that turns an online store into a professional B2B commerce platform.

Planned

[![App commerce layer](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p24vsk1a07mlrun4pqiv)](https://www.laioutr.com/en/apps/commerce-layer)

Laioutr

[Commerce Layer](https://www.laioutr.com/en/apps/commerce-layer)

Commerce Layer is a headless commerce platform for making inventory and catalogs available online.

[![App commercetools](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p29pbwz607lb1smrjjd3)](https://www.laioutr.com/en/apps/commercetools)

Laioutr

[Commercetools](https://www.laioutr.com/en/apps/commercetools)

Commercetools is a SaaS-based headless ecommerce platform used worldwide.

[![App emporix](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p2c5bwzd07lb4cihw58l)](https://www.laioutr.com/en/apps/emporix)

Laioutr

[Emporix](https://www.laioutr.com/en/apps/emporix)

Emporix is a composable, API-first commerce platform for scalable B2B and B2C scenarios.

Planned

[![App HCL Software](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmlknq0xp7nkt06mm3nhm6vpf)](https://www.laioutr.com/en/apps/hcl-software)

Laioutr

[HCL Software](https://www.laioutr.com/en/apps/hcl-software)

Enterprise suite for digital commerce and experience with extensive configurability.

Planned

[![App intershop](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmlknq10d7zbz06l44qdcwpao)](https://www.laioutr.com/en/apps/intershop)

Laioutr

[Intershop](https://www.laioutr.com/en/apps/intershop)

Enterprise commerce platform for complex B2B and B2C business models.

Planned

[![App magento 2](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmm1svkn1mbb407l6vo1np8s2)](https://www.laioutr.com/en/apps/magento-2)

Laioutr

[Magento 2](https://www.laioutr.com/en/apps/magento-2)

Widely used, extensible commerce platform for B2C and B2B scenarios.

[![App Oxid](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p2eask1h07mlr6q5kx0k)](https://www.laioutr.com/en/apps/oxid-eshop)

Laioutr

[OXID eShop](https://www.laioutr.com/en/apps/oxid-eshop)

OXID eShop is an extensible commerce platform for complex B2B and B2C requirements.

Planned

[![App cover patchworks](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmph2jgr7bs5e08la66xwac9q)](https://www.laioutr.com/en/apps/patchworks)

Laioutr

[Patchworks](https://www.laioutr.com/en/apps/patchworks)

Patchworks is a low-code iPaaS that connects ecommerce, ERP, WMS, 3PL, and marketplaces.

Planned

[![App PRESTASHOP](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmpcdbhqnm8st07mn8aol584c)](https://www.laioutr.com/en/apps/PrestaShop)

Laioutr

[Prestashop](https://www.laioutr.com/en/apps/PrestaShop)

Open-source commerce platform for small and midsize merchants in Europe and beyond.

Planned

[![App saleor](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmpcdbhwsmjzr07milpv60c1r)](https://www.laioutr.com/en/apps/saleor)

Laioutr

[Saleor](https://www.laioutr.com/en/apps/saleor)

Open-source, API-first commerce platform built on GraphQL for custom storefronts.

Planned

[![App Commercecloud](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p26ysmne07l82vn6q45s)](https://www.laioutr.com/en/apps/salesforce-commerce-cloud)

Laioutr

[Salesforce Commerce Cloud](https://www.laioutr.com/en/apps/salesforce-commerce-cloud)

Salesforce Commerce Cloud is a cloud-based enterprise commerce platform for businesses of any size.

Planned

[![App SAP](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p2gasmnl07l8u6936vg4)](https://www.laioutr.com/en/apps/sap-commerce-cloud)

Laioutr

[SAP Commerce Cloud](https://www.laioutr.com/en/apps/sap-commerce-cloud)

Enterprise commerce platform for complex catalogs, pricing models, and omnichannel journeys.

Planned

[![App SCAYLE](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p2ihbwzk07lbl6d3mrzy)](https://www.laioutr.com/en/apps/scayle)

Laioutr

[Scayle](https://www.laioutr.com/en/apps/scayle)

SCAYLE is a commerce engine that helps brands and retailers scale their business.

Planned

[![App spryker](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p2p4sk1v07ml2vx76nwh)](https://www.laioutr.com/en/apps/spryker)

Laioutr

[Spryker](https://www.laioutr.com/en/apps/spryker)

Composable commerce platform for sophisticated B2B and B2C business models.

[![App Sylius](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p2rhbwzr07lbmrgxt51s)](https://www.laioutr.com/en/apps/sylius)

Laioutr

[Sylius](https://www.laioutr.com/en/apps/sylius)

Sylius is a developer-friendly ecommerce framework for B2C and B2B shopping experiences.

Planned

[![App vendure](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p2tgsk2207mltugd287f)](https://www.laioutr.com/en/apps/vendure)

Laioutr

[Vendure](https://www.laioutr.com/en/apps/vendure)

Vendure is a headless commerce platform for businesses with complex requirements.

Coming Soon

[![App VTEX](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmk19p2vosmnz07l8d45obeq9)](https://www.laioutr.com/en/apps/vtex)

Laioutr

[VTEX](https://www.laioutr.com/en/apps/vtex)

Cloud-native, composable commerce platform for B2B and B2C at scale.

Planned

[![App Websale](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:400/auto_image/cmkav7t75rwim06l1v4t9o0cb)](https://www.laioutr.com/en/apps/websale)

Laioutr

[Websale](https://www.laioutr.com/en/apps/websale)

Stable, enterprise-ready commerce backend for complex retail environments.

![Strategy call about the Laioutr platform](https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/resize=width:1024/auto_image/cmolld7ym133w07les4g75kr9)

Strategy call

## The frontend as a control layer

A conversation about stack, roadmap and replatforming scenario. The outcome: a clear picture of how Laioutr fits, what it costs and how fast the go-live can happen.  
  
*"After 30 minutes, we knew Laioutr makes our replatforming feasible."*  
*Daniel B., CEO,* [*hygibox.de*](https://hygibox.de)

[Book a demo](https://www.laioutr.com/en/contact)

## Structured Data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://www.laioutr.com/#identity",
      "name": "Laioutr",
      "legalName": "Laioutr GmbH",
      "url": "https://www.laioutr.com/",
      "logo": {
        "@type": "ImageObject",
        "url": "https://www.laioutr.com/laioutr-logo.png",
        "width": 400,
        "height": 400
      },
      "email": "info@laioutr.com",
      "telephone": "+49 30 75435715",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "Münchweilersteig 5",
        "postalCode": "12559",
        "addressLocality": "Berlin",
        "addressCountry": "DE"
      },
      "vatID": "DE450905846",
      "sameAs": [
        "https://www.linkedin.com/company/laioutr",
        "https://www.youtube.com/@Laioutr",
        "https://x.com/laioutr"
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://www.laioutr.com/en/#website",
      "url": "https://www.laioutr.com/en/",
      "name": "Laioutr",
      "inLanguage": "en",
      "publisher": {
        "@id": "https://www.laioutr.com/#identity"
      }
    },
    {
      "@type": "BlogPosting",
      "@id": "https://www.laioutr.com/en/blog/declarative-vs-imperative-webmcp-storefront-build-guide-2026#article",
      "headline": "Declarative vs. Imperative WebMCP: A Storefront Build Guide",
      "description": "Should storefront actions be HTML annotations or JS tools? A practical WebMCP build guide with a code example and decision matrix.",
      "image": [
        "https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cms4ubmfnb1lr07mmr0417tux"
      ],
      "datePublished": "2026-10-26T10:58:32.190036+00:00",
      "dateModified": "2026-10-26T10:58:31.472238+00:00",
      "inLanguage": "en",
      "articleSection": "Insights",
      "keywords": "Agentic Storefronts, AI Agents, Frontend Engineering",
      "author": {
        "@type": "Person",
        "name": "Marcel Thiesies",
        "jobTitle": "Co-Founder & CEO, Laioutr",
        "image": "https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cmj01b962364n07lb0iguvts5"
      },
      "publisher": {
        "@id": "https://www.laioutr.com/#identity"
      },
      "mainEntityOfPage": {
        "@id": "https://www.laioutr.com/en/blog/declarative-vs-imperative-webmcp-storefront-build-guide-2026#webpage"
      },
      "isPartOf": {
        "@id": "https://www.laioutr.com/en/#website"
      }
    },
    {
      "@type": "WebPage",
      "@id": "https://www.laioutr.com/en/blog/declarative-vs-imperative-webmcp-storefront-build-guide-2026#webpage",
      "url": "https://www.laioutr.com/en/blog/declarative-vs-imperative-webmcp-storefront-build-guide-2026",
      "name": "Declarative vs. Imperative WebMCP: A Storefront Build Guide",
      "description": "Should storefront actions be HTML annotations or JS tools? A practical WebMCP build guide with a code example and decision matrix.",
      "inLanguage": "en",
      "isPartOf": {
        "@id": "https://www.laioutr.com/en/#website"
      },
      "breadcrumb": {
        "@id": "https://www.laioutr.com/en/blog/declarative-vs-imperative-webmcp-storefront-build-guide-2026#breadcrumb"
      },
      "primaryImageOfPage": {
        "@type": "ImageObject",
        "url": "https://eu-west-2.graphassets.com/cmii2mlqi0dux06l5543v7nkc/cms4ubmfnb1lr07mmr0417tux"
      },
      "datePublished": "2026-10-26T10:58:32.190036+00:00",
      "dateModified": "2026-10-26T10:58:31.472238+00:00",
      "mainEntity": {
        "@id": "https://www.laioutr.com/en/blog/declarative-vs-imperative-webmcp-storefront-build-guide-2026#article"
      }
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://www.laioutr.com/en/blog/declarative-vs-imperative-webmcp-storefront-build-guide-2026#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Laioutr",
          "item": "https://www.laioutr.com/en/"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Insights",
          "item": "https://www.laioutr.com/en/blogs/insights"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Declarative vs. Imperative WebMCP: A Storefront Build Guide"
        }
      ]
    }
  ]
}
```
