Skip to main content
Glama
vuluu2k

WebCake Landing MCP

by vuluu2k

publish_page

Destructive

Publishes an existing page: builds the rendered app on the Webcake build host (POST /render/build; https://build.webcake.io in production, overridable with WEBCAKE_BUILD_BASE / x-webcake-build-base) and then creates or updates…

Instructions

Publishes an existing page: builds the rendered app on the Webcake build host (POST /render/build; https://build.webcake.io in production, overridable with WEBCAKE_BUILD_BASE / x-webcake-build-base) and then creates or updates the published record that public serving reads. With custom_domain (already pointed at Webcake) the page is served at that domain; when omitted, the page's currently attached domain is reused; with no domain, or custom_domain:'', only the preview link (/preview/<page_id>) is returned, and it renders for about 10 minutes after the publish. Without a build host, or if the build fails, it falls back to a source-only publish that saves a version but serves nothing, and returns a warning. dry_run defaults to true and makes no network calls; dry_run:false builds and publishes. Requires Webcake credentials.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoDefault TRUE — preview the request without sending. Does NOT call the build host. Set false to actually publish (build + publish).
page_idYesThe page id to publish (must be owned by the account).
custom_pathNoOptional path under the custom domain (e.g. 'sale').
custom_domainNoOptional custom domain to serve the page at (e.g. 'shop.example.com' — must already point at Webcake). OMIT to reuse the page's CURRENTLY-ATTACHED domain (so republishing keeps it live at the same URL, like the editor's publish modal); if the page has none it publishes domain-less (preview-host URL). Pass an empty string '' to force a domain-less publish even when the page has a domain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare destructive/openWorld; the description adds substantial context they cannot carry: the build-host fallback to a source-only publish that 'serves nothing' and returns a warning, the ~10-minute rendering window on preview links, domain reuse semantics on republish, and the credential requirement. It is consistent with destructiveHint=true (it overwrites the live published record) and never contradicts the annotations.

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-loaded with the action and its two effects before diving into fallbacks and domain behavior, and every sentence carries real information. It is one dense, deeply nested paragraph rather than cleanly segmented, which costs it the top mark.

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?

For a complex mutating tool with no output schema, the description covers the full lifecycle: what is built, what record is written, what URL is served under each domain case, what happens with no build host or a failed build, and what dry_run returns. Nothing an agent needs to invoke it correctly is missing.

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 restates the custom_domain omit-vs-'' distinction and the dry_run default that the schema already documents, adding little parameter meaning beyond the structured fields.

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?

States a specific verb+resource ('Publishes an existing page') and immediately distinguishes it from sibling mutations like update_page/create_page by naming the two concrete effects: building the rendered app on the build host and creating/updating the published record that public serving reads. An agent knows exactly what this does without opening the schema.

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?

Gives clear operational context: dry_run defaults to true so an agent knows calling it blind does nothing destructive, and it explains the domain-resolution conditions (custom_domain provided / omitted / empty). It stops short of naming alternatives (e.g. render_preview or update_page) or stating when not to publish, so not a 5.

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