Skip to main content
Glama
kuklaph
by kuklaph

Publish or Unpublish Asset

cascade_publish_unpublish
Destructive

Publish or unpublish a Cascade asset to/from its configured destinations. Set unpublish: true to remove the asset from destinations.

Instructions

Publish a Cascade asset to its configured destinations, or unpublish it from those destinations.

The operation is controlled by the publishInformation payload: by default it publishes; set unpublish: true to remove the asset from its destinations instead. Publishing propagates changes to external systems (HTTP, FTP, filesystem targets). This can affect production websites — use with care. Publishing is asynchronous on Cascade's side; this call queues the job and returns quickly.

Args:

  • identifier (object, required): The asset to publish or unpublish

    • id (string, optional): Asset ID (preferred)

    • path (object, optional): { path, siteId OR siteName }

    • type (string, required): Entity type of the asset

  • publishInformation (object, required, shape varies — see Cascade docs):

    • destinations (array, optional): Specific destination identifiers. Omit for "all enabled destinations".

    • unpublish (boolean, optional, default false): When true, unpublish instead of publish.

    • publishRelatedAssets (boolean, optional): Also publish referenced assets.

    • publishRelatedPublishSet (boolean, optional): Also publish related publish sets.

    • scheduledDate (string, optional): ISO-ish date for scheduled (future) publish.

Returns: Cascade OperationResult: { success: true } On failure: { success: false, message: "" }

Examples:

  • Use when: "Publish a page now" -> { identifier: { type: "page", id: "..." }, publishInformation: {} }

  • Use when: "Unpublish a page" -> { identifier: { type: "page", id: "..." }, publishInformation: { unpublish: true } }

  • Use when: "Schedule publish for next week" -> { identifier: { ... }, publishInformation: { scheduledDate: "2026-04-20T12:00:00Z" } }

  • Don't use when: You want to delete entirely — use cascade_remove (which can unpublish too).

  • Don't use when: You haven't yet committed edits — Cascade publishes the last committed version.

Error Handling:

  • "Asset not found" when the identifier doesn't resolve

  • "No destinations configured" when the asset has no destinations and none were supplied

  • "Permission denied" when credentials lack publish rights

  • "Workflow required" when the asset's container demands workflow approval before publish. Responses are JSON text; structuredContent is authoritative when the response fits. Oversized responses return bounded _cache metadata for cascade_read_response. For cascade_read, read_mode controls preview versus raw Cascade payload shape.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
identifierNoThe asset to publish or unpublish.
publishInformationNoREQUIRED: Publish parameters (unpublish flag, destinations list, etc.). Matches Cascade's PublishInformation shape.
Behavior4/5

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

Annotations already indicate destructiveHint=true. The description adds valuable context: async behavior, production impact, error handling. However, it includes an irrelevant paragraph about cascade_read responses that may confuse agents, slightly reducing transparency.

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?

Well-organized with clear sections and examples, but includes an off-topic paragraph about cascade_read responses that adds verbosity without contributing to this tool's description. Could be more concise.

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?

Covers all necessary aspects: operation, parameters, usage, error handling, return shape (OperationResult), and examples. No output schema exists, but the description adequately compensates. Extremely complete for a tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the description goes far beyond by detailing identifier and publishInformation subfields, providing examples, and listing error conditions. This adds substantial meaning 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 uses a specific verb (publish/unpublish) and resource (Cascade asset) and clearly distinguishes the dual operation. It explicitly contrasts with the sibling tool cascade_remove, which is used for deletion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use scenarios (publish page, unpublish, schedule) and when-not-to-use (delete, not committed edit). It names the alternative cascade_remove, making selection clear.

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/kuklaph/cascade-cms-mcp-server'

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