Skip to main content
Glama

Unpublish Post

unpublish_post
Destructive

Takes a published blog, FAQ or competitor page down from the website CMS and keeps the post in Mark. Workspace admins only. Mark unpublishes the page, reads it back, and only then records taken_down. The CMS document stays. The post goes back to in review on a new rev with the same content (call get_post for it): approve that rev as it is, or save_post an edit and approve the next one, and either updates the same page. Pass an optional reason stored on the post. Refused when the page is not live, the collection has no drafts, or the unpublish cannot be confirmed. Never returns API keys. Related: get_post, delete_post, approve_posts.

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": {
      "postId": "<postId>"
    },
    "name": "unpublish_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesThe published website post whose CMS page to take down.
reasonNoOptional note stored on the post and the take-down record.

Output Schema

NameRequiredDescriptionDefault
stateYes
postIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the ordered sequence (unpublish, read back, then record taken_down), that the CMS document persists, that the post reappears as a new in-review revision, and the explicit refusal cases. These details explain what the destructive flag actually means in practice.

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 action and its scope in the first sentence, with operational detail after. Some phrasing is dense and referential ("keeps the post in Mark", "call get_post for it", "Never returns API keys"), but almost every sentence carries actionable information.

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?

With an output schema present, the description still covers the workflow, failure modes, permission requirement, and the exact next step an agent must take after success. Nothing essential for correct invocation is missing.

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 real constraints: postId must refer to a currently live page (refused otherwise), and reason is stored both on the post and on the take-down record. That is meaning beyond the schema's own wording.

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: takes a published blog/FAQ/competitor page down from the CMS, while keeping the post in Mark. This is clearly differentiated from delete_post because the description explicitly says the CMS document stays and the post returns to in-review.

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 prerequisites (workspace admins only), refusal conditions (page not live, no drafts in collection, unconfirmed unpublish), and follow-up routing to get_post/save_post/approve_posts. It lists related tools but stops short of explicitly saying when to choose delete_post or archive_post instead.

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