Skip to main content
Glama

Substack MCP Server and API by Cotlet

Unpublish post

unpublish_post
Destructive

Take a published post off the web and back to drafts. Turns a published post back into a draft, as Unpublish in the editor does: it leaves your site, archive and the Substack app, and its link stops working. Comments and stats stay with the draft. Emails already sent stay in inboxes. Publish it again with publish_post. A post that is not published returns an error. By default you confirm each call; you can switch that off for this tool. Waits for the owner's approval.

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

Input Schema

NameRequiredDescriptionDefault
post_idYesPost ID from list_posts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotency, but the description goes well beyond them: the link stops working, comments and stats stay, already-sent emails persist, and the tool 'waits for the owner's approval' with a per-tool confirmation switch. That is exactly the side-effect and authorization context an agent needs before mutating published content.

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 core action and packed with useful consequences in a compact space. The first two sentences restate the same idea ('take a published post off the web' / 'turns a published post back into a draft'), which is the only waste.

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 one-parameter mutation with no output schema, the description covers preconditions, side effects on comments/stats/emails, reversibility path, and the confirmation/approval flow. Nothing an agent needs to call 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?

With 100% schema description coverage and a single well-documented post_id, the schema carries the parameter burden and 3 is the baseline. The description adds no format hints or edge cases about the ID beyond what the schema already says ('Post ID from list_posts').

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 and resource ('take a published post off the web and back to drafts') and anchors it to a familiar analog ('as Unpublish in the editor does'). It is clearly distinguishable from publish_post, cancel_scheduled_post, and delete_post without opening any 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 an explicit precondition ('a post that is not published returns an error') and a named completion path ('publish it again with publish_post'). It does not contrast with delete_post, the nearest destructive sibling, so the alternative space is only partially covered.

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.