Skip to main content
Glama

Publish, schedule, or unpublish an item

cms_items_setPublished
Destructive

Use exactly one publication action: published: true publishes immediately and sets publishedAt to now; a future publishAt schedules a draft for automatic publication; published: false unpublishes an item or cancels its schedule. A published item must be unpublished before it can be scheduled because CMS items do not have revision snapshots. Published websites read only items with an actual publishedAt, so immediate and scheduled promotion become visible without a site republish. Repeating the same action is idempotent.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "itemId": "<itemId>"
    },
    "name": "cms_items_setPublished"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdYes
publishAtNoFuture absolute timestamp for scheduling. Omit `published`; scheduled items remain hidden until the promotion job runs.
publishedNo`true` publishes immediately; `false` unpublishes or cancels a schedule. Use `publishAt` instead to schedule publication.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior1/5

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

The description contains strong behavioral context (promotion visible on the live site without a republish; scheduling state), but it asserts 'Repeating the same action is idempotent', while the annotations declare idempotentHint: false. That is a direct conflict with a structured field: a repeat of immediate publish re-stamps `publishedAt` to a new 'now', so the side effect is not identical. The other hints (readOnly=false, destructive=true, openWorld=true) are consistent with the described mutation and live-site effect.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences, front-loaded with the action-branching rule, followed by precondition and visibility semantics. No filler; each sentence carries operational information an agent needs before calling.

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?

For a destructive, state-changing tool with no output schema, the description covers preconditions, visibility consequences, and argument exclusivity well. It stops short of stating what the call returns or what error surfaces when the precondition is violated, and the idempotency claim is wrong rather than merely absent.

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 67%: `publishAt` and `published` are already documented in the schema, but `itemId` is bare. The description still adds value beyond the schema by enforcing mutual exclusivity ('Use exactly one publication action') and by tying `published: false` to both unpublish and schedule-cancellation, which the schema does not spell out.

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 names a specific verb family and resource (publish / schedule / unpublish a CMS item) and immediately distinguishes the three action modes by their argument shape. It is unmistakable as against siblings such as cms_items_update or cms_items_delete.

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?

It states the selection rule explicitly — 'Use exactly one publication action' — then maps each branch (`published: true`, future `publishAt`, `published: false`) to its outcome, including the cancel-a-schedule case. It also gives a hard precondition ('A published item must be unpublished before it can be scheduled'), which prevents the most likely misuse.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources