Skip to main content
Glama

Take a published post down (unpublish or delete)

publish_post_delete
DestructiveIdempotent

[DESTRUCTIVE] TAKES A LIVE POST DOWN from real accounts. takedown: "unpublish" (per platform; platforms = "facebook,linkedin" to pick, default every live platform that allows it) or "delete" (the whole post). Two steps: call it first WITHOUT confirm to get the plan (status "confirm-required", nothing changed), show it to the user, then repeat with confirm: true. Refused while a running boost / ad uses the post (ad_running): offer to pause the ad first, or pass acknowledgeAds: true if the user accepts that the ad breaks. flayr's post follows (each platform marked, cancelled once none is live). Answers per platform ok and confirmation. For a scheduled (not yet live) post use publish_post_cancel. Needs the publish scope (or admin) and the Pro plan or higher. Every call is audited. Was take_down_post (still callable for one release). (Wraps DELETE /api/v2/posts/{id}.)

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": {
      "id": "<id>"
    },
    "name": "publish_post_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYese.g. "id_123". The post: `convexPostId` from POST /api/v2/publish, or `posts[].id` from GET /api/v2/content/{id}.
confirmNoe.g. false. LIVE post: true to really take it down; otherwise only the plan.
takedownNoe.g. "unpublish". LIVE post only: how to take it down.
platformsNoe.g. "Example". LIVE post, takedown=unpublish: comma-separated platforms (default: every live platform that allows it).
acknowledgeAdsNoe.g. false. LIVE post: go ahead although a running boost / ad uses it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description goes well beyond them: the two-step plan/confirm protocol, that the first call changes nothing, the ad_running refusal and the acknowledgeAds override, per-platform ok/confirmation results, flayr's per-platform cascade, the required publish scope plus Pro plan, and that every call is audited. This is the level of behavioral disclosure a destructive open-world tool needs.

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 destructive warning and the two-step workflow, then the edge cases, then the constraints. Dense but nearly every clause carries operational value; the internal parenthetical asides (flayr's post follows, the rename alias) add minor noise for an agent that only needs to call it.

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 five-parameter destructive tool with no output schema, the description covers the workflow, refusals, prerequisite scope and plan, side effects on linked posts, and the rollback alternative. Nothing an agent needs in order to call it safely 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 each parameter is already documented. The description still adds real meaning: that platforms defaults to every live platform that allows it, that takedown=unpublish is per-platform while delete removes the whole post, and that acknowledgeAds encodes the user's acceptance that the ad breaks. It stops short of naming the confirm-required status shape in detail, but the workflow context is clear.

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?

Opens with a specific verb and resource ("TAKES A LIVE POST DOWN from real accounts") and immediately scopes it to live posts versus scheduled ones. The sibling publish_post_cancel is named explicitly for the scheduled case, so the agent can separate the two without opening either schema.

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?

Explicitly states when to use this tool (live post) and when not to ("For a scheduled (not yet live) post use publish_post_cancel"). It also prescribes the call sequence and the fallback path when an ad is running, leaving nothing to inference.

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